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 4017) - 17 March 2024

Legacy Cumulus 1 release v1.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

SFTP Question with a non-standard template

Discussion and questions about Cumulus weather station software version 1. This section is the main place to get help with Cumulus 1 software developed by Steve Loft that ceased development in November 2014.
Post Reply
Altocumulus
Posts: 136
Joined: Sat 18 May 2013 1:58 pm
Weather Station: Davis Vantage Pro2 with Solar
Operating System: Windows 10 Home
Location: NE Scotland
Contact:

SFTP Question with a non-standard template

Post by Altocumulus »

OK, I'm following the wiki instruction on setting up a web transfer.
The wiki explains how to set up the scripts that Cumulus will use to initiate a secure transfer.

Unfortunately it refers solely to standard templates and images, and doesn't explain what to do with the
Files panel.

I am using a few of the standard images, so that part is straight forward, but how to I get a single
non standard template processed, then change it from a .txt to a .php.

Can anyone point me into what settings I need to change in order for the process to work properly.

I guess I no longer need to use the File Configuration Panel, and yet that seems the logical
place to force the processing?

Feel free to :bash: :groan:
Altocumulus
Posts: 136
Joined: Sat 18 May 2013 1:58 pm
Weather Station: Davis Vantage Pro2 with Solar
Operating System: Windows 10 Home
Location: NE Scotland
Contact:

Re: SFTP Question with a non-standard template

Post by Altocumulus »

I thought I had a solution.
Use the Internet Configuration Files Panel to process the file and transfer it back into the Cumulus Folder.
It works once, processing the txt file re-saving as a php, but doesn't over-write.
Altocumulus
Posts: 136
Joined: Sat 18 May 2013 1:58 pm
Weather Station: Davis Vantage Pro2 with Solar
Operating System: Windows 10 Home
Location: NE Scotland
Contact:

Re: SFTP Question with a non-standard template

Post by Altocumulus »

Solved.


I had the file going into a new folder under "webfiles".

Sending it directly to "web" works, with it overwriting correctly.
Altocumulus
Posts: 136
Joined: Sat 18 May 2013 1:58 pm
Weather Station: Davis Vantage Pro2 with Solar
Operating System: Windows 10 Home
Location: NE Scotland
Contact:

Re: SFTP Question with a non-standard template

Post by Altocumulus »

Latest.....problem.

Files not transferring to the server.
Contacted the Host and they set up to accept incoming from winSCP, also advised a change to script to start to path as public_html.
Still no joy, either manual or auto.

Does anyone spot anything in the below? Thanks in antic......

This is extract from winSCP log
. 2018-02-14 10:53:42.389 Common reasons for the Error code 4 are:
. 2018-02-14 10:53:42.389 - Renaming a file to a name of already existing file.
. 2018-02-14 10:53:42.389 - Creating a directory that already exists.
. 2018-02-14 10:53:42.390 - Moving a remote file to a different filesystem (HDD).
. 2018-02-14 10:53:42.390 - Uploading a file to a full filesystem (HDD).
. 2018-02-14 10:53:42.390 - Exceeding a user disk quota.")
< 2018-02-14 10:53:42.390 Script: Cannot overwrite remote file '/xxxx/xxxxxx/public_html'.
< 2018-02-14 10:53:42.391 Script: General failure (server should provide error description).
< 2018-02-14 10:53:42.391 Error code: 4
< 2018-02-14 10:53:42.391 Error message from server: Failure
< 2018-02-14 10:53:42.391 Common reasons for the Error code 4 are:
< 2018-02-14 10:53:42.391 - Renaming a file to a name of already existing file.
< 2018-02-14 10:53:42.391 - Creating a directory that already exists.
< 2018-02-14 10:53:42.391 - Moving a remote file to a different filesystem (HDD).
< 2018-02-14 10:53:42.391 - Uploading a file to a full filesystem (HDD).
< 2018-02-14 10:53:42.391 - Exceeding a user disk quota.
* 2018-02-14 10:53:42.402 (EScpSkipFile) Cannot overwrite remote file '/xxxx/xxxxxx/public_html'.$$
* 2018-02-14 10:53:42.402
script used is
option batch abort
option confirm off
open ******:xxxxxxxxxxx@gollum.z-host.com
put "C:\Cumulus\web\index.php" public_html
put "C:\Cumulus\web\images\moon.bmp" public_html/images
put "C:\Cumulus\web\images\rain.png" public_html/graphs
put "C:\Cumulus\web\images\raind.png" public_html/graphs
put "C:\Cumulus\web\images\wind.png" public_html/graphs
put "C:\Cumulus\web\images\windd.png" public_html/graphs
put "C:\Cumulus\web\images\temp.png" public_html/graphs
put "C:\Cumulus\web\images\tempm.png" public_html/graphs
exit
Settings used:

Site/Options : username and password
Web : Auto Update
FTP rename
UTF-8 encode
Altocumulus
Posts: 136
Joined: Sat 18 May 2013 1:58 pm
Weather Station: Davis Vantage Pro2 with Solar
Operating System: Windows 10 Home
Location: NE Scotland
Contact:

Re: SFTP Question with a non-standard template

Post by Altocumulus »

Solution....

the 'put' needs full paths and file names on both sides of the statement. looks like a specific requirement by z-host server.

But at least I now have data moving from local to website correctly - however I don't have an automatic refresh every 60 seconds. :(
Post Reply