Page 6 of 7
Re: CustomLogs as module
Posted: Fri 10 May 2024 11:42 am
by HansR
Dador wrote: ↑Wed 08 May 2024 8:43 am
Edit:
Request to unblock webtag
<#TempAvg24Hrs>
Hi,
You should not do that in an [Edit] because that does not trigger a message and it would be a chance for me to see it.
But now I did, I will work on it and in a next release those tags will work in CustomLogs and also on
CO2_pm1_24h and
CO2_pm4_24h.
Before I do however, I have the following questions for anybody who has the answer:
- does #TempAvg24Hrs take date arguments for a specific day or is it for the current day only?
- I know what CO2_pm1_24his , but what is CO2_pm4_24h? I only know sensors taking pm1, pm2p5 and pm10. I never saw pm4!
Re: CustomLogs as module
Posted: Fri 10 May 2024 1:12 pm
by mcrossley
HansR wrote: ↑Fri 10 May 2024 11:42 am
Before I do however, I have the following questions for anybody who has the answer:
- does #TempAvg24Hrs take date arguments for a specific day or is it for the current day only?
- I know what CO2_pm1_24his , but what is CO2_pm4_24h? I only know sensors taking pm1, pm2p5 and pm10. I never saw pm4!
1. No parameters, just last 24 hours
2. I think Ecowitt must derive the PM 4 value from 2.5 and 10?
Re: CustomLogs as module
Posted: Fri 10 May 2024 1:32 pm
by HansR
Thnx.
I will refrain from commenting on pm4

Re: CustomLogs as module
Posted: Fri 10 May 2024 3:50 pm
by Dador
The latest release 7.0.2 does not draw customlogs graphs, even without adding the new <#TempAvg24Hrs> tag.
I downgraded to 7.0.1 and the charts work.
Hmm...
Re: CustomLogs as module
Posted: Fri 10 May 2024 5:10 pm
by mcrossley
HansR wrote: ↑Fri 10 May 2024 1:32 pm
Thnx.
I will refrain from commenting on pm4
There were three other average temp tags that do take parameters though...
Code: Select all
<#ByMonthTempAvg mon=[1-12]> Mean for requested month over the entire history. Omit the mon parameter for the current month
<#MonthTempAvg m=[1-12] y=[YYYY]> Mean for the requested specific month. Omit the parameters for the current month
<#YearTempAvg y=[YYYY]> Mean for the requested year. Omit the y parameter for the current year
Re: CustomLogs as module
Posted: Fri 10 May 2024 8:45 pm
by HansR
mcrossley wrote: ↑Fri 10 May 2024 5:10 pm
HansR wrote: ↑Fri 10 May 2024 1:32 pm
Thnx.
I will refrain from commenting on pm4
There were three other average temp tags that do take parameters though...
Code: Select all
<#ByMonthTempAvg mon=[1-12]> Mean for requested month over the entire history. Omit the mon parameter for the current month
<#MonthTempAvg m=[1-12] y=[YYYY]> Mean for the requested specific month. Omit the parameters for the current month
<#YearTempAvg y=[YYYY]> Mean for the requested year. Omit the y parameter for the current year
Thanks, I mixed tags I added to the Wiki list with the Tags I added to CUtils
Correction coming up
Re: CustomLogs as module
Posted: Fri 10 May 2024 9:06 pm
by HansR
Dador wrote: ↑Fri 10 May 2024 3:50 pm
The latest release 7.0.2 does not draw customlogs graphs, even without adding the new <#TempAvg24Hrs> tag.
I downgraded to 7.0.1 and the charts work.
Hmm...
I don't know what you did but the CustomLogs may be reset, please wait two Interval cycles (and one day cycle for the day logs).
I modified the internal webtag tables and you may re-download CUtils 7002.
Re: CustomLogs as module
Posted: Fri 10 May 2024 9:26 pm
by Dador
HansR wrote: ↑Fri 10 May 2024 9:06 pm
Dador wrote: ↑Fri 10 May 2024 3:50 pm
The latest release 7.0.2 does not draw customlogs graphs, even without adding the new <#TempAvg24Hrs> tag.
I downgraded to 7.0.1 and the charts work.
Hmm...
I don't know what you did but the CustomLogs may be reset, please wait two Interval cycles (and one day cycle for the day logs).
I modified the internal webtag tables and you may re-download CUtils 7002.
The script appears to have stopped working in this release
Code: Select all
<script>const urlParams = new URLSearchParams(window.location.search);</script>
No chart or header for the home page. Interestingly, only for customlogs charts.
Re: CustomLogs as module
Posted: Sat 11 May 2024 5:23 am
by HansR
Dador wrote: ↑Fri 10 May 2024 9:26 pm
The script appears to have stopped working in this release
Code: Select all
<script>const urlParams = new URLSearchParams(window.location.search);</script>
It works with the other menu options. Or do you have more locations where you have this script?
Since there is only one place where that
urlParams is initialised there is no conclusion possible that it does not work.
Dador wrote: ↑Fri 10 May 2024 9:26 pm
No chart or header for the home page. Interestingly, only for customlogs charts.
CustomLogs do work in my environment, so I am not able to reproduce this. Beside that you have the module environment in a PHP situation. You really need to provide more info (logs, screenshot of console etc...)
So far I don't think it is the system that fails.
Please provide more info, this is not enough for me to go on.
Check the logfile, if there are indications of error, please provide.
Re: CustomLogs as module
Posted: Sat 11 May 2024 7:21 am
by Dador
I can't provide any errors because there are none in cutilslog. Everything seems to be working properly.
Currently, it's a waste of my and your energy. I will test the next releases. Maybe I'll come back to this.
Re: CustomLogs as module
Posted: Sat 11 May 2024 7:26 am
by HansR
Ok. That seems the best atm.
Re: CustomLogs as module
Posted: Wed 15 May 2024 1:08 pm
by HansR
Hi,
I found an issue in another module which set me on the track of an optimisation error in the compiler. Therefore I created a version without optimisation. It makes CUtils slightly larger and slower (but not as much as I had feared) and has timing data in its logfile.
Though I am not sure I actually am correct with my claim of the error being an optimisation problem, this executable solved my issue. And if it solves your issue for the CustomLogs I may have solved the problem in general (provisionally).
Please find v7003 attached.
Re: CustomLogs as module
Posted: Wed 15 May 2024 3:31 pm
by Dador
In version 7.0.3, all charts appear to be working properly.
Re: CustomLogs as module
Posted: Wed 15 May 2024 3:39 pm
by HansR
OK.
That means that I have now two issues which disappear when compiling without optimisation. I will publish non-optimised from now on until I know whats going on or I am certain the problem has disappeared.
Re: CustomLogs as module
Posted: Mon 20 May 2024 11:03 am
by philpugh
Hans;
I have a slight issue running 7003..
This is the start of the log with 7002
2024-05-20 11:45:02.119 Information According to Inifile Info => Error: True, Warning: True, Info: True, Verbose: False,
2024-05-20 11:45:02.125 CumulusUtils Initial: Shutting down the default listener
2024-05-20 11:45:02.125 Information CumulusUtils Initial: Shutting down the default listener
2024-05-20 11:45:02.140 CUstrings[xx].ini : CUstringsEN.ini looked for.
2024-05-20 11:45:02.147 CumulusUtils version: 7.0.2
2024-05-20 11:45:02.147 CuSupport constructor : Unit Wind (m/s, mph, km/h, kts): mph
2024-05-20 11:45:02.147 CuSupport constructor : Unit Pressure (mb,hPa,inHg): hPa
2024-05-20 11:45:02.147 CuSupport constructor : Unit Rain (mm,in): mm
2024-05-20 11:45:02.148 CuSupport constructor : Unit T (C,F): °C
2024-05-20 11:45:02.148 CuSupport constructor : Unit Distance (m, mi, km, kn): mi
2024-05-20 11:45:02.148 CuSupport constructor : Unit Height (m, ft): ft
2024-05-20 11:45:02.153 InetSupport: Constructor start
2024-05-20 11:45:02.173 CumulusUtils : ----------------------------
2024-05-20 11:45:02.174 CumulusUtils : Entering Main
2024-05-20 11:45:02.204 HelpTexts: start
2024-05-20 11:45:02.223 Information HelpTexts Contructor: stop
2024-05-20 11:45:02.249 CommandLineArgs : starting
2024-05-20 11:45:02.249 CommandLineArgs : handling arg: userreports
2024-05-20 11:45:02.250 CommandLineArgs : handling arg: sysinfo
2024-05-20 11:45:02.250 CommandLineArgs : handling arg: UserAskedData
2024-05-20 11:45:02.250 Dayfile: Reading the dayfile.txt...
2024-05-20 11:45:02.276 Information CumulusUtils : Read dayfile.txt succesfully - 696 records
2024-05-20 11:45:02.285 Information SystemStatus : starting
2024-05-20 11:45:02.295 Information GetUrlData Start: URL -
http://localhost:9898/api/tags/process. ... nt&CPUTemp
This is the start with 7003 - it hangs at the last line as the address is not valid for my LAN!!
2024-05-20 11:54:54.873 Information According to Inifile Info => Error: True, Warning: True, Info: True, Verbose: False,
2024-05-20 11:54:54.885 CumulusUtils Initial: Shutting down the default listener
2024-05-20 11:54:54.885 Information CumulusUtils Initial: Shutting down the default listener
2024-05-20 11:54:54.902 CUstrings[xx].ini : CUstringsEN.ini looked for.
2024-05-20 11:54:54.910 CumulusUtils version: 7.0.3
2024-05-20 11:54:54.910 CuSupport constructor : Unit Wind (m/s, mph, km/h, kts): mph
2024-05-20 11:54:54.910 CuSupport constructor : Unit Pressure (mb,hPa,inHg): hPa
2024-05-20 11:54:54.910 CuSupport constructor : Unit Rain (mm,in): mm
2024-05-20 11:54:54.910 CuSupport constructor : Unit T (C,F): °C
2024-05-20 11:54:54.911 CuSupport constructor : Unit Distance (m, mi, km, kn): mi
2024-05-20 11:54:54.911 CuSupport constructor : Unit Height (m, ft): ft
2024-05-20 11:54:54.916 InetSupport: Constructor start
2024-05-20 11:54:54.933 CumulusUtils : ----------------------------
2024-05-20 11:54:54.933 CumulusUtils : Entering Main
2024-05-20 11:54:54.936 HelpTexts: starting
2024-05-20 11:54:54.947 Information HelpTexts Contructor: stop
2024-05-20 11:54:54.970 CommandLineArgs : starting
2024-05-20 11:54:54.970 CommandLineArgs : handling arg: website
2024-05-20 11:54:54.971 Dayfile: Reading the dayfile.txt...
2024-05-20 11:54:54.994 Information CumulusUtils : Read dayfile.txt succesfully - 696 records
2024-05-20 11:54:55.002 Information SystemStatus : starting
2024-05-20 11:54:55.005 Information GetUrlData Start: URL -
http://192.168.178.143:9898/api/tags/pr ... nt&CPUTemp
i don't know where it's getting the 192.168.178.143 !!