Welcome to the Cumulus Support forum.

Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024

Cumulus MX V4 beta test release 4.0.0 (build 4019) - 03 April 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

CustomLogs as module

Discussion of the Cumulusutils tool and website generator.

Moderator: HansR

User avatar
Dador
Posts: 202
Joined: Thu 24 Nov 2011 2:22 pm
Weather Station: Davis VP2 Plus & Ecowitt
Operating System: Windows 10
Location: Rybnik, Poland
Contact:

CustomLogs as module

Post 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?
User avatar
HansR
Posts: 5969
Joined: Sat 20 Oct 2012 6:53 am
Weather Station: GW1100 (WS80/WH40)
Operating System: Raspberry OS/Bookworm
Location: Wagenborgen (NL)
Contact:

Re: CustomLogs as module

Post 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.
Hans

https://meteo-wagenborgen.nl
CMX build 4017+ ● RPi 3B+ ● Raspbian Linux 6.1.21-v7+ armv7l ● dotnet 8.0.3
User avatar
HansR
Posts: 5969
Joined: Sat 20 Oct 2012 6:53 am
Weather Station: GW1100 (WS80/WH40)
Operating System: Raspberry OS/Bookworm
Location: Wagenborgen (NL)
Contact:

Re: CustomLogs as module

Post by HansR »

Note: this is a new topic, CustomLogs is not beta anymore.
Hans

https://meteo-wagenborgen.nl
CMX build 4017+ ● RPi 3B+ ● Raspbian Linux 6.1.21-v7+ armv7l ● dotnet 8.0.3
User avatar
HansR
Posts: 5969
Joined: Sat 20 Oct 2012 6:53 am
Weather Station: GW1100 (WS80/WH40)
Operating System: Raspberry OS/Bookworm
Location: Wagenborgen (NL)
Contact:

Re: CustomLogs as module

Post 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.
Hans

https://meteo-wagenborgen.nl
CMX build 4017+ ● RPi 3B+ ● Raspbian Linux 6.1.21-v7+ armv7l ● dotnet 8.0.3
User avatar
Dador
Posts: 202
Joined: Thu 24 Nov 2011 2:22 pm
Weather Station: Davis VP2 Plus & Ecowitt
Operating System: Windows 10
Location: Rybnik, Poland
Contact:

Re: CustomLogs as module

Post 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 :D
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.
User avatar
HansR
Posts: 5969
Joined: Sat 20 Oct 2012 6:53 am
Weather Station: GW1100 (WS80/WH40)
Operating System: Raspberry OS/Bookworm
Location: Wagenborgen (NL)
Contact:

Re: CustomLogs as module

Post 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.
Hans

https://meteo-wagenborgen.nl
CMX build 4017+ ● RPi 3B+ ● Raspbian Linux 6.1.21-v7+ armv7l ● dotnet 8.0.3
freddie
Posts: 2481
Joined: Wed 08 Jun 2011 11:19 am
Weather Station: Davis Vantage Pro 2 + Ecowitt
Operating System: GNU/Linux Ubuntu 22.04 LXC
Location: Alcaston, Shropshire, UK
Contact:

Re: CustomLogs as module

Post 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?
Freddie
Image
User avatar
HansR
Posts: 5969
Joined: Sat 20 Oct 2012 6:53 am
Weather Station: GW1100 (WS80/WH40)
Operating System: Raspberry OS/Bookworm
Location: Wagenborgen (NL)
Contact:

Re: CustomLogs as module

Post 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.
You do not have the required permissions to view the files attached to this post.
Hans

https://meteo-wagenborgen.nl
CMX build 4017+ ● RPi 3B+ ● Raspbian Linux 6.1.21-v7+ armv7l ● dotnet 8.0.3
User avatar
Dador
Posts: 202
Joined: Thu 24 Nov 2011 2:22 pm
Weather Station: Davis VP2 Plus & Ecowitt
Operating System: Windows 10
Location: Rybnik, Poland
Contact:

Re: CustomLogs as module

Post by Dador »

It looks like it's working.

Great!
User avatar
HansR
Posts: 5969
Joined: Sat 20 Oct 2012 6:53 am
Weather Station: GW1100 (WS80/WH40)
Operating System: Raspberry OS/Bookworm
Location: Wagenborgen (NL)
Contact:

Re: CustomLogs as module

Post by HansR »

No idea what I should be looking for. My polish is not what it never was :lol:
Hans

https://meteo-wagenborgen.nl
CMX build 4017+ ● RPi 3B+ ● Raspbian Linux 6.1.21-v7+ armv7l ● dotnet 8.0.3
freddie
Posts: 2481
Joined: Wed 08 Jun 2011 11:19 am
Weather Station: Davis Vantage Pro 2 + Ecowitt
Operating System: GNU/Linux Ubuntu 22.04 LXC
Location: Alcaston, Shropshire, UK
Contact:

Re: CustomLogs as module

Post 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.
Freddie
Image
User avatar
Dador
Posts: 202
Joined: Thu 24 Nov 2011 2:22 pm
Weather Station: Davis VP2 Plus & Ecowitt
Operating System: Windows 10
Location: Rybnik, Poland
Contact:

Re: CustomLogs as module

Post 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.
User avatar
HansR
Posts: 5969
Joined: Sat 20 Oct 2012 6:53 am
Weather Station: GW1100 (WS80/WH40)
Operating System: Raspberry OS/Bookworm
Location: Wagenborgen (NL)
Contact:

Re: CustomLogs as module

Post by HansR »

@freddie: I'am faster than a temporary solution :lol:

@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?
Hans

https://meteo-wagenborgen.nl
CMX build 4017+ ● RPi 3B+ ● Raspbian Linux 6.1.21-v7+ armv7l ● dotnet 8.0.3
User avatar
HansR
Posts: 5969
Joined: Sat 20 Oct 2012 6:53 am
Weather Station: GW1100 (WS80/WH40)
Operating System: Raspberry OS/Bookworm
Location: Wagenborgen (NL)
Contact:

Re: CustomLogs as module

Post 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.
Hans

https://meteo-wagenborgen.nl
CMX build 4017+ ● RPi 3B+ ● Raspbian Linux 6.1.21-v7+ armv7l ● dotnet 8.0.3
User avatar
Dador
Posts: 202
Joined: Thu 24 Nov 2011 2:22 pm
Weather Station: Davis VP2 Plus & Ecowitt
Operating System: Windows 10
Location: Rybnik, Poland
Contact:

Re: CustomLogs as module

Post 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
Post Reply