Page 1 of 7
CustomLogs as module
Posted: Sat 11 Nov 2023 1:20 pm
by Dador
Hi Hans,
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
Code: Select all
Failed to load resource: https://pogodarybnik.pl/customlogsRecentdata.json? the server responded with a status of 404 ()
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
https://pogodarybnik.pl/CU/customlogsRecentdata.json?
Would adding
Code: Select all
cumulusutils.ini -> CustomLogs -> FTPDirectory=
solve the problem?
Re: CustomLogs as module
Posted: Sat 11 Nov 2023 2:12 pm
by HansR
Dador 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
Code: Select all
Failed to load resource: https://pogodarybnik.pl/customlogsRecentdata.json? the server responded with a status of 404 ()
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
https://pogodarybnik.pl/CU/customlogsRecentdata.json?
Would adding
Code: Select all
cumulusutils.ini -> CustomLogs -> FTPDirectory=
solve the problem?
Great you use the CustomLogs module
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.
Re: CustomLogs as module
Posted: Sat 11 Nov 2023 2:12 pm
by HansR
Note: this is a new topic, CustomLogs is not beta anymore.
Re: CustomLogs as module
Posted: Sat 11 Nov 2023 2:23 pm
by HansR
And having said that: with the use of (almost) same named files for libraries, index etc... I advised to create a separate directory for CUtils and having said that it will be required to run the modules from that directory and as such access the datafiles from that directory as well.
I work something out! Don't move files to the webroot yet.
Re: CustomLogs as module
Posted: Sat 11 Nov 2023 2:24 pm
by Dador
HansR wrote: ↑Sat 11 Nov 2023 2:12 pm
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.
If you want to think about it
HansR wrote:
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?
Basically it's not a problem to move the cutils files to the main directory. I just have a lot of things sorted into folders. This is how I keep order on the server.
Re: CustomLogs as module
Posted: Sat 11 Nov 2023 2:57 pm
by HansR
Dador wrote: ↑Sat 11 Nov 2023 2:24 pm
Basically it's not a problem to move the cutils files to the main directory. I just have a lot of things sorted into folders. This is how I keep order on the server.
I understand. I am looking into it to see what the consequences are.
Re: CustomLogs as module
Posted: Sat 11 Nov 2023 3:16 pm
by freddie
HansR wrote: ↑Sat 11 Nov 2023 2:12 pm
The issue can now only be solved by moving all files to the webroot and run from there (effectively removing CU from the path)
How about symbolic links as a temporary solution?
Re: CustomLogs as module
Posted: Sat 11 Nov 2023 4:09 pm
by HansR
@freddie: It's a free world but it needs to parametrized. That is how Cutils is setup and how it functions.
@Dador: Find attached 6.21.4 beta 1 which should solve the issue. If not, please post the logfile. The solution contains two new parameters, see the
preliminary release notes.
Re: CustomLogs as module
Posted: Sat 11 Nov 2023 5:56 pm
by Dador
It looks like it's working.
Great!
Re: CustomLogs as module
Posted: Sat 11 Nov 2023 6:21 pm
by HansR
No idea what I should be looking for. My polish is not what it never was

Re: CustomLogs as module
Posted: Sat 11 Nov 2023 6:29 pm
by freddie
HansR wrote: ↑Sat 11 Nov 2023 4:09 pm
@freddie: It's a free world but it needs to parametrized. That is how Cutils is setup and how it functions.
@hansr that's why I said a
temporary solution.
Re: CustomLogs as module
Posted: Sat 11 Nov 2023 6:31 pm
by Dador
Ok,
now here's a little tip on how to make the parameters have the same name as in CMX?
Now is "customlog_temptemp", but it has to be "Temp zewnętrzna".
I admit that I don't know where to change it
Ehh... sorry... i found it.
Re: CustomLogs as module
Posted: Sat 11 Nov 2023 6:36 pm
by HansR
@freddie: I'am faster than a temporary solution
@Dador:
Dador wrote: ↑Sat 11 Nov 2023 6:31 pm
Now is "customlog_temptemp", but it has to be "Temp zewnętrzna".
I admit that I don't know where to change it
All translations are done in the language file. Most in the Compiler section, only four in the CustomLogs section.
But I don't see the charts on the site. What should I be looking at?
Re: CustomLogs as module
Posted: Sat 11 Nov 2023 6:49 pm
by HansR
OK... I found the charts. Happy that it works
One additional remark: read the wiki page on the CustomLogs, there are
IMPORTANT remarks.
Re: CustomLogs as module
Posted: Sat 11 Nov 2023 8:38 pm
by Dador
I'm currently playing with the charts and adjusting them as I see fit, but I have a small problem. The THWindex and THSWindex tags not working. In CMX work good, beacose i use Davis VP2 + solar sesnors.
Code: Select all
Information Constructor CustomLogs: handling Custom log customlog - Webtag <#THWindex>
Warning Constructor CustomLogs: Not a valid Webtag THWindex used in Custom log customlog
Information Constructor CustomLogs: handling Custom log customlog - Webtag <#THSWindex>
Warning Constructor CustomLogs: Not a valid Webtag THSWindex used in Custom log customlog