Using the default OWM blocks, so in my config file there is;
Code: Select all
//Configuring the OWM parameters
config['owm_api'] = 'put personal API key here'; // Personal OWM API key
config['owm_city'] = 'Apeldoorn'; // city or nearby city to use (you can also fill in the city id here)
config['owm_name'] = ''; // Name to use instead of city name
config['owm_country'] = 'nl'; // Your country
config['owm_lang'] = 'nl'; // Set language for description of the forecast (rain, cloudy, etc.). For available languages, see https://openweathermap.org/forecast5/#multi or '' (empty string, default) Use Dashticz language setting
config['owm_cnt'] = '3'; // Number of forecast elements (3-hour intervals or days) to show
config['owm_min'] = true; // true: Show minimum temperature on 2nd row (only applicable if owm_days is set to true) or false
config['owm_days'] = true; // false: Show forecast per 3 hour interval, true: Show daily forecast
Code: Select all
columns[14] = {
blocks: ['currentweather_big_owm','weather_owm'],
width: 3
}
Code: Select all
var screens = {}
screens[1] = {
columns: [14]
}
Problem with above config
The above has been working fine in an older (previous?) version of Dashticz.
In the latest version this has lead me to an
OpenWeather One Call service usage alert email message
I'm expecting this updates once every hour (default is 3600, right?), so with four clients that is 4 x 48 = 96 per day
I suspect that Dashticz in this case somehow doesn't default to 3600 anymore, or something else must trigger a new call, like refresh of the Kiosk browser? This i don't know, unfortunately OWM doesn't offer logging.
I am also running a script on domotics, every 30 minutes, this calls every 30 mins, so 192 per day, this i am sure off.
Problem with new config
So i have created a new OWM account and created a new key for Dashticz, but now it doesn't work at all, i only see the 'sun' icon.
When i move to my old account and API key, the newer blocks work!
Code: Select all
blocks['owm_weather_current'] = {
type: 'weather',
apikey: '<put personal API key here>', // Personal OWM API key
city: 'Apeldoorn',
width: 3,
refresh: 3600, // default = 3600
lang: 'nl',
icons: 'fill', // Icon set: 'line' Dynamic line icons | 'linestatic' Static version of the line icons | 'fill' Dynamic filled icons | 'static' Static icons | 'meteo' Alternative set of static icons
layout: 2 // Layout: 0: Daily forecast (=default) | 1: Hourly forecast | 2: Current weather | 3: Current weather detailed | 4: Combination of 2,3,0,1
}
So in the meanwhile, succesfully moved to beta branch, still did not manage to get blocks to work with my new API-key.
The above (older) config will also only work with my older key, a newer key does not work,
Funny thing is that, there is a similar API-response on both OLD and NEW key, with the following url;
https://api.openweathermap.org/data/2.5 ... key here>
Note: this is no longer described on OWM website, since they have moved to One-call (v3.0) so eventually this might stop working.
Question remains:
Can i somehow control (and ideally check) the update frequency, as i suspect that the old OWM blocks are updating more often than (3600) expected.
Suggestion
My suggestion would be to download data to the server once and (re-)use that for all connected clients in order to seperate API from dashboard refreshes. I'm guessing, but assume that currently each client will (re-)trigger the API.