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

Original release topic

Discussion of the Cumulusutils tool and website generator.

Moderator: HansR

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

Re: Cumulusutils

Post by HansR »

water01 wrote: Tue 07 Apr 2020 6:02 pm Sorry I use PHP a lot to run my whole website, so I use that as as solution to a problem that requires a program at the server level.
OK, but I am talking about a completely client based issue. My program is browser based for this point.
water01 wrote: Tue 07 Apr 2020 6:02 pm I cannot see why you are reluctant to use it as you are reliant on Server side JS scripts to produce the gauges, so why not add the PHP to the CumulusUtils pages that produce the output on the server?
Sorry for that, but it's my design and a somewhat fundamental way of looking at how I want to do it. And it is not server side javascript as I said above, it is browser based. I wrote a blog about it but my Wordpress for some reason fails editing. Some plugin. So you have to wait for it.

That was quicker than I thought, apparently an issue with the new 5.4 WP release. Here is the blog.
Hans

https://meteo-wagenborgen.nl
CMX build 4017+ ● RPi 3B+ ● Raspbian Linux 6.1.21-v7+ armv7l ● dotnet 8.0.3
sfws
Posts: 1183
Joined: Fri 27 Jul 2012 11:29 am
Weather Station: Chas O, Maplin N96FY, N25FR
Operating System: rPi 3B+ with Buster (full)

Re: Cumulusutils

Post by sfws »

HansR wrote: Tue 07 Apr 2020 5:49 pm We are not talking about a global, but about the path to realtimegauges.txt which is defined in gauges.txt
I understand you perfectly, and I recall all you have said previously about having settings in one place, but you appear to misunderstand me.

I (and I think Water01) was talking about a change that let the definition of the path in gauges.js be defined outside that script. You (and nobody else) change that script to check if a variable (what I call global, i.e. shared across more than one script) has been set. You can then have another script (your setting script) set that variable and the changed gauges.js will read that without the end-user having to do any more editing of gauges.js to suit whatever path they use.

Oh and I also understand you wanted your creation to sit alongside Cumulus without tinkering with Cumulus files, but I am suggesting that you change one Cumulus file in a way that the developer could adopt into future MX releases, it has no effect on MX functionality, it does offer the possibility that an extra setting could be added to the MX settings to adjust the path without anyone ever needing to edit this file in the future. Maybe that is something Mark might have thought good to do in future anyway.

Now I hope you understand what I was saying in my previous post, I often feel my written work is not concise enough, it appears it was too concise that time for you.
User avatar
HansR
Posts: 5957
Joined: Sat 20 Oct 2012 6:53 am
Weather Station: GW1100 (WS80/WH40)
Operating System: Raspberry OS/Bookworm
Location: Wagenborgen (NL)
Contact:

Re: Cumulusutils

Post by HansR »

I am not sure it is misunderstanding. Sure I can change gauges.js, and sure it can be done in the indirect way with intermediate global variables and there is more than one way to do so. But that is not the way to go if you want to work modular. I know configuration is done by editing mostly in the world of meteo websites/PHP. And that is exactly the choice I try to avoid. If there is configuration in a module (in this case gauges which is a layer upon Steelseries) the module should offer ways to configure. Either through file settings or with an api accessible for other programs, by change through calls or whatever. Not by manual interference or complex interaction with intermediate globals.

And I think we do not need to discuss it further. It is possible, as kocher showed with his slink - to change settings in the Steelseries by software (the attributes are public as far as I can see), I don't see why important attributes of the gauges can't be public and changeable at runtime. For the cumulus community it actually is more important. It leads to messy solutions as described.

If you don't agree, that's OK. My way of thinking, but that's life.
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: 5957
Joined: Sat 20 Oct 2012 6:53 am
Weather Station: GW1100 (WS80/WH40)
Operating System: Raspberry OS/Bookworm
Location: Wagenborgen (NL)
Contact:

Re: Cumulusutils

Post by HansR »

Version 3.0.1 is online

As you all appear to have more than one cumulus site running on the same real-time files, at least for test situations, I added the ini parameter CumulusRealTimeLocation to provide for a user who uses more than one website. See my notes in the README!

Known issues:
  • the times are wrong in another timezone (with an offset of that timezone to my location :oops: )
  • The moonphases do not show correct.
  • Cumuluscharts needs to be rewritten because of the hardcoded location of the json data files (a problem similar to realtimegauges.txt).
Make the list with known issues as long as you can :)
Hans

https://meteo-wagenborgen.nl
CMX build 4017+ ● RPi 3B+ ● Raspbian Linux 6.1.21-v7+ armv7l ● dotnet 8.0.3
User avatar
laulau
Posts: 678
Joined: Tue 13 Oct 2009 10:52 pm
Weather Station: WeatherDuino Pro2
Operating System: Win 7
Location: Meyenheim, Alsace, FR
Contact:

Re: Cumulusutils

Post by laulau »

HansR wrote: Tue 07 Apr 2020 7:50 am
laulau wrote: Tue 07 Apr 2020 6:55 am It's a good idea to make the user define the path of the realtime files!
I guess we all agree but the path is hardcode in gauges.js
I already send a mail to @mcrossley on how to change the gauges config in software. I am awaiting his reply.

With respect to your sysinfo module failure (Méthode introuvable : '!!0[] System.Array.Empty()' which effectively breaks off the whole program because of a stack dump) seems to have to do with the version of .NET you are running. As Win7 is no longer maintained, upgrading probably is not possible.

That dump is caused by a lesser version of Windows and .NET . You need at least .NET 4, I believe even > 4.5. I am not a 100% sure in what version that call is introduced. But an upgrade is required or you can't use CumulusUtils (because the version call is everywhere). It is also an investment into the future (I don't economise on versions ;) , I always ugrade pretty soon and operate currently on 4.7.2 works on normal up to date and maintained Windows.

Best, Hans
Have upgraded .NET framework :D

Last version here : http://laurentmey.fr/davis/utils/index.html
Laurent

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

Re: Cumulusutils

Post by HansR »

laulau wrote: Wed 08 Apr 2020 2:56 pm Have upgraded .NET framework :D
Good for you! :D :clap:
laulau wrote: Wed 08 Apr 2020 2:56 pm Last version here : http://laurentmey.fr/davis/utils/index.html
Wow, that actually looks pretty impressive if can say that myself 8-)
And btw: you have very much a variable wind today!

It really looks good. Works easy doesn't it?
Hans

https://meteo-wagenborgen.nl
CMX build 4017+ ● RPi 3B+ ● Raspbian Linux 6.1.21-v7+ armv7l ● dotnet 8.0.3
User avatar
laulau
Posts: 678
Joined: Tue 13 Oct 2009 10:52 pm
Weather Station: WeatherDuino Pro2
Operating System: Win 7
Location: Meyenheim, Alsace, FR
Contact:

Re: Cumulusutils

Post by laulau »

Yes it works quite well! 8-)
I've to look at the user menu and the French translation at some point.
Laurent

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

Re: Cumulusutils

Post by HansR »

laulau wrote: Wed 08 Apr 2020 5:07 pm Yes it works quite well! 8-)
I've to look at the user menu and the French translation at some point.
Yes, but translation has to wait until I created all string entries.
First it must run correctly ;)
Hans

https://meteo-wagenborgen.nl
CMX build 4017+ ● RPi 3B+ ● Raspbian Linux 6.1.21-v7+ armv7l ● dotnet 8.0.3
User avatar
meteo19
Posts: 89
Joined: Tue 03 May 2016 8:13 pm
Weather Station: Davis VP2+/DP1500 SmartHub
Operating System: Microsoft Windows 7 Pro
Location: Ségur-Le-Château, France
Contact:

Re: Cumulusutils

Post by meteo19 »

Bonsoir Hans
Fonctionne ici:
http://www.meteosegur.fr/CU_MX/utils/index.html
Comment adapter le site à la taille des écrans.Super travail Hans. :D

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

Re: Cumulusutils

Post by HansR »

@meteo19: bonsoir Patrick, Je suis de retour à vendredi. La adaptation sera fait... ;)
Merci pour l'installation. Maintenant... Break
Hans

https://meteo-wagenborgen.nl
CMX build 4017+ ● RPi 3B+ ● Raspbian Linux 6.1.21-v7+ armv7l ● dotnet 8.0.3
User avatar
PaulMy
Posts: 3830
Joined: Sun 28 Sep 2008 11:54 pm
Weather Station: Davis VP2 Plus 24-Hour FARS
Operating System: Windows8 and Windows10
Location: Komoka, ON Canada
Contact:

Re: Cumulusutils

Post by PaulMy »

@meteo19
From my experience you likely need to edit \CumulusMX\utils\cumuluscharts.js
and replace $.ajax({url: "../graphconfig.json", dataType:"json", success: function (result) {
with $.ajax({url: "graphconfig.json", dataType:"json", success: function (result) {

and then remove all the other leading ../ in that file as well and then re-run. Make a copy before you begin editing.

Enjoy,
Paul
Davis Vantage Pro2+
C1 www.komokaweather.com/komokaweather-ca
MX www.komokaweather.com/cumulusmx/index.htm /index.html /index.php
MX www.komokaweather.com/cumulusmxwll/index.htm /index.html /index.php
MX www. komokaweather.com/cumulusmx4/index.htm
Image
User avatar
meteo19
Posts: 89
Joined: Tue 03 May 2016 8:13 pm
Weather Station: Davis VP2+/DP1500 SmartHub
Operating System: Microsoft Windows 7 Pro
Location: Ségur-Le-Château, France
Contact:

Re: Cumulusutils

Post by meteo19 »

Merci Paul
User avatar
PaulMy
Posts: 3830
Joined: Sun 28 Sep 2008 11:54 pm
Weather Station: Davis VP2 Plus 24-Hour FARS
Operating System: Windows8 and Windows10
Location: Komoka, ON Canada
Contact:

Re: Cumulusutils

Post by PaulMy »

Hi Pats,
I had to make those changes for the charts to work http://www.komokaweather.com/cumulusutils/index.html
But your changes may need to be somewhat different depending on where your files are located.

p.s. the version of CumulusMX where cumulusutils is located is a separate Cumulus install and shares the Davis console with another CumulusMX version install http://www.komokaweather.com/cumulusmx/ so have to stop one to run the other so current data is not always current.

Enjoy,
Paul
Davis Vantage Pro2+
C1 www.komokaweather.com/komokaweather-ca
MX www.komokaweather.com/cumulusmx/index.htm /index.html /index.php
MX www.komokaweather.com/cumulusmxwll/index.htm /index.html /index.php
MX www. komokaweather.com/cumulusmx4/index.htm
Image
User avatar
meteo19
Posts: 89
Joined: Tue 03 May 2016 8:13 pm
Weather Station: Davis VP2+/DP1500 SmartHub
Operating System: Microsoft Windows 7 Pro
Location: Ségur-Le-Château, France
Contact:

Re: Cumulusutils

Post by meteo19 »

Merci Paul les graphiques fonctionnent. :D :clap: :clap:
User avatar
HansR
Posts: 5957
Joined: Sat 20 Oct 2012 6:53 am
Weather Station: GW1100 (WS80/WH40)
Operating System: Raspberry OS/Bookworm
Location: Wagenborgen (NL)
Contact:

Re: Cumulusutils

Post by HansR »

OK, good to hear.
The resizing of the screen is another issue, will work on it.

There is quite a bit more detail to do now than expected :|
Maybe i'll publish another intermediate beta soon.
Hans

https://meteo-wagenborgen.nl
CMX build 4017+ ● RPi 3B+ ● Raspbian Linux 6.1.21-v7+ armv7l ● dotnet 8.0.3
Post Reply