If you use Cumulus, please donate Image

Please read this post before posting

Latest Cumulus release v1.9.4 (build 1099) - Nov 28 2014
Latest Cumulus MX release - v3.0.0 build 3043 Jan 20 2017. See this post for download

Monthly log file - problem uploading

Discussion of version 3 of Cumulus, which runs on Windows, Linux, and OS X. All Cumulus MX queries in here, please.
Graham64
Posts: 74
Joined: Mon Aug 23, 2010 5:04 pm
Weather Station: Davis Vantage Pro 2
Operating System: Windows XP
Location: Cornwall, England
Contact:

Monthly log file - problem uploading

Postby Graham64 » Wed Sep 27, 2017 2:21 pm

I want to automatically upload the monthly log file to my mySQL database but because I don't have a fixed IP address. I am trying to FTP it with a PHP program that also works out the file name from the date.
I have a Raspberry PI with CumulusMX running on an SSD that is formatted as ntfs.
I can not get the PHP program to upload the monthly log file from the data directory on the SSD, I get an error saying 'Permission denied'. I think it is a file permissions problem but I can not change the permissions on the SSD because it is ntfs.
If I copy the file to the Pi's SD card and change the permissions, the PHP program successfully uploads the file.
My questions are:
Shall I change the format of the SSD to Ext4 (say) and then the permissions will be OK?
What permissions does CumulusMX give to the monthly log file?
Is there a better way of uploading the monthly log files if the IP address is dynamic?

Thanks for any help - I am working at the limits of my Linux knowledge - but learning fast!

User avatar
Toxic17
Posts: 526
Joined: Mon May 19, 2014 10:45 pm
Weather Station: Davis Vantage Pro2 Plus
Operating System: Debian 9.1 Stretch
Location: Bangor, NI
Contact:

Re: Monthly log file - problem uploading

Postby Toxic17 » Wed Sep 27, 2017 8:37 pm

is the monthly file in use? what happens is you stop cumulus and try to upload?

or maybe upload using

"sudo" before the command to give it enhanced privileges
Regards Simon
https://www.conligwx.org
https://www.conligwx.org/pws/
Davis Vantage Pro2+ - CumulusMX v3.0.0 (build 3043) + Saratoga/PWS
Image


Return to “Cumulus MX”

Who is online

Users browsing this forum: No registered users and 6 guests