Welcome to the Cumulus Support forum.

Latest Cumulus MX V4 release 4.0.1 (build 4023) - 16 May 2024

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

Utils 6171 directory problems

Discussion of the Cumulusutils tool and website generator.

Moderator: HansR

Post Reply
mingjen
Posts: 37
Joined: Wed 21 Dec 2011 3:40 pm
Weather Station: Davis Vantage Pro2
Operating System: Windows 10
Location: Fyn, Denmark
Contact:

Utils 6171 directory problems

Post by mingjen »

Hi!
I have installed the new version of CUMX and C utils, but I have a problem uploading to the right place. It seems all files go to to CUMX directory where I am using a separate directory under CUMX named utils, whitch I have put in cumulusutils.ini as upload directory.
Help needet :)
https://mingjen.net/odense
Davis Vantage Pro2 weather station
CumulusMX
User avatar
HansR
Posts: 6028
Joined: Sat 20 Oct 2012 6:53 am
Weather Station: GW1100 (WS80/WH40)
Operating System: Raspberry OS/Bookworm
Location: Wagenborgen (NL)
Contact:

Re: Utils 6171 directory problems

Post by HansR »

mingjen wrote: Mon 13 Mar 2023 8:34 am Hi!
I have installed the new version of CUMX and C utils, but I have a problem uploading to the right place. It seems all files go to to CUMX directory where I am using a separate directory under CUMX named utils, whitch I have put in cumulusutils.ini as upload directory.
Help needet :)
  1. Which upload protocol do you use (did you switch to PHP?)
  2. Could you please post your logfile for the website command?
[EDIT:] and btw it is advisable to use CMX 3.24.1 b3234 to avoid some issues around the novelties of CMX 3.24.0
Hans

https://meteo-wagenborgen.nl
CMX build 4017+ ● RPi 3B+ ● Raspbian Linux 6.1.21-v7+ armv7l ● dotnet 8.0.3
mingjen
Posts: 37
Joined: Wed 21 Dec 2011 3:40 pm
Weather Station: Davis Vantage Pro2
Operating System: Windows 10
Location: Fyn, Denmark
Contact:

Re: Utils 6171 directory problems

Post by mingjen »

Hi!
Yes, I changed to PHP and have CUMX 3234 running.
It is as if the utils overlook the "upload to" in the inifile.
Attached inifile and logfile
You do not have the required permissions to view the files attached to this post.
https://mingjen.net/odense
Davis Vantage Pro2 weather station
CumulusMX
User avatar
HansR
Posts: 6028
Joined: Sat 20 Oct 2012 6:53 am
Weather Station: GW1100 (WS80/WH40)
Operating System: Raspberry OS/Bookworm
Location: Wagenborgen (NL)
Contact:

Re: Utils 6171 directory problems

Post by HansR »

Hi,
mingjen wrote: Mon 13 Mar 2023 10:02 am It is as if the utils overlook the "upload to" in the inifile.
Actually it indeed did overlook deeper directories. It assumes the upload.php location as the upload base. :bash:

I attach a patch 2 which should solve that any directory relative to the CMX defined upload.php location can be used now to upload. Hope no errors introduced. Note that you still have to adjust your Extra Webfiles destination just as the NOAA reports destination.

Please let me know if it works.
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
mingjen
Posts: 37
Joined: Wed 21 Dec 2011 3:40 pm
Weather Station: Davis Vantage Pro2
Operating System: Windows 10
Location: Fyn, Denmark
Contact:

Re: Utils 6171 directory problems

Post by mingjen »

Hi Hans. :D :D
I think it did the trick. It now finds the right places for all the files.
Only one thing that I cannot get to work is use of the CUMX moon.
I used to copy the moon.png in CUMX extra files, but after changing to PHP the file copies but it makes the file bigger (ca 30kb against 17kb when I use FTP)
But I am very happy that you fixed problem with directory structure.
Thank you wery much.
https://mingjen.net/odense
Davis Vantage Pro2 weather station
CumulusMX
User avatar
HansR
Posts: 6028
Joined: Sat 20 Oct 2012 6:53 am
Weather Station: GW1100 (WS80/WH40)
Operating System: Raspberry OS/Bookworm
Location: Wagenborgen (NL)
Contact:

Re: Utils 6171 directory problems

Post by HansR »

mingjen wrote: Mon 13 Mar 2023 11:24 am I think it did the trick. It now finds the right places for all the files.
Good :D
mingjen wrote: Mon 13 Mar 2023 11:24 am Only one thing that I cannot get to work is use of the CUMX moon.
I used to copy the moon.png in CUMX extra files, but after changing to PHP the file copies but it makes the file bigger (ca 30kb against 17kb when I use FTP)
That is strange.... I'll look into that, or actually I'll ask Mark how this is possible :lol:
Hans

https://meteo-wagenborgen.nl
CMX build 4017+ ● RPi 3B+ ● Raspbian Linux 6.1.21-v7+ armv7l ● dotnet 8.0.3
User avatar
mcrossley
Posts: 12905
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Utils 6171 directory problems

Post by mcrossley »

HansR wrote: Mon 13 Mar 2023 12:03 pm That is strange.... I'll look into that, or actually I'll ask Mark how this is possible :lol:
It is strange, you should get out on the web server what goes in at CMX. It just zips, transfers, then unzips the file.

On my systems the file in the CMX folder is exactly the same size as the one on my web server - 11982 bytes at present.
User avatar
HansR
Posts: 6028
Joined: Sat 20 Oct 2012 6:53 am
Weather Station: GW1100 (WS80/WH40)
Operating System: Raspberry OS/Bookworm
Location: Wagenborgen (NL)
Contact:

Re: Utils 6171 directory problems

Post by HansR »

So... no explanation.
I'll start experimenting and see if I can reproduce.
Hans

https://meteo-wagenborgen.nl
CMX build 4017+ ● RPi 3B+ ● Raspbian Linux 6.1.21-v7+ armv7l ● dotnet 8.0.3
User avatar
PaulMy
Posts: 3876
Joined: Sun 28 Sep 2008 11:54 pm
Weather Station: Davis VP2 Plus 24-Hour FARS
Operating System: Windows8 and Windows10
Location: Komoka, ON Canada
Contact:

Re: Utils 6171 directory problems

Post by PaulMy »

I can confirm like Mark, moon.png updates and uploads at each hour. CMX b3234 install had 11,982 size at 11:00 and 11,987 at 12:00. The same in a b3212 install and in a CMX test.

Enjoy,
Paul
VP2+
C1 www.komokaweather.com/komokaweather-ca
MX https://komokaweather.com/cumulusmx/index.htm /index.html /index.php
MX https://komokaweather.com/cumulusmxwll/index.htm /index.html /index.php
MX https:// komokaweather.com/cumulusmx4/index.htm
Image
mingjen
Posts: 37
Joined: Wed 21 Dec 2011 3:40 pm
Weather Station: Davis Vantage Pro2
Operating System: Windows 10
Location: Fyn, Denmark
Contact:

Re: Utils 6171 directory problems

Post by mingjen »

I have adjusted moon size to 120. Purhaps it's there. I'll try to go back to 100 and see what happens.
https://mingjen.net/odense
Davis Vantage Pro2 weather station
CumulusMX
mingjen
Posts: 37
Joined: Wed 21 Dec 2011 3:40 pm
Weather Station: Davis Vantage Pro2
Operating System: Windows 10
Location: Fyn, Denmark
Contact:

Re: Utils 6171 directory problems

Post by mingjen »

No, the size did not change anything.
But strangely, if I tick realtime when transferring file it goes right with the original size about 11kb :?:
Is there a way that cumulus utils can use the CUMX moon from the original place (by me ...CMX/images) in stead of CMX/utils/images?
https://mingjen.net/odense
Davis Vantage Pro2 weather station
CumulusMX
User avatar
HansR
Posts: 6028
Joined: Sat 20 Oct 2012 6:53 am
Weather Station: GW1100 (WS80/WH40)
Operating System: Raspberry OS/Bookworm
Location: Wagenborgen (NL)
Contact:

Re: Utils 6171 directory problems

Post by HansR »

mingjen wrote: Tue 14 Mar 2023 4:35 pm No, the size did not change anything.
But strangely, if I tick realtime when transferring file it goes right with the original size about 11kb :?:
I did not observe a change in size either so I suggest we skip that issue.
mingjen wrote: Tue 14 Mar 2023 4:35 pm Is there a way that cumulus utils can use the CUMX moon from the original place (by me ...CMX/images) in stead of CMX/utils/images?
Actually, the location CUtils gets the moon image from is the one where CMX uploads it: it takes the value from the CMX inifile parameter MoonImageFtpDest. So wherever you upload the image, the location is in Cumulus.ini. Can't go wrong I'd say. :D
Hans

https://meteo-wagenborgen.nl
CMX build 4017+ ● RPi 3B+ ● Raspbian Linux 6.1.21-v7+ armv7l ● dotnet 8.0.3
AndyKF650
Posts: 722
Joined: Thu 20 Aug 2020 8:35 am
Weather Station: Davis VP2 Plus
Operating System: RPiv4 64bit Linux 12 Bookworm
Location: Jersey Channel Islands
Contact:

Re: Utils 6171 directory problems

Post by AndyKF650 »

From my experience the moon.pg image does work in CUtils but you need to send it to ./images/moon.png. This is addressed though the internet settings in CMX.
User avatar
HansR
Posts: 6028
Joined: Sat 20 Oct 2012 6:53 am
Weather Station: GW1100 (WS80/WH40)
Operating System: Raspberry OS/Bookworm
Location: Wagenborgen (NL)
Contact:

Re: Utils 6171 directory problems

Post by HansR »

AndyKF650 wrote: Tue 14 Mar 2023 5:36 pm From my experience the moon.pg image does work in CUtils but you need to send it to ./images/moon.png. This is addressed though the internet settings in CMX.
If you change that in CMX it will upload to its new destination.

If you then regenerate the CUtils website it will pick up on that change. It really takes the CMX location I mentioned above. But it is a configuration, you need to regenerate the website.

It is as if you change a colour. You need to regenerate as well.
Hans

https://meteo-wagenborgen.nl
CMX build 4017+ ● RPi 3B+ ● Raspbian Linux 6.1.21-v7+ armv7l ● dotnet 8.0.3
Post Reply