Welcome to the Cumulus Support forum.

Latest Cumulus MX V4 release 4.0.1 (build 4023) - 16 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

Rainfall graph

Other discussion about creating web sites for Cumulus that doesn't have a specific subforum

Moderator: daj

Post Reply
Shamy
Posts: 27
Joined: Sat 07 Nov 2015 7:53 pm
Weather Station: Davis Vantage Pro 2
Operating System: Windows 10
Location: Krotoszyn

Rainfall graph

Post by Shamy »

I am in the process of creating my graph of 5 parameters in 1 graph. I would like to know if Cumulus creates a JSON file showing the amount of rain that fell in one hour? If not, can you somehow "tell" him to do it?
On some weather station sites, I've noticed that it's shown the way I'm talking about.
For me, it is the sum of precipitation from the whole day, which is displayed even when it is not raining anymore, which makes the graph a big mess.

I attach a screenshot of what it looks like for me:
raina now.jpg
and how I would like it:
rain.jpg
You do not have the required permissions to view the files attached to this post.
User avatar
HansR
Posts: 6021
Joined: Sat 20 Oct 2012 6:53 am
Weather Station: GW1100 (WS80/WH40)
Operating System: Raspberry OS/Bookworm
Location: Wagenborgen (NL)
Contact:

Re: Rainfall graph

Post by HansR »

Shamy wrote: Sat 11 Mar 2023 6:01 pm I am in the process of creating my graph of 5 parameters in 1 graph. I would like to know if Cumulus creates a JSON file showing the amount of rain that fell in one hour? If not, can you somehow "tell" him to do it?
On some weather station sites, I've noticed that it's shown the way I'm talking about.
For me, it is the sum of precipitation from the whole day, which is displayed even when it is not raining anymore, which makes the graph a big mess.

I attach a screenshot of what it looks like for me:
raina now.jpg

and how I would like it:
rain.jpg
You can't do that directly and CMX does not let you 'tell' him to do that. CMX stores the cumulative value of rain on a day so there is no direct value for rain per hour. Of course you can do some javascript and reduce the accumulative rain value per hour to the hourly rainfall but that is not standard available by CMX. You could ask Mark for a new feature field to store in the logfile and see what he says.
Hans

https://meteo-wagenborgen.nl
CMX build 4017+ ● RPi 3B+ ● Raspbian Linux 6.1.21-v7+ armv7l ● dotnet 8.0.3
Shamy
Posts: 27
Joined: Sat 07 Nov 2015 7:53 pm
Weather Station: Davis Vantage Pro 2
Operating System: Windows 10
Location: Krotoszyn

Re: Rainfall graph

Post by Shamy »

Thanks for the reply Hans.
Unfortunately, I don't know enough javascript to do it myself :(

It remains to be hoped that someday such an option will be available in Cumulus
User avatar
mcrossley
Posts: 12865
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Rainfall graph

Post by mcrossley »

You can get the rainfall in the last hour with the web tag <#rhour>

You could log that once an hour to a custom log file.
Shamy
Posts: 27
Joined: Sat 07 Nov 2015 7:53 pm
Weather Station: Davis Vantage Pro 2
Operating System: Windows 10
Location: Krotoszyn

Re: Rainfall graph

Post by Shamy »

Thanks mcrossley,

My English is not very good, what do you mean by "custom log file"?
Where can I find it?
Shamy
Posts: 27
Joined: Sat 07 Nov 2015 7:53 pm
Weather Station: Davis Vantage Pro 2
Operating System: Windows 10
Location: Krotoszyn

Re: Rainfall graph

Post by Shamy »

Okay I managed to do it.
I'm using a php file that is uploaded by Cumulus where I use webtags - <#timeJavaScript>, <#rhour>
The whole thing is saved to a JSON file, which is read by HighCharts.

There is one problem. The time given by <#timeJavaScript> is in UTC and the time which is in the Cumulus factory generated files is in local time. Only an hour difference, but...
Is there a way to do it? I tried to save the time in the format 2023-03-12T20:00:00.000Z but then HighCharts does not read it
Weerhaas
Posts: 20
Joined: Mon 31 Aug 2015 6:31 am
Weather Station: Vantage Pro 2 Plus
Operating System: Windows Pro 10 64b
Location: Zaandam, Nederland
Contact:

Re: Rainfall graph

Post by Weerhaas »

Good afternoon.

Can you show the PHP-file?
Thanks
Post Reply