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
Welcome to the Cumulus Support forum.
Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024
Cumulus MX V4 beta test release 4.0.0 (build 4019) - 03 April 2024
Legacy Cumulus 1 release 1.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
Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024
Cumulus MX V4 beta test release 4.0.0 (build 4019) - 03 April 2024
Legacy Cumulus 1 release 1.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
Cumulusutils and realtimegauges.txt
Moderator: HansR
- HansR
- Posts: 5963
- Joined: Sat 20 Oct 2012 6:53 am
- Weather Station: GW1100 (WS80/WH40)
- Operating System: Raspberry OS/Bookworm
- Location: Wagenborgen (NL)
- Contact:
Re: Cumulusutils and realtimegauges.txt
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.
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
CMX build 4017+ ● RPi 3B+ ● Raspbian Linux 6.1.21-v7+ armv7l ● dotnet 8.0.3
https://meteo-wagenborgen.nl
CMX build 4017+ ● RPi 3B+ ● Raspbian Linux 6.1.21-v7+ armv7l ● dotnet 8.0.3
-
- Posts: 1815
- Joined: Sat 17 Dec 2011 11:55 am
- Weather Station: Davis Vantage Pro2
- Operating System: Windows 11 x64
- Location: Dorset - UK
- Contact:
Re: Cumulusutils and realtimegauges.txt
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'
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'
-
- Posts: 377
- Joined: Sun 14 Oct 2012 4:23 pm
- Weather Station: HP2553 (WS80) and HP2564 (WS90)
- Operating System: Raspbian Bullseye and Bookworm
- Location: Rjoanddalen and Kronstad, Norway
- Contact:
Re: Cumulusutils and realtimegauges.txt
Yes, that solved the problem.I would have thought that the file path should be: '../realtimegauges.txt'
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.
- HansR
- Posts: 5963
- Joined: Sat 20 Oct 2012 6:53 am
- Weather Station: GW1100 (WS80/WH40)
- Operating System: Raspberry OS/Bookworm
- Location: Wagenborgen (NL)
- Contact:
Re: Cumulusutils and realtimegauges.txt
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.
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
CMX build 4017+ ● RPi 3B+ ● Raspbian Linux 6.1.21-v7+ armv7l ● dotnet 8.0.3
https://meteo-wagenborgen.nl
CMX build 4017+ ● RPi 3B+ ● Raspbian Linux 6.1.21-v7+ armv7l ● dotnet 8.0.3
- HansR
- Posts: 5963
- Joined: Sat 20 Oct 2012 6:53 am
- Weather Station: GW1100 (WS80/WH40)
- Operating System: Raspberry OS/Bookworm
- Location: Wagenborgen (NL)
- Contact:
Re: Cumulusutils and realtimegauges.txt
solved in 6.7.7
Hans
https://meteo-wagenborgen.nl
CMX build 4017+ ● RPi 3B+ ● Raspbian Linux 6.1.21-v7+ armv7l ● dotnet 8.0.3
https://meteo-wagenborgen.nl
CMX build 4017+ ● RPi 3B+ ● Raspbian Linux 6.1.21-v7+ armv7l ● dotnet 8.0.3