Welcome to the Cumulus Support forum.

Latest Cumulus MX V4 release 4.4.2 (build 4085) - 12 March 2025

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

If you are posting a new Topic about an error or if you need help PLEASE read this first viewtopic.php?p=164080#p164080

Graphs source data

From build 3044 the development baton passed to Mark Crossley. Mark has been responsible for all the Builds since. He has made the code available on GitHub. It is Mark's hope that others will join in this development, but at the very least he welcomes your ideas for future developments (see Cumulus MX Development suggestions).

Moderator: mcrossley

Post Reply
oldeflyer
Posts: 72
Joined: Sat 02 Nov 2019 12:32 am
Weather Station: Davis Vantage Pro 2
Operating System: Raspberry Pi 4 Bookworm Linux
Location: NE Ohio, USA

Graphs source data

Post by oldeflyer »

Hello,
Running Current MX on a Raspberry Pi.
I am looking for information on where the Graphs get the one minute data that is displayed.
I see the five minute data in the datafiles but cannot locate the one minute data.

Thanks for any information,

Wayne
Big Daddy
Posts: 270
Joined: Tue 10 Sep 2013 8:40 pm
Weather Station: Ecowitt GW1000 / various sensors
Operating System: Raspbian 12 Bookworm (X64)
Location: Freiston, Lincolnshire, UK
Contact:

Re: Graphs source data

Post by Big Daddy »

I think this may be determined by the Log Interval settings under Settings / Station Settings / General Settings / Log Interval.

I have mine set to 1 minute and the data in the json files used for graphing shows every minute.

I think the default setting is 5 minutes

Here is a sample of my tempdata.json file which shows the 1 minute interval

[
1675090980000, (Converts to Monday, 30 January 2023 15:03:00)
9.0
],
[
1675091040000,(Converts to Monday, 30 January 2023 15:04:00)
8.9
],
[
1675091100000,(Converts to Monday, 30 January 2023 15:05:00)
8.9
],

Andy
oldeflyer
Posts: 72
Joined: Sat 02 Nov 2019 12:32 am
Weather Station: Davis Vantage Pro 2
Operating System: Raspberry Pi 4 Bookworm Linux
Location: NE Ohio, USA

Re: Graphs source data

Post by oldeflyer »

Hey, Big,
Thanks for the reply.
My station and MX settings are the same at five minutes.
When I go to graphs I get data points from somewhere at one minute intervals.
BTW, I am using a Davis ISS and a Vue Pro 2.
freddie
Posts: 2870
Joined: Wed 08 Jun 2011 11:19 am
Weather Station: Davis Vantage Pro 2 + Ecowitt
Operating System: GNU/Linux Ubuntu 24.04 LXC
Location: Alcaston, Shropshire, UK
Contact:

Re: Graphs source data

Post by freddie »

When MX is running it records one minute data for the graphs and stores it in an internal SQLite database. If you have MX switched off for a period of time then switch back on, the graphs for the period of your switch-off will be generated based on your interval setting, as that is what is available in your Davis logger.

A way around this is to have the interval setting set to one minute. This means graphs will look identical whether generated from live or interval data. The drawback is that your Davis logger will then only store about 2.5 days worth of records if MX is not running, compared to about 12.5 days when using a 5 minute interval.
Freddie
Image
oldeflyer
Posts: 72
Joined: Sat 02 Nov 2019 12:32 am
Weather Station: Davis Vantage Pro 2
Operating System: Raspberry Pi 4 Bookworm Linux
Location: NE Ohio, USA

Re: Graphs source data

Post by oldeflyer »

freddie,
That is EXACTLY the information I was looking for. Thank you!

Is there some comprehensive source that documents the MX internals?
I know most people just want the weather data, but I am a long time computer programmer (Fortran) and I would like to know about the MX guts (so to speak).
Wayne
freddie
Posts: 2870
Joined: Wed 08 Jun 2011 11:19 am
Weather Station: Davis Vantage Pro 2 + Ecowitt
Operating System: GNU/Linux Ubuntu 24.04 LXC
Location: Alcaston, Shropshire, UK
Contact:

Re: Graphs source data

Post by freddie »

Source code is on GitHub: https://github.com/cumulusmx/CumulusMX

It is written in c# which is pretty easy to follow.
Freddie
Image
User avatar
HansR
Posts: 6926
Joined: Sat 20 Oct 2012 6:53 am
Weather Station: GW1100 (WS80/WH40)
Operating System: Raspberry OS/Bookworm
Location: Wagenborgen (NL)
Contact:

Re: Graphs source data

Post by HansR »

@oldeflyer:
freddie wrote: Tue 31 Jan 2023 3:13 pm Source code is on GitHub: https://github.com/cumulusmx/CumulusMX

It is written in c# which is pretty easy to follow.
I would not call the source code self-documenting so the nearest to real documentation is the wiki which is in kind of disarray atm but it served me well for info. More than the code itself which is some 85.000 loc.

But of course, take what you need for documentation.
Hans

https://meteo-wagenborgen.nl
CMX build 4070+ ● RPi 4B ● Linux 6.6.62+rpt-rpi-v8 aarch64 (bookworm) ● dotnet 8.0.1
BlueSky: https://bsky.app/profile/wagenborgenwx.bsky.social
oldeflyer
Posts: 72
Joined: Sat 02 Nov 2019 12:32 am
Weather Station: Davis Vantage Pro 2
Operating System: Raspberry Pi 4 Bookworm Linux
Location: NE Ohio, USA

Re: Graphs source data

Post by oldeflyer »

freddie,
Looked in Github. Just for grins. I don't do C#. Me Fortran:-)
I programmed data collection at a nuclear plant for about 35 years and guess I'm stuck with what I know.

HansR, I did look at the Wiki but found it somewhat chaotic. Picked enough out of it to get the MX up and running on a Raspberry Pi. That was pretty much rote. Now I want to know some of the HOW and WHY.

Thanks to all,
I will keep looking.
Wayne
SamiS
Posts: 511
Joined: Sun 27 Feb 2011 5:13 pm
Weather Station: Ecowitt HP2551 & GW1100
Operating System: Raspberry Pi OS
Location: Kangasala, Finland

Re: Graphs source data

Post by SamiS »

oldeflyer wrote: Tue 31 Jan 2023 7:27 pm HansR, I did look at the Wiki but found it somewhat chaotic. Picked enough out of it to get the MX up and running on a Raspberry Pi. That was pretty much rote. Now I want to know some of the HOW and WHY.
A lot of description about functionalities is buried in these forum discussions, so search may give some insights. Unfortunately there have not been too many volunteers creating content to the wiki during the years. Browsing through the version history thread will probably answer some questions, as Mark has usually provided at least some information about new or enhanced features. Of course this won’t cover things that already existed and have not changed after Mark took over the developement when Steve retired.


Sami
Post Reply