I've just installed SuperDateTime and Custom Clock apps on my server
(7.9.2 - 1578996832) and Touch. Looks great. Weather data is being
displayed correctly by custom clock. However, after a while it
disappears. If I go to Extras>SuperDateTime this forces a refresh and it
starts working again.

I think this is something to do with the fact that I don't run my server
24hrs. The cached weather data is still displayed when the server is not
running. However, when I restart the server SuperDateTime doesn't seem
to refresh until I go to Extras. Looking at the log is does seem to make
a call to weather.com.


Code:
--------------------
    [20-02-09 09:42:32.4448] Slim::Buttons::Common::pushMode (2010) Pushing 
button mode: off
  [20-02-09 09:42:32.6639] Plugins::SuperDateTime::Plugin::gotLatLong (2775) 
got 
https://dsx.weather.com/wxd/v2/loc/en_US/SNXX0006:1:SN?apiKey=7bb1c920-7027-4289-9c96-ae5e263980bc&format=json
  [20-02-09 09:42:32.6642] Plugins::SuperDateTime::Plugin::gotLatLong (2783) 
Weather Station: SNXX0006:1:SN
  [20-02-09 09:42:32.6661] Plugins::SuperDateTime::Plugin::gotLatLong (2784) 
Weather Station Lat: 1.3
  [20-02-09 09:42:32.6693] Plugins::SuperDateTime::Plugin::gotLatLong (2785) 
Weather Station Long: 103.85
  [20-02-09 09:42:32.6694] Plugins::SuperDateTime::Plugin::gotLatLong (2786) 
Weather Station Name: Singapore, Singapore
  [20-02-09 09:42:32.6695] Plugins::SuperDateTime::Plugin::gotLatLong (2794) 
Weather Radar URL: 
https://api.weather.com/v2/maps/dynamic?geocode=1.5,104.0&h=600&w=800&lod=7&product=radarFcst&map=light&format=jpg&language=en&apiKey=d522aa97197fd864d36b418f39ebb323
  [20-02-09 09:46:36.3884] Slim::Buttons::Common::popMode (2145) Popped to 
button mode: empty!
--------------------


However, after I go to Extras the log looks like this:


Code:
--------------------
    [20-02-09 10:17:54.1401] Plugins::SuperDateTime::Plugin::duetCheck (2271) 
Player count: 2
  [20-02-09 10:17:54.1628] Plugins::SuperDateTime::Plugin::duetCheck (2272) 
Count of players with SDT active: 0
  [20-02-09 10:17:54.1631] Plugins::SuperDateTime::Plugin::duetCheck (2274) No 
active SDT clients so checking for Touch, Radio, Duet only configuration.
  [20-02-09 10:17:54.1634] Plugins::SuperDateTime::Plugin::duetCheck (2276) 
Player name = Apollo
  [20-02-09 10:17:54.1636] Plugins::SuperDateTime::Plugin::duetCheck (2277) 
Player type = fab4
  [20-02-09 10:17:54.1639] Plugins::SuperDateTime::Plugin::duetCheck (2282) 
Touch, Radio, or Non-display player found. Configuring SDT to always refresh 
data.
  [20-02-09 10:17:54.1642] Plugins::SuperDateTime::Plugin::duetCheck (2284)  
  [20-02-09 10:17:54.1644] Plugins::SuperDateTime::Plugin::duetCheck (2276) 
Player name = Squeezebox Receiver
  [20-02-09 10:17:54.1647] Plugins::SuperDateTime::Plugin::duetCheck (2277) 
Player type = receiver
  [20-02-09 10:17:54.1650] Plugins::SuperDateTime::Plugin::duetCheck (2282) 
Touch, Radio, or Non-display player found. Configuring SDT to always refresh 
data.
  [20-02-09 10:17:54.1652] Plugins::SuperDateTime::Plugin::duetCheck (2284)  
  [20-02-09 10:17:59.1657] Plugins::SuperDateTime::Plugin::refreshData (4075) 
Data refresh in process...
  [20-02-09 10:17:59.1666] Plugins::SuperDateTime::Plugin::getWeatherNow (3500) 
async request: 
https://api.weather.com/v2/turbo/vt1observation?apiKey=d522aa97197fd864d36b418f39ebb323&units=m&language=en-US&format=json&geocode=1.3,103.85
  [20-02-09 10:17:59.5487] Plugins::SuperDateTime::Plugin::gotWeatherNow (3515) 
got 
https://api.weather.com/v2/turbo/vt1observation?apiKey=d522aa97197fd864d36b418f39ebb323&units=m&language=en-US&format=json&geocode=1.3,103.85
  [20-02-09 10:17:59.5580] Plugins::SuperDateTime::Plugin::getWeatherToday 
(3059) async request: 
https://api.weather.com/v2/turbo/vt1dailyforecast?apiKey=d522aa97197fd864d36b418f39ebb323&format=json&language=en-US&units=m&geocode=1.3,103.85
  [20-02-09 10:17:59.7828] Plugins::SuperDateTime::Plugin::gotWeatherToday 
(3074) got 
https://api.weather.com/v2/turbo/vt1dailyforecast?apiKey=d522aa97197fd864d36b418f39ebb323&format=json&language=en-US&units=m&geocode=1.3,103.85
  [20-02-09 10:17:59.8311] Plugins::SuperDateTime::Plugin::getWunderground 
(3633) No wunderground.com value set.  Skipping...
  [20-02-09 10:17:59.8314] Plugins::SuperDateTime::Plugin::getMLB (4303) 
Skipping MLB...
  [20-02-09 10:17:59.8317] Plugins::SuperDateTime::Plugin::getNFL (5615) 
Skipping NFL...
  [20-02-09 10:17:59.8320] Plugins::SuperDateTime::Plugin::getNBA (4665) 
Skipping NBA...
  [20-02-09 10:17:59.8322] Plugins::SuperDateTime::Plugin::getNHL (5400) 
Skipping NHL...
  [20-02-09 10:17:59.8326] Plugins::SuperDateTime::Plugin::getCBB (4940) 
Skipping CBB...
  [20-02-09 10:17:59.8330] Plugins::SuperDateTime::Plugin::getCFB (5162) 
Skipping CFB...
  [20-02-09 10:17:59.8332] Plugins::SuperDateTime::Plugin::getStocks (3752) No 
stocks selected... Skipping
  [20-02-09 10:17:59.8336] Plugins::SuperDateTime::Plugin::getAverages (2811) 
async request: 
http://dsx.weather.com/wxd/v2/FarmingAlmanac/0/(SNXX0006:1:SN)?api=7bb1c920-7027-4289-9c96-ae5e263980bc&format=json
  [20-02-09 10:18:01.4461] Plugins::SuperDateTime::Plugin::gotAverages (2830) 
got 
http://dsx.weather.com/wxd/v2/FarmingAlmanac/0/(SNXX0006:1:SN)?api=7bb1c920-7027-4289-9c96-ae5e263980bc&format=json
  [20-02-09 10:18:01.4666] Plugins::SuperDateTime::Plugin::refreshData (4138) 
Drawing screens...
  [20-02-09 10:18:08.9984] Plugins::SuperDateTime::Plugin::doneDrawing (4207) 
Done drawing screens.
  [20-02-09 10:18:08.9988] Plugins::SuperDateTime::Plugin::doneDrawing (4239) 
Data refresh completed.
--------------------


Not sure why it wouldn't refresh on restarting the server.


------------------------------------------------------------------------
aapthorp's Profile: http://forums.slimdevices.com/member.php?userid=4739
View this thread: http://forums.slimdevices.com/showthread.php?t=73827

_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/plugins

Reply via email to