bluetdi wrote: 
> Can you give me a hint how to retrieve a weather radar map from
> weather.com? Link or something?
> Then I would try to display it with CCH in SDT, it worked in the days
> with the weatherground api and their radarmap.
> 
> https://forums.slimdevices.com/attachment.php?attachmentid=22546&d=1492697652

The easiest way to get the URL for your specific location is to set SDT
logging to the Info level.  Then touch the Advanced->SDT settings. 
Simply clicking "Apply" is enough.  After a few seconds SDT recalculates
your latitude and longitude and derives the Weather Radar URL.  All 3
are recorded in the server log file.


For instance:


Code:
--------------------
    
  [20-04-13 16:30:54.3842] Plugins::SuperDateTime::Plugin::getLatLong (2772) 
async request: 
https://dsx.weather.com/wxd/v2/loc/en_US/66062:4:US?apiKey=7bb1c920-7027-4289-9c96-ae5e263980bc&format=json
  [20-04-13 16:30:55.2665] Plugins::SuperDateTime::Plugin::gotLatLong (2783) 
got 
https://dsx.weather.com/wxd/v2/loc/en_US/66062:4:US?apiKey=7bb1c920-7027-4289-9c96-ae5e263980bc&format=json
  [20-04-13 16:30:55.2673] Plugins::SuperDateTime::Plugin::gotLatLong (2796) 
Weather Station: 66062:4:US
  [20-04-13 16:30:55.2678] Plugins::SuperDateTime::Plugin::gotLatLong (2797) 
Weather Station Lat: 38.87
  [20-04-13 16:30:55.2682] Plugins::SuperDateTime::Plugin::gotLatLong (2798) 
Weather Station Long: -94.77
  [20-04-13 16:30:55.2687] Plugins::SuperDateTime::Plugin::gotLatLong (2799) 
Weather Station Name: Olathe, KS (66062)
  [20-04-13 16:30:55.2691] Plugins::SuperDateTime::Plugin::gotLatLong (2807) 
Weather Radar URL: 
https://api.weather.com/v2/maps/dynamic?geocode=39.0,-95.0&h=600&w=800&lod=7&product=radarFcst&map=light&format=jpg&language=en&apiKey=d522aa97197fd864d36b418f39ebb323
  [20-04-13 16:31:02.3867] Plugins::SuperDateTime::Plugin::refreshData (4130) 
Data refresh in process...
  
  
--------------------


Note:  The lat and long values in the geocode entry in the URL have a
resolution of 0.5.  Therefore only lat and long values ending with .0 or
.5 are accepted.


------------------------------------------------------------------------
BoomX2's Profile: http://forums.slimdevices.com/member.php?userid=33529
View this thread: http://forums.slimdevices.com/showthread.php?t=14327

_______________________________________________
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins

Reply via email to