AppleByter wrote: > I've just installed SDT, after looking for a replacement for Weather, > Date, Time. I'm running LMS 7.7.6 on a Synology DiskStation. I can't get > SDT to change its weather location from the default of Chicago. I'm in > Brisbane, Australia. I think the city id is ASXX0016. When I enter this > into the settings for SDT it displays when I click Apply, but the next > time I go back to settings it is back to being Chicago. > > Possibly related, I am getting an error in my server log, indicating > that there was an error when SDT tried to access the weather.com API. > The error log is: > > Code: -------------------- > > > [19-03-30 20:27:53.9000] Plugins::SuperDateTime::Plugin::gotErrorViaHTTP (6140) error getting https://api.weather.com/v2/turbo/vt1observation?apiKey=d522aa97197fd864d36b418f39ebb323&units=m&language=&format=json&geocode=41.92,-87.65 > [19-03-30 20:27:53.9010] Plugins::SuperDateTime::Plugin::gotErrorViaHTTP (6141) 400 Bad Request > [19-03-30 20:27:57.3739] Plugins::SuperDateTime::Plugin::gotErrorViaHTTP (6140) error getting https://api.weather.com/v2/turbo/vt1observation?apiKey=d522aa97197fd864d36b418f39ebb323&units=m&language=&format=json&geocode=41.92,-87.65 > [19-03-30 20:27:57.3745] Plugins::SuperDateTime::Plugin::gotErrorViaHTTP (6141) 400 Bad Request > [19-03-30 20:28:00.7352] Plugins::SuperDateTime::Plugin::gotErrorViaHTTP (6140) error getting https://api.weather.com/v2/turbo/vt1observation?apiKey=d522aa97197fd864d36b418f39ebb323&units=m&language=&format=json&geocode=41.92,-87.65 > [19-03-30 20:28:00.7361] Plugins::SuperDateTime::Plugin::gotErrorViaHTTP (6141) 400 Bad Request > [19-03-30 20:28:04.0834] Plugins::SuperDateTime::Plugin::gotErrorViaHTTP (6140) error getting https://api.weather.com/v2/turbo/vt1observation?apiKey=d522aa97197fd864d36b418f39ebb323&units=m&language=&format=json&geocode=41.92,-87.65 > [19-03-30 20:28:04.0841] Plugins::SuperDateTime::Plugin::gotErrorViaHTTP (6141) 400 Bad Request > [19-03-30 20:28:07.4858] Plugins::SuperDateTime::Plugin::gotErrorViaHTTP (6140) error getting https://api.weather.com/v2/turbo/vt1observation?apiKey=d522aa97197fd864d36b418f39ebb323&units=m&language=&format=json&geocode=41.92,-87.65 > [19-03-30 20:28:07.4864] Plugins::SuperDateTime::Plugin::gotErrorViaHTTP (6141) 400 Bad Request > [19-03-30 20:28:10.8069] Plugins::SuperDateTime::Plugin::gotErrorViaHTTP (6140) error getting https://api.weather.com/v2/turbo/vt1observation?apiKey=d522aa97197fd864d36b418f39ebb323&units=m&language=&format=json&geocode=41.92,-87.65 > [19-03-30 20:28:10.8077] Plugins::SuperDateTime::Plugin::gotErrorViaHTTP (6141) 400 Bad Request > [19-03-30 20:28:14.1273] Plugins::SuperDateTime::Plugin::gotErrorViaHTTP (6140) error getting https://api.weather.com/v2/turbo/vt1observation?apiKey=d522aa97197fd864d36b418f39ebb323&units=m&language=&format=json&geocode=41.92,-87.65 > [19-03-30 20:28:14.1280] Plugins::SuperDateTime::Plugin::gotErrorViaHTTP (6141) 400 Bad Request > [19-03-30 20:28:17.4478] Plugins::SuperDateTime::Plugin::gotErrorViaHTTP (6140) error getting https://api.weather.com/v2/turbo/vt1observation?apiKey=d522aa97197fd864d36b418f39ebb323&units=m&language=&format=json&geocode=41.92,-87.65 > [19-03-30 20:28:17.4484] Plugins::SuperDateTime::Plugin::gotErrorViaHTTP (6141) 400 Bad Request > [19-03-30 20:28:17.4490] Plugins::SuperDateTime::Plugin::gotErrorViaHTTP (6145) Network error count reached during getWeatherNow. > [19-03-30 20:28:17.7647] Plugins::SuperDateTime::Plugin::gotErrorViaHTTP (6140) error getting https://api.weather.com/v2/turbo/vt1dailyforecast?apiKey=d522aa97197fd864d36b418f39ebb323&format=json&language=&units=m&geocode=41.92,-87.65 > [19-03-30 20:28:17.7653] Plugins::SuperDateTime::Plugin::gotErrorViaHTTP (6141) 400 Bad Request > [19-03-30 20:28:17.7659] Plugins::SuperDateTime::Plugin::gotErrorViaHTTP (6145) Network error count reached during getWeatherToday. > [19-03-30 20:28:25.3209] Plugins::SuperDateTime::Plugin::doneDrawing (4080) Data refresh completed with errors. > -------------------- > > > > If I enter the URL into a browser it returns the following JSON > string: > > Code: -------------------- > > { "error": "validation errors detected"} -------------------- > > > > Another, possibly related issue, I'm seeing in the server log is: > > Code: -------------------- > > > [19-03-30 20:27:53.6913] Slim::Utils::Strings::string (488) Error: missing string PLUGIN_SCREENSAVER_SUPERDATETIME_WMAPLIST_CUST > [19-03-30 20:27:53.6925] Slim::Utils::Strings::string (488) Backtrace: > > frame 0: Slim::Utils::Log::logBacktrace (/volume1/@appstore/SqueezeCenter/Slim/Utils/Strings.pm line 488) > frame 1: Slim::Utils::Strings::string (/volume1/@appstore/SqueezeCenter/Slim/Web/Template/SkinManager.pm line 210) > frame 2: Slim::Web::Template::SkinManager::__ANON__ (/volume1/@appstore/SqueezeCenter/Cache/InstalledPlugins/Plugins/SuperDateTime/HTML/EN/plugins/SuperDateTime/settings/basic.html line 47) > frame 3: (eval) (/volume1/@appstore/SqueezeCenter/Cache/InstalledPlugins/Plugins/SuperDateTime/HTML/EN/plugins/SuperDateTime/settings/basic.html line 16) > frame 4: Template::Provider::__ANON__ (/usr/local/share/perl5/vendor_perl/Template/Document.pm line 163) > frame 5: (eval) (/usr/local/share/perl5/vendor_perl/Template/Document.pm line 161) > frame 6: Template::Document::process (/usr/local/share/perl5/vendor_perl/Template/Context.pm line 351) > frame 7: (eval) (/usr/local/share/perl5/vendor_perl/Template/Context.pm line 321) > frame 8: Template::Context::process (/volume1/@appstore/SqueezeCenter/Slim/Web/Template/Context.pm line 40) > frame 9: Slim::Web::Template::Context::process (/usr/local/share/perl5/vendor_perl/Template/Service.pm line 94) > frame 10: (eval) (/usr/local/share/perl5/vendor_perl/Template/Service.pm line 91) > frame 11: Template::Service::process (/usr/local/share/perl5/vendor_perl/Template.pm line 66) > frame 12: Template::process (/volume1/@appstore/SqueezeCenter/Slim/Web/Template/SkinManager.pm line 323) > frame 13: Slim::Web::Template::SkinManager::_fillTemplate (/volume1/@appstore/SqueezeCenter/Slim/Web/Template/NoWeb.pm line 70) > frame 14: Slim::Web::Template::NoWeb::_generateContentFromFile (/volume1/@appstore/SqueezeCenter/Slim/Web/HTTP.pm line 2559) > frame 15: Slim::Web::HTTP::filltemplatefile (/volume1/@appstore/SqueezeCenter/Slim/Web/Settings.pm line 272) > frame 16: Slim::Web::Settings::handler (/volume1/@appstore/SqueezeCenter/Cache/InstalledPlugins/Plugins/SuperDateTime/lib/Plugins/SuperDateTime/Settings.pm line 345) > frame 17: Plugins::SuperDateTime::Settings::handler (/volume1/@appstore/SqueezeCenter/Slim/Web/HTTP.pm line 1128) > frame 18: Slim::Web::HTTP::generateHTTPResponse (/volume1/@appstore/SqueezeCenter/Slim/Web/HTTP.pm line 930) > frame 19: Slim::Web::HTTP::processURL (/volume1/@appstore/SqueezeCenter/Slim/Web/HTTP.pm line 734) > frame 20: Slim::Web::HTTP::processHTTP (/volume1/@appstore/SqueezeCenter/Slim/Networking/IO/Select.pm line 139) > frame 21: (eval) (/volume1/@appstore/SqueezeCenter/Slim/Networking/IO/Select.pm line 123) > frame 22: Slim::Networking::IO::Select::__ANON__ (/volume1/@appstore/SqueezeCenter/Slim/Networking/IO/Select.pm line 184) > frame 23: (eval) (/volume1/@appstore/SqueezeCenter/Slim/Networking/IO/Select.pm line 184) > frame 24: Slim::Networking::IO::Select::loop (/volume1/@appstore/SqueezeCenter/slimserver.pl line 694) > frame 25: main::idle (/volume1/@appstore/SqueezeCenter/slimserver.pl line 644) > frame 26: main::main (/volume1/@appstore/SqueezeCenter/slimserver.pl line 1157) > -------------------- > > > > Any help in getting SDT to work would be appreciated.
As @Pommes recommended your weather.com identifier needs to be uppercase and complete as follows or the plugin will revert to Chicago. ASXX0016:1:AS ASXX0016:1:AS works on my system and points to a lat and long of -27.47,153.03. You also need to fill in the language field on the settings page. Use en-AU for English-Australia. I noticed language was missing from the URLs in your log file. That's the reason for the JSON file returning with validation errors when you pasted it in manually. >From the backtrace you posted it appears you have a combination of tcuttings SDT plugin and the sdt-weather-com plugin installed. The settings string [plugin_screensaver_superdatetime_wmaplist_cust] is unique to the tcutting SDT plugin. The 2 plugins cannot co-exist. You will need to completely remove the tcutting plugin to get the sdt-weather-com plugin to work correctly. +-------------------------------------------------------------------+ |Filename: Capture1.PNG | |Download: http://forums.slimdevices.com/attachment.php?attachmentid=27063| +-------------------------------------------------------------------+ ------------------------------------------------------------------------ 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 [email protected] http://lists.slimdevices.com/mailman/listinfo/plugins
