Welcome to the Cumulus Support forum.
Latest Cumulus MX V4 release 4.0.0 (build 4022) - 11 May 2024
Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 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 V4 release 4.0.0 (build 4022) - 11 May 2024
Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 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
CustomLogs as module
Moderator: HansR
- HansR
- Posts: 6001
- Joined: Sat 20 Oct 2012 6:53 am
- Weather Station: GW1100 (WS80/WH40)
- Operating System: Raspberry OS/Bookworm
- Location: Wagenborgen (NL)
- Contact:
Re: CustomLogs as module
Any link to that topic?
I really am curious
I really am curious
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
- Dador
- Posts: 226
- Joined: Thu 24 Nov 2011 2:22 pm
- Weather Station: Davis VP2 Plus & Ecowitt
- Operating System: Windows 10
- Location: Rybnik, Poland
- Contact:
Re: CustomLogs as module
We have already discussed empty fields and the problems they cause here - https://cumulus.hosiene.co.uk/viewtopic.php?t=21223
- HansR
- Posts: 6001
- Joined: Sat 20 Oct 2012 6:53 am
- Weather Station: GW1100 (WS80/WH40)
- Operating System: Raspberry OS/Bookworm
- Location: Wagenborgen (NL)
- Contact:
Re: CustomLogs as module
OK, but that was about the dayfile, now we are discussing a custom log. Apparently you created a CustomLog with the timefields in it. Those invalid webtags are not put into the list CUtils is using so reading the log gets errors (you can't convert a date to a double)Dador wrote: ↑Wed 24 Jan 2024 10:18 am We have already discussed empty fields and the problems they cause here - https://cumulus.hosiene.co.uk/viewtopic.php?t=21223
The custom log is differently: only valid webtags are allowed in the definition. You can violate that rule because there is no direct communication between CMX and CUtils. It is only detected when you are reading the definition of the CustomLogs when running CUtils. But from a CMX point of view it is perfectly legal.
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
- Dador
- Posts: 226
- Joined: Thu 24 Nov 2011 2:22 pm
- Weather Station: Davis VP2 Plus & Ecowitt
- Operating System: Windows 10
- Location: Rybnik, Poland
- Contact:
Re: CustomLogs as module
Request to unblock a tag <#stationpressure>
- HansR
- Posts: 6001
- Joined: Sat 20 Oct 2012 6:53 am
- Weather Station: GW1100 (WS80/WH40)
- Operating System: Raspberry OS/Bookworm
- Location: Wagenborgen (NL)
- Contact:
Re: CustomLogs as module
OK, introduced in CMX 3.24.0 b3231 and apparently missed it (updates.txt does not have dates with the versions)
I'll create CUtils 6.23.6, to be released today.
I'll create CUtils 6.23.6, to be released today.
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
- Dador
- Posts: 226
- Joined: Thu 24 Nov 2011 2:22 pm
- Weather Station: Davis VP2 Plus & Ecowitt
- Operating System: Windows 10
- Location: Rybnik, Poland
- Contact:
Re: CustomLogs as module
I installed it, works, thank you .
- Dador
- Posts: 226
- Joined: Thu 24 Nov 2011 2:22 pm
- Weather Station: Davis VP2 Plus & Ecowitt
- Operating System: Windows 10
- Location: Rybnik, Poland
- Contact:
Re: CustomLogs as module
Hi,
I have a small problem with version 7.0.0. Actually, it all works, but my start pages for the temperature, precipitation and sun graphs are blank when opened. When you press any button, everything works.
I don't know what could be causing the chart not to load right away.
Additionally, I see that the HigchCharts 11.3.0 version does not work for me. I still have 11.2.0, then HeatMap works, for example.
Here is the page with graphstemp charts.
https://cmx.pogodarybnik.pl/graphstemp.htm
I have a small problem with version 7.0.0. Actually, it all works, but my start pages for the temperature, precipitation and sun graphs are blank when opened. When you press any button, everything works.
I don't know what could be causing the chart not to load right away.
Additionally, I see that the HigchCharts 11.3.0 version does not work for me. I still have 11.2.0, then HeatMap works, for example.
Here is the page with graphstemp charts.
https://cmx.pogodarybnik.pl/graphstemp.htm
- HansR
- Posts: 6001
- Joined: Sat 20 Oct 2012 6:53 am
- Weather Station: GW1100 (WS80/WH40)
- Operating System: Raspberry OS/Bookworm
- Location: Wagenborgen (NL)
- Contact:
Re: CustomLogs as module
@dador: I'll investigate tomorrow and indeed HC is still not OK for the current CDN release (at 11.4 currently) so 11.2 or lower is advised. They have some issues with regression errors which is beyond our control.
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: 6001
- Joined: Sat 20 Oct 2012 6:53 am
- Weather Station: GW1100 (WS80/WH40)
- Operating System: Raspberry OS/Bookworm
- Location: Wagenborgen (NL)
- Contact:
Re: CustomLogs as module
Hi... I started looking at it. Sorry for the delay.
I see you use a file graphstemp.html. I am not sure what that does.
The new urlParams variable apparently goes unseen in your situation.
And... aha... I see what happens.
I'll get back on this one but could you post your graphstemp.html in the mean time?
I see you use a file graphstemp.html. I am not sure what that does.
The new urlParams variable apparently goes unseen in your situation.
And... aha... I see what happens.
I'll get back on this one but could you post your graphstemp.html in the mean time?
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: 6001
- Joined: Sat 20 Oct 2012 6:53 am
- Weather Station: GW1100 (WS80/WH40)
- Operating System: Raspberry OS/Bookworm
- Location: Wagenborgen (NL)
- Contact:
Re: CustomLogs as module
OK, thanks.
My first attempt should give the confirmation for a solution, after that we will decide on the definitive implementation
Could you enter the following script in your header of your index file (<!-- Utility javascripts for all pages. --> would be an adequate place) so:
That should do it.
If that works, we will discuss how to use this generically and also how to implement your menu choice without the use of e.g. graphstemp.html (although I now realise that would likely change the menu choice system which now is simply a link... have to think about that).
But first steps first.
My first attempt should give the confirmation for a solution, after that we will decide on the definitive implementation
Could you enter the following script in your header of your index file (<!-- Utility javascripts for all pages. --> would be an adequate place) so:
Code: Select all
<!-- Utility javascripts for all pages. -->
<script>
const urlParams = new URLSearchParams(window.location.search);
</script>
If that works, we will discuss how to use this generically and also how to implement your menu choice without the use of e.g. graphstemp.html (although I now realise that would likely change the menu choice system which now is simply a link... have to think about that).
But first steps first.
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
- Dador
- Posts: 226
- Joined: Thu 24 Nov 2011 2:22 pm
- Weather Station: Davis VP2 Plus & Ecowitt
- Operating System: Windows 10
- Location: Rybnik, Poland
- Contact:
Re: CustomLogs as module
Hans,
as always, you are reliable in helping .
Way to go.
Script works.
as always, you are reliable in helping .
Way to go.
Script works.
- HansR
- Posts: 6001
- Joined: Sat 20 Oct 2012 6:53 am
- Weather Station: GW1100 (WS80/WH40)
- Operating System: Raspberry OS/Bookworm
- Location: Wagenborgen (NL)
- Contact:
Re: CustomLogs as module
OK. I'll make a description of how to continue with cumulusutils.js which would make it possible for you to use the CUtils website infrastructure (not compulsory) of loading reports/charts from menu choices. Much like Barry does in his Australian sites e.g. Roleystone.
But the short way out is what you have now.
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: 6001
- Joined: Sat 20 Oct 2012 6:53 am
- Weather Station: GW1100 (WS80/WH40)
- Operating System: Raspberry OS/Bookworm
- Location: Wagenborgen (NL)
- Contact:
Re: CustomLogs as module
I made the first step in documenting how to handle the module/URL query parameter issue.
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
- Dador
- Posts: 226
- Joined: Thu 24 Nov 2011 2:22 pm
- Weather Station: Davis VP2 Plus & Ecowitt
- Operating System: Windows 10
- Location: Rybnik, Poland
- Contact:
Re: CustomLogs as module
Hi,
Currently, Cutils analyzes all files that are defined in the Custom Logs tab. I have 2 files there, one is drawn by the module and the other is not. Additionally, the second file contains prohibited webatags, i.e. dates, and I don't want to draw them.
The problem is that this second file with dates creates large reports. Additionally, it slows down the computer significantly.
Is it possible and sensible to create a parameter where it will be possible to define a custom log to be taken into account by Cutils?
For hypothetical example in cumulusutils.ini
In this case, Cutils will only deal with the specified file, not all of them.
Currently, Cutils analyzes all files that are defined in the Custom Logs tab. I have 2 files there, one is drawn by the module and the other is not. Additionally, the second file contains prohibited webatags, i.e. dates, and I don't want to draw them.
The problem is that this second file with dates creates large reports. Additionally, it slows down the computer significantly.
Is it possible and sensible to create a parameter where it will be possible to define a custom log to be taken into account by Cutils?
For hypothetical example in cumulusutils.ini
Code: Select all
[General]
CustomLogFile=customlog.txt -- here is the name of the file that would be executed. If empty, it would remain as it is now.