erland;542622 Wrote:
> Now, that would be really cool.
>
> Are they available as images ?
> Is the url composed differently depending on location or does it have
> some syntax that is the same for all locations ?
>
> Earlier when I implemented the Daylight Clock applet I had some plan to
> cut out a region from their images, but I'm not completely sure they are
> detailed enough to get a working weather map. The images in Daylight
> Clock are taken from here:
> http://www.die.net/earth/
I've gone ahead and implemented some weather map icon support.
Here's a partial example of the Json request with a mode of wetMapURL.
Right now I support 'Local' maps based on the weather identifier being
used. There are two other types I plan to add.
Currently it works like this- From the main plugin settings page a
user can enabled weather map images. If enabled SDT will do a long
chain of HTTP requests to figure out all the map images available based
on the weather identifier. A name/URL/type list can be requested over
json of all the available maps. When weather maps are enabled, the
list of available map names is listed on the SDT settings page.
Code:
--------------------
{ 'Central US Current Weather' => {
'URL' => 'http://i.imwx.com/images/m
aps/current/cur_cen_720x486.jpg',
'Code' => 'US_Current_Weather:CN',
'Type' => 'Local'
},
'Midwest Radar 2100 Mile' => {
'URL' => 'http://i.imwx.com/web/radar/u
s_mw_4regradar_plus_usen.jpg',
'Code' => 'Radar_2100_Mile:MW',
'Type' => 'Local'
},
'Central US Severe Weather Alerts' => {
'URL' => 'http://i.imwx.com/im
ages/maps/special/severe_cn_600x405.jpg',
'Code' => 'US_Severe_Alerts:CN
',
'Type' => 'Local'
},
'Central US Winds Tom. Night' => {
'URL' => 'http://i.imwx.com/images/
maps/forecast/map_wnd_night2_3usc_enus_600x405.jpg',
'Code' => 'US_Winds_Tom._Night:CN',
'Type' => 'Local'
},
'Central US Weather Today' => {
'URL' => 'http://i.imwx.com/web/foreca
st/us_cn_9regwxhi1_large_usen.jpg',
'Code' => 'US_Weather_Today:CN',
'Type' => 'Local'
},
'Central US Weather Tom. Night' => {
'URL' => 'http://i.imwx.com/image
s/maps/forecast/map_wkpln_night2_3usc_enus_600x405.jpg',
'Code' => 'US_Weather_Tom._Night:
CN',
'Type' => 'Local'
},
'Central US Snow Forecast' => {
'URL' => 'http://i.imwx.com/images/map
s/pt_BR/winter/ski_cen_720x486.jpg',
'Code' => 'US_Snow_Forecast:CN',
'Type' => 'Local'
},
'Central US Soil Moisture' => {
'URL' => 'http://i.imwx.com/images/map
s/special/soilmoist_cn_720x486.jpg',
'Code' => 'US_Soil_Moisture:CN',
'Type' => 'Local'
},
'Central 24 Hour Rainfall Estimate' => {
'URL' => 'http://i.imwx.com/w
eb/radar/RAD_DrvdRnfl_Cur_3USC_EnUs_600x405.jpg',
'Code' => '24_Hour_Rainfall_E
stimate:CN',
'Type' => 'Local'
},
'Central US Winds Today' => {
'URL' => 'http://i.imwx.com/images/maps/
forecast/map_wnd_day1_3usc_enus_600x405.jpg',
'Code' => 'US_Winds_Today:CN',
'Type' => 'Local'
},
'Central US Highs Today' => {
'URL' => 'http://i.imwx.com/images/maps/
forecast/map_hitmpf_day1_3usc_enus_600x405.jpg',
'Code' => 'US_Highs_Today:CN',
'Type' => 'Local'
},
'Doppler Radar 100 Mile' => {
'URL' => 'http://i.imwx.com/web/radar/us
_ord_metroradar_plus_usen.jpg',
'Code' => 'Doppler_Radar_100_Mile:ORD',
'Type' => 'Local'
},
'Central US Winds Tomorrow' => {
'URL' => 'http://i.imwx.com/images/ma
ps/forecast/map_wnd_day2_3usc_enus_600x405.jpg',
'Code' => 'US_Winds_Tomorrow:CN',
'Type' => 'Local'
},
'Central US Lows Tom. Night' => {
'URL' => 'http://i.imwx.com/images/m
aps/forecast/map_lotmpf_night2_3usc_enus_600x405.jpg',
'Code' => 'US_Lows_Tom._Night:CN',
'Type' => 'Local'
},
'Central US Lows Tonight' => {
'URL' => 'http://i.imwx.com/images/maps
/forecast/map_lotmpf_night1_3usc_enus_600x405.jpg',
'Code' => 'US_Lows_Tonight:CN',
'Type' => 'Local'
},
'Central US Current Dew Points' => {
'URL' => 'http://i.imwx.com/image
s/maps/current/cen_cur_dew_720x486.jpg',
'Code' => 'US_Current_Dew_Points:
CN',
'Type' => 'Local'
},
'Central US Weather Tomorrow' => {
'URL' => 'http://i.imwx.com/images/
maps/forecast/map_wkpln_day2_3usc_enus_600x405.jpg',
'Code' => 'US_Weather_Tomorrow:CN',
'Type' => 'Local'
},
'Central US Precip. Forecast' => {
'URL' => 'http://i.imwx.com/images/
maps/forecast/cen_precfcst_600x405.jpg',
'Code' => 'US_Precip._Forecast:CN',
'Type' => 'Local'
},
'Central US Winds Tonight' => {
'URL' => 'http://i.imwx.com/images/map
s/forecast/map_wnd_night1_3usc_enus_600x405.jpg',
'Code' => 'US_Winds_Tonight:CN',
'Type' => 'Local'
},
'Central US Highs Tomorrow' => {
'URL' => 'http://i.imwx.com/images/ma
ps/forecast/map_hitmpf_day2_3usc_enus_600x405.jpg',
'Code' => 'US_Highs_Tomorrow:CN',
'Type' => 'Local'
},
'Central US Current Temps' => {
'URL' => 'http://i.imwx.com/images/ma
ps/current/cen_curtemp_720x486.jpg',
'Code' => 'US_Current_Temps:CN',
'Type' => 'Local'
},
'Central US Thunderstorm Fcst' => {
'URL' => 'http://i.imwx.com/images
/maps/travel/cen_trvlthun_720x486.jpg',
'Code' => 'US_Thunderstorm_Fcst:CN
',
'Type' => 'Local'
}
};
--------------------
Attached is SDT 5.9.0 BETA 1 which includes this support. Please
rename PDF to .zip.
Thanks
-Greg
+-------------------------------------------------------------------+
|Filename: SuperDateTime5-9-0B1.pdf |
|Download: http://forums.slimdevices.com/attachment.php?attachmentid=9831|
+-------------------------------------------------------------------+
--
GoCubs
------------------------------------------------------------------------
GoCubs's Profile: http://forums.slimdevices.com/member.php?userid=312
View this thread: http://forums.slimdevices.com/showthread.php?t=77864
_______________________________________________
jive mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/jive