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

CustomLogs as module

Discussion of the Cumulusutils tool and website generator.

Moderator: HansR

User avatar
HansR
Posts: 5969
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

Post by HansR »

:lol: Any link to that topic?
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
User avatar
Dador
Posts: 202
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

Post by Dador »

We have already discussed empty fields and the problems they cause here - https://cumulus.hosiene.co.uk/viewtopic.php?t=21223
User avatar
HansR
Posts: 5969
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

Post by HansR »

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
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)

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
User avatar
Dador
Posts: 202
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

Post by Dador »

Request to unblock a tag <#stationpressure>
User avatar
HansR
Posts: 5969
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

Post by HansR »

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.
Hans

https://meteo-wagenborgen.nl
CMX build 4017+ ● RPi 3B+ ● Raspbian Linux 6.1.21-v7+ armv7l ● dotnet 8.0.3
User avatar
Dador
Posts: 202
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

Post by Dador »

HansR wrote: Tue 30 Jan 2024 11:55 am 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 installed it, works, thank you ;) .
User avatar
Dador
Posts: 202
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

Post by Dador »

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
User avatar
HansR
Posts: 5969
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

Post by HansR »

@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
User avatar
HansR
Posts: 5969
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

Post by HansR »

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?
Hans

https://meteo-wagenborgen.nl
CMX build 4017+ ● RPi 3B+ ● Raspbian Linux 6.1.21-v7+ armv7l ● dotnet 8.0.3
User avatar
Dador
Posts: 202
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

Post by Dador »

I send PM.
User avatar
HansR
Posts: 5969
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

Post by HansR »

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:

Code: Select all

<!--	Utility javascripts for all pages.	-->
<script>
  const urlParams = new URLSearchParams(window.location.search);
</script>
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.
Hans

https://meteo-wagenborgen.nl
CMX build 4017+ ● RPi 3B+ ● Raspbian Linux 6.1.21-v7+ armv7l ● dotnet 8.0.3
User avatar
Dador
Posts: 202
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

Post by Dador »

Hans,

as always, you are reliable in helping :clap: .
Way to go.
Script works.
User avatar
HansR
Posts: 5969
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

Post by HansR »

Dador wrote: Tue 09 Apr 2024 7:37 am Hans,

as always, you are reliable in helping :clap: .
Way to go.
Script works.
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
User avatar
HansR
Posts: 5969
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

Post by HansR »

HansR wrote: Tue 09 Apr 2024 8:52 am 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.
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
Post Reply