Documentation, design document?
Hi
I'm a fan of central documentation, preferrably bundled (so that the version of the documentation matches the version of the software). For the reader, digging in comments of blog posts and bug reports is not an efficient replacement. Please note that I'm just describing my experience, I don't mean to be negative, and I realize that there will be good reasons for a young project to not have good documentation yet. I'm ready to help.
Here's my path trying to use redshift:
- installed the Debian stable package (1.2)
- looked up coordinates in wikipedia (forgot how to do it in google maps)
- but how to format them for redshift? The man page or commandline help don't say how to format LON and LAT. As is often the case especially with C programs using standard number parsing functions, would it silently parse inputs wrong if they don't follow the expectations? Does it expect negative coordinates for "west" or 365-longitude? (BTW hoping I'm not confounding longitude with latitude... I'm rarely dealing with earth coordinates, so I have to look it up in wikipedia to be sure.)
- googling "redshift" brings me to the first blog post, where the Copenhagen example is given, I look up copenhagen, this gives me confidence on which is LON and LAT. Also it tells me to use floating point notation, so I roughly convert the Montreal coordinates; I'm hoping the minus will work. Using: -l 45.5:-73.5
- before using these coordinates, I found that I could specify the city "in Gnome", searching my gnome menu, "about me" is missing my address, ok filling it in, but to no avail; gconf-editor doesn't find me anything useful; googling I find that redshift reads the gconf entry /apps/panel/
- I recompile&install the version from Debian testing (1.6). This has gtk-redshift, nice, but still doesn't find the city, complains about missing 'current="true"', I use gconf-editor to see how to set that but it doesn't give me any clue. I look at the redshift sources to get some clue, I don't understand how it gets that setting (too lazy to check gtk/gnome dev docs), wildly guessing to set '[Montreal current="true"]' which silences gtk-redshift.
- Now starting:
$ gtk-redshift -l 45.5:-73.5
which, regardless of time of day, changes color to reddish within a couple seconds; and doesn't change it back to white. Thus, something's wrong, what?
- man gtk-redshift shows the color temp as required, is this the problem? Which are good colors? If none given, does it use sensible defaults, or does it fall back to using something like "0" for both day and night (which would explain it)? I decide I'm too lazy to figure this out from the C source right now (if it would just be one page of code to examine, no problem, but I don't know how to narrow it down, guess it's probably taking me half an hour or an hour to understand--of course I can't tell as I haven't done it, but since things are always taking longer than I think, I decide to back off).
- while writing this up, I have to admit to myself that I haven't verified what happens when I feed redshift garbage coordinates, so I'm trying:
$ gtk-redshift -l 45foo:23bar
Unknown location provider `45foo'.
I wonder what this message means, a "location provider" sounds to me like some program that returns the coordinates, something like "gnomeclockcities" or "GPS"?
- I'm still wondering whether redshift would just switch within a couple seconds, or slowly like daylight changes; I check the xflux homepage and see the sinusoid curve which suggests that this latter tool changes color over many hours. I don't find any information about redshift. I'd love to see a document that shows what redshift is meant to do exactly and how (the first redshift blog post writes what the basic intent is but is missing some answers like these, which belong to the "how" part; I'm hoping for a more complete/specific document, call it a "design" document).
So, where to go from now? I'd be happy to improve the docs (and, of course, get it to correctly run). I can write up doc (and if necessary code) patches as I go. (I'm used to Git, Mercurial, SVN, but not to Bazaar though, so I'll have to figure this out first, too.)
Thanks for redshift and for reading this post
Christian.
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- Redshift Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask Christian J. for more information if necessary.