Sunny nights

Bug #305542 reported by Olivier Tilloy
4
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.

Revision history for this message
Olivier Tilloy (osomon) wrote :
Changed in elisa-plugin-weather:
assignee: nobody → osomon
importance: Undecided → Medium
status: New → Confirmed
Revision history for this message
Martin Janser (mjanser-deactivatedaccount) wrote :

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 :)
http://rhodesmill.org/pyephem/
http://rhodesmill.org/pyephem/tutorial#computations-for-particular-observers

By the way, who created the images for the weather plugin? Or where are they from? (For the missing images with a moon)

Revision history for this message
Philippe Normand (philn) wrote :

At some point we had this file shipped with elisa: http://coherence.beebits.net/browser/sandbox/sun.py

Given geo-coordinates that module is able to calculate sunrise and sunset times depending on local time. The weather plugin should make use of that module again.

Olivier Tilloy (osomon)
Changed in elisa-plugin-weather:
assignee: Olivier Tilloy (osomon) → nobody
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.