Read the statement by Michael Teeuw here.
MMM-WeatherChart
-
the module should update every hour automatically, for testing purpose you could try in the config.js
{ module: 'mmm-weatherchart', position: 'bottom_left', // this can be any of the regions config: { country: 'Germany', // as determined above area: 'North_Rhine-Westphalia', // as determined above city: 'Duisburg', // as determined above updateInterval: 15 * 1000, hideBorder: true, // whether or not a border with city name should be shown } }
this should update every 15 seconds then open the dev console (Command+Shift+I) and see in the network tab if the picture is getting reloaded all the time or you having any errors in the console
-
@strawberry-3.141
Im no expert on reading the dev console but it seems to just update from cache after a while?Name: meteogram.png,
initalator: mmm-weatherchart
Time: 0ms
Size: (From Cache)
and it’s pileing up.On mmm-weatherchart.js it seems to update, every 15th secound but the chart does not.
Im going to let it stay like this awhile and return. -
Yea, as I thought. The chart just piles up and doesn’t update. The script however does update.
-
@gshimself I added a dummy parameter (timestamp) to the image which should prevent caching. I’ll check that later today when I find some time.
-
The module appends ‘#’ to the image so that the browser does not cache the image. This works on my old version of the mirror but not on the new version 2. Quite strange…
Fixed by replacing this part with ‘?’, at least for Chrome browser, the image is not cached any longer. @gshimself please pull changes and report wether it is also fixed for you.
-
@paphko ¨Perfect! Will pull the latest version when I get home. I’ll get back to you during the evening.
-
I like it!
Request: can you add a SCALE factor? Right now the image is considerably larger than I can accommodate… (yes, minor problem, I know). Maybe I have to mess with the custom.css?Anyway, apart from that small inconvenience, I like it.
-
@paphko Seems to be working fine now. Thank you for your help!
I guess that if I want 30min refreshrate it should be 60 * 30 * 1000,? -
@gshimself glad to hear that it’s fixed for you. Yes, because update interval must be specified in ms.
@amanzimdwini you could try to add a scale option, but I’m not sure how to properly implement it for both cases, with and without border. If you found a proper solution for it, tell me or create a pull request :-)
-
Great module! Is there anyway to present in Fahrenheit?