Welcome to the Cumulus Support forum.

Latest Cumulus MX release 3.14.0 (build 3159) - 04 December 2021

Legacy Cumulus 1 release v1.9.4 (build 1099) - 28 November 2014 (a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)

Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki

If you are interested in supporting Cumulus then maybe you would like to contribute to the maintenance of the Wiki? This need not take hours of your time - just a half hour here and there can make a big difference, particularly if many people are doing this. Any contributions are very welcome, whether they involve new content or editing of existing content. It will be very helpful to current and future users of Cumulus software if the Wiki is kept well-maintained and current. If you are interested then please contact forum user saratogaWX and ask for a Wiki account.

Cumulusutils and realtimegauges.txt

Discussion of the Cumulusutils tool and website generator.

Moderator: HansR

Post Reply
sutne
Posts: 190
Joined: Sun 14 Oct 2012 4:23 pm
Weather Station: Ecowitt HP2553
Operating System: Raspbian Buster
Location: Rjoanddalen, Voss, Norway
Contact:

Cumulusutils and realtimegauges.txt

Post by sutne »

I have recently discovered a strange behavior of Cutils:

When opening the main page I have realtimedata almost immediatly, but the gauges shows 0 or nothing for 10 s. Then they show.
Using netinspector in a browser, it tells me that realtimegauges.txt is not found,
but after 10 s it finds it.

My realtime-files are not in the same folder as Cutils, but in web-root, which I have put into cumulusutils.ini. And realtime.txt is found.

I noticed this so time ago, so it is not new in the latest version. But I think it used to be Ok.

http://www.rjoandveret.no/utils/index.html

User avatar
HansR
Posts: 2661
Joined: Sat 20 Oct 2012 6:53 am
Weather Station: GW1100 (WS80/WH40)
Operating System: Raspberry OS/Buster/Bullseye
Location: Wagenborgen (NL)
Contact:

Re: Cumulusutils and realtimegauges.txt

Post by HansR »

Yes, I noticed this (rare) behaviour too. When all files are renewed (e.g. after an update), the download for the website is quite large and the loading takes a lot of time. Normally I would expect a timeout on some of the realtime files, not a 'not found'. A refresh of the site should load it faster because some files are already in present and in cache and therefore it has more time for the others. It is especially a renewal of the index and the javascript libraries which take their toll.

It depends on the performance of the client machine, the internet speed and the server.
There is little I can do from an application point of view.

But if there is anybody who has a brilliant idea, I am all ears.
Hans

https://meteo-wagenborgen.nl
https://meteo-wagenborgen.nl/CMX4/index.html
Cumulus build 3149 ● Ecowitt GW1100/WS80/WH40 ● RPi 3B+ ● Raspbian 5.10.52-v7+ ● Mono 6.12.0.122

Mapantz
Posts: 1083
Joined: Sat 17 Dec 2011 11:55 am
Weather Station: Davis Vantage Pro2
Operating System: Windows 10 x64
Location: Dorset - UK
Contact:

Re: Cumulusutils and realtimegauges.txt

Post by Mapantz »

It's trying to find: http://www.rjoandveret.no/utils/realtimegauges.txt

When it should be: http://www.rjoandveret.no/realtimegauges.txt

In: http://www.rjoandveret.no/utils/lib/gauges.js

realTimeUrl: 'realtimegauges.txt', // *** Cumulus Users: Change to your location of the realtime file ***

I would have thought that the file path should be: '../realtimegauges.txt'
Image

sutne
Posts: 190
Joined: Sun 14 Oct 2012 4:23 pm
Weather Station: Ecowitt HP2553
Operating System: Raspbian Buster
Location: Rjoanddalen, Voss, Norway
Contact:

Re: Cumulusutils and realtimegauges.txt

Post by sutne »

I would have thought that the file path should be: '../realtimegauges.txt'
Yes, that solved the problem.
Temporarly, because this file will be overwritten next time I do a ‘cumulusutils.exe website’.
And it does not explain why it did work after 10s before this change.

User avatar
HansR
Posts: 2661
Joined: Sat 20 Oct 2012 6:53 am
Weather Station: GW1100 (WS80/WH40)
Operating System: Raspberry OS/Buster/Bullseye
Location: Wagenborgen (NL)
Contact:

Re: Cumulusutils and realtimegauges.txt

Post by HansR »

Aha... thank you @Mapantz! You are not fully right but you pointed in the better direction, my first thoughts were on another effect.

What happens during intialisation is that with a promise.all, four files are loaded amongst which the gauges.js. Then when the gauges are loaded (and only then) I am able to change the location of the realtimegauges.js and the timer settings. But when that is done the first file read moment - native to gauges.js - has already passed and leaves the file utils/realtimegauges.txt not found. This cannot be prevented as it is only after the gauges are loaded that I can change the default settings (like the timing and the location of the realtimegauges.txt).

So this is a problem of having to load gauges.js before being able to change the settings (don't do that manually by editing the gauges!).
It would also wait with changing the look and feel of the gauges if you had not used the default.

So, in summary, when you change the defaults of the gauges.js, those changes will only be effective after the loading of the gauges.
I might take a second look at that situation, especially at the first reading of that realtimegauges.txt.
Hans

https://meteo-wagenborgen.nl
https://meteo-wagenborgen.nl/CMX4/index.html
Cumulus build 3149 ● Ecowitt GW1100/WS80/WH40 ● RPi 3B+ ● Raspbian 5.10.52-v7+ ● Mono 6.12.0.122

User avatar
HansR
Posts: 2661
Joined: Sat 20 Oct 2012 6:53 am
Weather Station: GW1100 (WS80/WH40)
Operating System: Raspberry OS/Buster/Bullseye
Location: Wagenborgen (NL)
Contact:

Re: Cumulusutils and realtimegauges.txt

Post by HansR »

solved in 6.7.7
Hans

https://meteo-wagenborgen.nl
https://meteo-wagenborgen.nl/CMX4/index.html
Cumulus build 3149 ● Ecowitt GW1100/WS80/WH40 ● RPi 3B+ ● Raspbian 5.10.52-v7+ ● Mono 6.12.0.122

Post Reply