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
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
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
Moderator: mcrossley
- 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
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).
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
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
I think you are using an old version of awk.
Is it possible?
Mine is GNU Awk 4.1.4.
Is it possible?
Mine is GNU Awk 4.1.4.
- 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
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.
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
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
I've made some updates.
Now it should work with your awk version as well.
Let me know.
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.
- 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
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.
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
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
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.
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.
- 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
OK, success
Nice
But too specific for me and only for Unix/Linux.
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
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
I wrote a new post with a plotMX web version.
Bye, Nino
Bye, Nino