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

plotMX

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
ninuzzu66
Posts: 17
Joined: Thu 09 Apr 2020 11:41 am
Weather Station: Froggit WH1080SE
Operating System: Ubuntu 18.04

plotMX

Post by ninuzzu66 »

Hi all

I wrote a simple script for linux to plot meteo.log data file created as follows

cat /<cumulus path>/CumulusMX/realtime.txt >> /<meteo.log path>/meteo.log #In my system, it runs every 5 minutes

To use the script, you just need to set the FILE environment variable to specify where meteo.log is and install gnuplot package.
To learn how it works, just run the script without parameters.

Hope it helps

Bye, Nino
You do not have the required permissions to view the files attached to this post.
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: plotMX

Post by HansR »

Tried it and got the following result and an output.png file which cannot be read by any image reader on my machine. I had about 5 lines in meteo.log (filling up now of course).
Aantekening 2020-05-03 165158.png
You do not have the required permissions to view the files attached to this post.
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
ninuzzu66
Posts: 17
Joined: Thu 09 Apr 2020 11:41 am
Weather Station: Froggit WH1080SE
Operating System: Ubuntu 18.04

Re: plotMX

Post by ninuzzu66 »

I think you are using an old version of awk.
Is it possible?
Mine is GNU Awk 4.1.4.
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: plotMX

Post by HansR »

I run a RPi with Raspbian and awk is standard supplied by mawk 1.3.3-17
The alternative I may choose is gawk 1:4.2.1+dfsg-1

I must say, it would be nice if different awk dialects would be masked.
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
ninuzzu66
Posts: 17
Joined: Thu 09 Apr 2020 11:41 am
Weather Station: Froggit WH1080SE
Operating System: Ubuntu 18.04

Re: plotMX

Post by ninuzzu66 »

I've made some updates.
Now it should work with your awk version as well.

Let me know.
You do not have the required permissions to view the files attached to this post.
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: plotMX

Post by HansR »

Unfortunately, same result. In the mean time I had installed gawk 4.2.1, result is the same. I send you the meteo.log as well so you can try, maybe it is the log file or I make a fault in the call.
Aantekening 2020-05-03 220231.png
You do not have the required permissions to view the files attached to this post.
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
ninuzzu66
Posts: 17
Joined: Thu 09 Apr 2020 11:41 am
Weather Station: Froggit WH1080SE
Operating System: Ubuntu 18.04

Re: plotMX

Post by ninuzzu66 »

I understood the problem.
In my meteo.log the data format is 03/05/20, in yours it is 03-05-20.
So you have to:
1) change the line set timefmt \"%d/%m/%y_%H:%M:%S\"; in set timefmt \"%d-%m-%y_%H:%M:%S\";
2) use the script providing the data in your own format. Example: ./plotMX.sh 03-05-20 temp

I tried with your meteo.log and it works.
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: plotMX

Post by HansR »

OK, success :!: Nice :)
But too specific for me and only for Unix/Linux.
You do not have the required permissions to view the files attached to this post.
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
ninuzzu66
Posts: 17
Joined: Thu 09 Apr 2020 11:41 am
Weather Station: Froggit WH1080SE
Operating System: Ubuntu 18.04

Re: plotMX

Post by ninuzzu66 »

I wrote a new post with a plotMX web version.
Bye, Nino
Post Reply