Please read the posts in the Announcements section about the current status of Cumulus development now that I have retired

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

SFTP Question with a non-standard template

Discussion and questions about Cumulus weather station software version 1. This section and its subforums are the main place to get help with Cumulus. Anything which is not specific to the type of weather station goes in here; for anything specific to a type of weather station, please use the appropriate subforum. Use the 'website development' section for any questions relating to creating or running a web site for Cumulus data. Discussion of the stations themselves in these sections is fine.
Altocumulus
Posts: 23
Joined: Sat May 18, 2013 1:58 pm
Weather Station: Davis pro vue+
Operating System: Windows 7 Home
Location: NE Scotland

SFTP Question with a non-standard template

Postby Altocumulus » Mon Feb 12, 2018 9:13 am

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: 23
Joined: Sat May 18, 2013 1:58 pm
Weather Station: Davis pro vue+
Operating System: Windows 7 Home
Location: NE Scotland

Re: SFTP Question with a non-standard template

Postby Altocumulus » Mon Feb 12, 2018 11:30 am

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: 23
Joined: Sat May 18, 2013 1:58 pm
Weather Station: Davis pro vue+
Operating System: Windows 7 Home
Location: NE Scotland

Re: SFTP Question with a non-standard template

Postby Altocumulus » Mon Feb 12, 2018 12:08 pm

Solved.


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

Sending it directly to "web" works, with it overwriting correctly.

Altocumulus
Posts: 23
Joined: Sat May 18, 2013 1:58 pm
Weather Station: Davis pro vue+
Operating System: Windows 7 Home
Location: NE Scotland

Re: SFTP Question with a non-standard template

Postby Altocumulus » Wed Feb 14, 2018 11:14 am

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: 23
Joined: Sat May 18, 2013 1:58 pm
Weather Station: Davis pro vue+
Operating System: Windows 7 Home
Location: NE Scotland

Re: SFTP Question with a non-standard template

Postby Altocumulus » Thu Feb 15, 2018 10:08 am

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. :(


Return to “Cumulus 1”

Who is online

Users browsing this forum: No registered users and 6 guests