jarome wrote: 
> I am at zip 37830. No matter what I enter in the setting (37830:0:US,
> 37830:US, 37830:1:US) it reverts to Chicago as soon as I leave the page.
> What am I doing wrong?

The correct format for a weather station identifier based on a US postal
zip code is 37830*:4:*US.   

PS - Starting with SDT version 5.11.26 I added a little more logic to
attempt to correct so now entering only the US 5-digit zip code without
any suffix will also work.  If you enter 37830 then leave the SDT
settings page, when you return you will see it has added the :4:US to
the end of the zip code.  SDT will also add :1: + the 2-character
country code to an 8-character alphanumeric weather.codes station
identifier entered without the suffix.  For example entering USTN0370
will be updated to USTN0370:1:US.

For future reference it is a good idea to check server logs if a plugin
does not work as expected.  You might find clues about what went wrong. 
If you check your log now you should see entries similar to these.

Code:
--------------------
    
  [22-12-05 20:49:21.9319] Plugins::SuperDateTime::Plugin::gotErrorViaHTTP 
(6860) error getting 
https://api.weather.com/v3/location/point?apiKey=*&format=json&language=en-US&locid=37830:0:US
  [22-12-05 20:49:46.9328] Plugins::SuperDateTime::Plugin::gotErrorViaHTTP 
(6861) 404 Not Found
  [22-12-05 20:49:46.9337] Plugins::SuperDateTime::Plugin::gotErrorViaHTTP 
(6885) Unable to get latitude and longitude for Weather Station Identifier 
37830:0:US.
  [22-12-05 20:49:46.9344] Plugins::SuperDateTime::Plugin::gotErrorViaHTTP 
(6886) Check your Weather.com Station Identifier and try again
  [22-12-05 20:49:46.9357] Plugins::SuperDateTime::Plugin::gotErrorViaHTTP 
(6888) Defaulting identifier to Chicago: 60614:4:US
  
  [22-12-05 21:37:03.2034] Plugins::SuperDateTime::Plugin::refreshSoon (4358) 
Invalid Weather.com Identifier entered. 37830:US
  [22-12-05 21:37:03.2040] Plugins::SuperDateTime::Plugin::refreshSoon (4359) 
Check your Weather.com Identifier and try again
  [22-12-05 21:37:03.2049] Plugins::SuperDateTime::Plugin::refreshSoon (4361) 
Defaulting identifier to Chicago: 60614:4:US
  
  [22-12-05 21:38:24.2850] Plugins::SuperDateTime::Plugin::gotErrorViaHTTP 
(6860) error getting 
https://api.weather.com/v3/location/point?apiKey=*&format=json&language=en-US&locid=37830:1:US
  [22-12-05 21:38:24.2859] Plugins::SuperDateTime::Plugin::gotErrorViaHTTP 
(6861) 404 Not Found
  [22-12-05 21:38:24.2867] Plugins::SuperDateTime::Plugin::gotErrorViaHTTP 
(6885) Unable to get latitude and longitude for Weather Station Identifier 
37830:1:US.
  [22-12-05 21:38:24.2874] Plugins::SuperDateTime::Plugin::gotErrorViaHTTP 
(6886) Check your Weather.com Station Identifier and try again
  [22-12-05 21:38:24.2891] Plugins::SuperDateTime::Plugin::gotErrorViaHTTP 
(6888) Defaulting identifier to Chicago: 60614:4:US
  
--------------------


You will this if SDT is able to correct the weather station identifier
entry.

Code:
--------------------
    
  [22-12-05 20:45:46.2946] Plugins::SuperDateTime::Plugin::refreshSoon (4342) 
US Postal Code entered without suffix. 37830
  [22-12-05 20:45:46.2953] Plugins::SuperDateTime::Plugin::refreshSoon (4346) 
Suffix added.  Weather station set to 37830:4:US
  
  
  [22-12-05 20:47:48.2129] Plugins::SuperDateTime::Plugin::refreshSoon (4349) 
Weather.code station entered without suffix. USTN0370
  [22-12-05 20:47:48.2144] Plugins::SuperDateTime::Plugin::refreshSoon (4354) 
Suffix added.  Weather station set to USTN0370:1:US
  
--------------------


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

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

Reply via email to