Sunny nights
Bug #305542 reported by
Olivier Tilloy
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Elisa weather plugin |
Confirmed
|
Medium
|
Unassigned |
Bug Description
Steps to reproduce:
1) Be in Barcelona by a clear night (few or no clouds)
2) Have a look at the gnome weather applet, it should display a moon icon because it's clever and it somehow knows that the sun has set already
3) Now launch Elisa, go to the weather controller
Expected result: the image displayed is a moon (with or without clouds in front of it).
Current result: the image displayed is a bright shining sun.
Changed in elisa-plugin-weather: | |
assignee: | Olivier Tilloy (osomon) → nobody |
To post a comment you must log in.
I made some research about getting the times of sunrise and sunset which are required to display a moon at night. I would like to share the results here...
The data needed to calculate the times are latitude, longitude and the timezone.
The website http:// www.srrb. noaa.gov/ highlights/ sunrise/ sunrise. html uses JavaScript to calculate the times. Maybe this helps when developing similar functions in the weather plugin.
Another approach is using the python library PyEphem. But this is probably an overkill for only calculating times of sunrise and sunset :) rhodesmill. org/pyephem/ rhodesmill. org/pyephem/ tutorial# computations- for-particular- observers
http://
http://
By the way, who created the images for the weather plugin? Or where are they from? (For the missing images with a moon)