Hi Hans
As ever I just cannot help trying to extend the envelope!
Today's issue is trying to get my RPi CPUTemp in a custom log. I have put the webtags <#CPUTemp>and <#temp> into the custom log folder in CMX and then run customlogs and useraskeddata but the info does not appear on my site.
The data file on CMX shows that the webtags produce valid data but the the utilslogs for the customlogs and useraskeddata warn that the CPUTemp webtag is not valid.
Do you have any thoughts on this?
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
CustomLogs beta
Moderator: HansR
-
AndyKF650
- Posts: 818
- Joined: Thu 20 Aug 2020 8:35 am
- Weather Station: Davis VP2 Plus
- Operating System: RPiv5B 64bit Linux 12 Bookworm
- Location: Jersey Channel Islands
- Contact:
Re: CustomLogs beta
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: CustomLogs beta
Hi Andy, that's nice: not even released yet and the bugs are already coming in
I maintain a subset of legal webtags to use for the CustomLogs (obviously strings cannot be charted as neither can numbers with strings attached (e.g. a temperature with a unit attached). The CPU temperature had not made it to that list but it should as it is just a number.
BTW: if you are testing anyway, 1) you can add literals in the logs, 2) try webtags resulting in strings and 3) try webtag parameters which modify the value. Best for testing is to create a Test CustomLog on Interval frequency and only modify that one because changing the tags will reset the chart so it won't interfere with your serious CustomLogs and can easily be deleted afterwards.
#CPUtemp has now been added to that list and you find attached a version 6.21.0 RC (qualifier is not displayed) which should solve your issue.
I maintain a subset of legal webtags to use for the CustomLogs (obviously strings cannot be charted as neither can numbers with strings attached (e.g. a temperature with a unit attached). The CPU temperature had not made it to that list but it should as it is just a number.
BTW: if you are testing anyway, 1) you can add literals in the logs, 2) try webtags resulting in strings and 3) try webtag parameters which modify the value. Best for testing is to create a Test CustomLog on Interval frequency and only modify that one because changing the tags will reset the chart so it won't interfere with your serious CustomLogs and can easily be deleted afterwards.
#CPUtemp has now been added to that list and you find attached a version 6.21.0 RC (qualifier is not displayed) which should solve your issue.
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
-
AndyKF650
- Posts: 818
- Joined: Thu 20 Aug 2020 8:35 am
- Weather Station: Davis VP2 Plus
- Operating System: RPiv5B 64bit Linux 12 Bookworm
- Location: Jersey Channel Islands
- Contact:
Re: CustomLogs beta
Hi Hans
That worked as expected, I now am now recording CPU temp in the custom logs
Just ran website to update everything and the chart popped up with the back data.
I have some other work to do today so extra testing will be later.
That worked as expected, I now am now recording CPU temp in the custom logs
I have some other work to do today so extra testing will be later.
- 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: CustomLogs beta
OK.
Note that you do not have to run website, CustomLogs as argument is way faster.
Note that you do not have to run website, CustomLogs as argument is way faster.
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
- 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: CustomLogs beta
Great you use the CustomLogs moduleDador wrote: ↑Sat 11 Nov 2023 1:20 pm I started using custom logs 2 days ago. It went relatively smoothly, but since then I haven't had any charts. I thought maybe there had to be a minimum amount of time for this to happen (for me it was 48 hours), but I was checking the website for the code today and the browser prompted
From this I understand that the module is looking for the customlogsRecentdata.json file in the main directory, but I have all the cutils files in the /CU directory. My path should look like this:Code: Select all
Failed to load resource: https://pogodarybnik.pl/customlogsRecentdata.json? the server responded with a status of 404 ()
Would addingCode: Select all
https://pogodarybnik.pl/CU/customlogsRecentdata.json?solve the problem?Code: Select all
cumulusutils.ini -> CustomLogs -> FTPDirectory=
OK, your datafile is in the CU directory (I checked). Apparently you defined that as the uploading directory for the CUtils modules but you run the modules from one level up: your webroot is https://pogodarybnik.pl/ this separation of modules and website directory has never been done before: the CUtils files should be in the webroot. I assume you don't want that but I ask you: would that really be an issue?
What we now have is a 'kind of inverse use' of CumulusRealTimeLocation (which is used if the CMX datafiles are outside the CUtils directory structure). If you wish to stay with the CU directory for the modules, I'll have to think on how to deal with this.
The issue can now only be solved by moving all files to the webroot and run from there (effectively removing CU from the path)
Your suggested solution for adding another directory may work but through another parameter specifically for module use.
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
- 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: CustomLogs beta
This topic has been locked, please start a new thread if any issue.
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