Andy Spencer [Wed, 23 Jan 2013 06:33:08 +0000 (06:33 +0000)]
Add canceling to alerts plugins
This helps speed up shutdown if it occurs while loading alert details.
It's not _really_ needed because of the new grits_http_abort function,
but it's still nice to prevent a bunch of extra fetch attempts.
This also fixes some warnings when a download fails.
Andy Spencer [Sat, 18 Feb 2012 03:09:43 +0000 (03:09 +0000)]
Revert "Fix off-by-one on date"
This issue is related to whether or not the users timezone accounts for
leap seconds in Unix timestamps.
For instance, 1325376000 in TZ=UTC is 2011-01-01 00:00:00, but in
TZ=right/UTC it is 2011-12-31 23:59:36.
RSL generates the dates by using gmtime at time 00:00:00 on a particular
date since the epoch. If the timezone includes leap seconds, this will
return the previous day rather than the desired day, which is why the
original +1 was added to AWeather.
However, nobody uses timezones that include leap seconds (i.e. the
right/ folder) so it's better to leave it how it is.
Andy Spencer [Sat, 11 Feb 2012 17:34:00 +0000 (17:34 +0000)]
Remove idle callback for loading markers
The normal marker constructor is now thread safe and will do the actual
loading during the first draw function, which will be called from the
main thread.
Andy Spencer [Sat, 11 Feb 2012 07:56:05 +0000 (07:56 +0000)]
Update GPS plugin reference handling
Reference he viewer and prefs at creation and then unref them when it
exits. This fixes avoid a double-unref.
Also make the dispose function reentrant by setting the viewer field to
NULL before unreferencing the viewer. (Dispose may be called recursively
by glib when unreferencing other stuff)
Adam Boggs [Thu, 9 Feb 2012 07:00:39 +0000 (07:00 +0000)]
Add GPS tracking plugin
The plugin can be build by passing the --enable-gps flag to the
configure script. The defaults is disabled for now.
The GPS Plugin:
- Displays the GPS status and location in the config area
- Draws the current location in the viewer using a marker
- Optionally displays a tracks of previous locations
- Optionally follows the current location
- Optionally logs the location to a text file
The GPS plugin uses version 5 of the GPSd protocol, so it is only
supported under Linux at this time.
Andy Spencer [Mon, 6 Feb 2012 05:50:00 +0000 (05:50 +0000)]
Update objects for new Grits expose settings
All objects are drawn with sorting (depth testing) disabled except for
the Level-II sweeps and volume scans. The order things appear is
determined based on the level they are drawn in since depth testing
works across levels now.
The order is as follows, from lowest to highest:
WORLD+1 - Counties outlines - no depth test
WORLD+1 - County-based warnings - no depth test
WORLD+2 - Conus radar overlays - no depth test
WORLD+3 - Level-II radar sweeps - depth test enabled
WORLD+4 - Storm-based warnings - no depth test
WORLD+5 - Level-II Volume scans - depth test enabled
OVERLAY - Level-II site markers - no depth test
HUD - Level-II color table - no depth test
The advantage to this order is that:
- County-based warnings do not effect the radar colors
- Level-II sweeps do not hide storm-based warnings
- Storm based warnings don't show through volume scans
Andy Spencer [Mon, 2 Jan 2012 00:09:08 +0000 (00:09 +0000)]
Fix toolbar hiding bug
On Mac OS, the toolbar is hidden by default because the menus are part
of the OS menu bar. However they were incorrectly re-shown after
toggling fullscreen.
Andy Spencer [Mon, 31 Oct 2011 06:59:22 +0000 (06:59 +0000)]
Add warning/watch/alert plugin
Alert information is shown similar to what is shown on the main
weather.gov page. Alerts are retrieved in real time using the NWS CAP
feed [1] which includes most, but not all, of the information from
weather.gov. More details about the CAP feed can be found on the NWS CAP
Wiki [2].
Both county based warnings and polygon based warnings are support. In
addition, when zoomed in close enough county outlines will be drawn for
each state.
Additional information can be retrieved about a particular alert by
clicking on the highlighted area in the viewer.
Alerts can be hidden by toggling the alert type in the alert plugin's
configuration tab.
If you are developing from Git, you will need to download a FIPS county
polygons file [2]. This should be done automatically on the first build.
If it is not successful, the polygons are also included in the >= 0.6
tarballs.
There are currently several drawbacks to this plugin:
- NWS warning zones are not use, only FIPS counties are used.
- The county polygons have been simplified for performance reasons.
- The NWS CAP feed does not include all the text products showed on
the main weather.gov page. For example, hazardous weather outlooks
are not included. This may be improved slightly by the NWS in future
revision of the CAP feed.
- Historic data is not available but previously downloaded alerts are
cached and can be viewed.
Andy Spencer [Tue, 6 Sep 2011 05:07:35 +0000 (05:07 +0000)]
Add new application icons
The new icon is works better with different background colors, it also
avoids using flat background colors or borders.
The small icons (less than 32) pixels do not includes the sun in the
background because it is difficult to see at such small sizes and just
add clutter.
The old icon is kept as logo.svg and is used in the about dialog. It may
be converted to use the new icon eventually as well.