Re: [weewx-user] Re: How can the ftp transfer be influenced?

2020-01-21 Thread Ryan Kramer
if at all possible, use SSH + rsync.  Far better way of transferring and 
much more reliable.

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/11b172dd-d33f-41ef-bee4-c6e436c77860%40googlegroups.com.


Re: [weewx-user] Re: How can the ftp transfer be influenced?

2020-01-21 Thread Thomas Keffer
The FTP uploader includes an algorithm to avoid unnecessary uploads. If the
timestamp on the file has not changes since the last upload, it does not
upload the file.

I suspect that your cron job is not "refreshing" the timestamp.

-tk

On Tue, Jan 21, 2020 at 3:37 AM Geni  wrote:

> This is what I was looking for, unfortunately this does not work.
> At Jan 21 12:19:01 a new version was fetched, but it was not copied to Jan
> 21 12:20:26
>
>
> Am Montag, 20. Januar 2020 19:32:27 UTC+1 schrieb rich T:
>>
>> Try setting CopyGenerator to copy the file every time you upload.
>>
>> In the skin.conf file:
>>
>> [CopyGenerator]
>>
>> # This section is used by the generator CopyGenerator
>> # List of files to be copied only the first time the generator runs
>> copy_once = favicon.ico, images/*, json/index.html, js/index.html,
>> js/responsive-menu.js, robots.txt
>>
>> # List of files to be copied each time the generator runs
>> copy_always = *.css, status.jpg
>>
>>
>>
>> On Monday, January 20, 2020 at 12:46:21 PM UTC-5, Geni wrote:
>>
>>> In my opinion there are no errors in the log.
>>>
>>> It's about the image uwz.png, this is fetched every 10 minutes around
>>> X9.
>>> But in the attached log it was only transferred once via ftp.
>>>
>>>
>>>
>>> Am Montag, 20. Januar 2020 15:43:16 UTC+1 schrieb Andrew Milner:

 have you run with debug turned on?

 the 'fault' could be something happening at the other end - ie weewx
 may be transferring correctly and your ISP may be doing something odd.



 On Monday, 20 January 2020 16:05:45 UTC+2, Geni wrote:
>
> No error is entered in syslog
>
> Am Montag, 20. Januar 2020 14:22:01 UTC+1 schrieb Andrew Milner:
>>
>> what error messages are in the log for the times when ftp appears to
>> be failing??
>>
>> On Monday, 20 January 2020 14:38:29 UTC+2, Geni wrote:
>>>
>>> A cronjob fetches every 10 min a status.jpg of an external website
>>> and stores it in the HTML_ROOT/meteo.
>>> Target the file in this folder should always be copied with the ftp
>>> to the configured server and its path.
>>> This almost always works now but sometimes nothing is copied for 1
>>> or 2 hours and suddenly it works again.
>>>
>>> Can or must I make an entry in the weewx.conf to make this work more
>>> reliable?
>>>
>>> Geni
>>>
>> --
> You received this message because you are subscribed to the Google Groups
> "weewx-user" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to weewx-user+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/weewx-user/73ad19b6-ca6c-408a-85d8-a9396b471e76%40googlegroups.com
> 
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/CAPq0zEBfQpvwmsWApZJrv1r7iZfKNhrEu54_%2BbNA3w%3Dvh3n3yA%40mail.gmail.com.


[weewx-user] Re: How can the ftp transfer be influenced?

2020-01-21 Thread Geni
This is what I was looking for, unfortunately this does not work.
At Jan 21 12:19:01 a new version was fetched, but it was not copied to Jan 
21 12:20:26


Am Montag, 20. Januar 2020 19:32:27 UTC+1 schrieb rich T:
>
> Try setting CopyGenerator to copy the file every time you upload.
>
> In the skin.conf file:
>
> [CopyGenerator]
> 
> # This section is used by the generator CopyGenerator
> # List of files to be copied only the first time the generator runs
> copy_once = favicon.ico, images/*, json/index.html, js/index.html, 
> js/responsive-menu.js, robots.txt
> 
> # List of files to be copied each time the generator runs
> copy_always = *.css, status.jpg
>
>
>
> On Monday, January 20, 2020 at 12:46:21 PM UTC-5, Geni wrote:
>
>> In my opinion there are no errors in the log.
>>
>> It's about the image uwz.png, this is fetched every 10 minutes around X9. 
>> But in the attached log it was only transferred once via ftp.
>>
>>
>>
>> Am Montag, 20. Januar 2020 15:43:16 UTC+1 schrieb Andrew Milner:
>>>
>>> have you run with debug turned on?
>>>
>>> the 'fault' could be something happening at the other end - ie weewx may 
>>> be transferring correctly and your ISP may be doing something odd.
>>>
>>>
>>>
>>> On Monday, 20 January 2020 16:05:45 UTC+2, Geni wrote:

 No error is entered in syslog

 Am Montag, 20. Januar 2020 14:22:01 UTC+1 schrieb Andrew Milner:
>
> what error messages are in the log for the times when ftp appears to 
> be failing??
>
> On Monday, 20 January 2020 14:38:29 UTC+2, Geni wrote:
>>
>> A cronjob fetches every 10 min a status.jpg of an external website 
>> and stores it in the HTML_ROOT/meteo.
>> Target the file in this folder should always be copied with the ftp 
>> to the configured server and its path.
>> This almost always works now but sometimes nothing is copied for 1 or 
>> 2 hours and suddenly it works again.
>>
>> Can or must I make an entry in the weewx.conf to make this work more 
>> reliable?
>>
>> Geni
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/73ad19b6-ca6c-408a-85d8-a9396b471e76%40googlegroups.com.
Jan 21 12:19:01 Wetter-Raspi CRON[25575]: (pi) CMD (sudo wget -q -N 
http://alarm.meteocentrale.ch/images/map/schweiz_index.png -O 
/home/pi/NAS/www/meteo/uwz.png)
Jan 21 12:20:16 Wetter-Raspi weewx[25458]: manager: Added record 2020-01-21 
12:20:00 CET (1579605600) to database 'weewx'
Jan 21 12:20:16 Wetter-Raspi weewx[25458]: manager: Added record 2020-01-21 
12:20:00 CET (1579605600) to daily summary in 'weewx'
Jan 21 12:20:16 Wetter-Raspi weewx[25458]: reportengine: Running reports for 
latest time in the database.
Jan 21 12:20:16 Wetter-Raspi weewx[25458]: vantage: Requesting 200 LOOP packets.
Jan 21 12:20:16 Wetter-Raspi weewx[25458]: reportengine: Running report 
'SeasonsReport'
Jan 21 12:20:17 Wetter-Raspi weewx[25458]: reportengine: Found configuration 
file /etc/weewx/skins/Seasons/skin.conf for report 'SeasonsReport'
Jan 21 12:20:17 Wetter-Raspi weewx[25458]: vantage: Gentle wake up of console 
successful
Jan 21 12:20:17 Wetter-Raspi weewx[25458]: cheetahgenerator: using search list 
['weewx.cheetahgenerator.Almanac', 'weewx.cheetahgenerator.Station', 
'weewx.cheetahgenerator.Current', 'weewx.cheetahgenerator.Stats', 
'weewx.cheetahgenerator.UnitInfo', 'weewx.cheetahgenerator.Extras']
Jan 21 12:20:17 Wetter-Raspi weewx[25458]: manager: Daily summary version is 2.0
Jan 21 12:20:23 Wetter-Raspi weewx[25458]: manager: Daily summary version is 2.0
Jan 21 12:20:24 Wetter-Raspi weewx[25458]: reportengine: Running report 
'SmartphoneReport'
Jan 21 12:20:24 Wetter-Raspi weewx[25458]: reportengine: Found configuration 
file /etc/weewx/skins/Smartphone/skin.conf for report 'SmartphoneReport'
Jan 21 12:20:25 Wetter-Raspi weewx[25458]: cheetahgenerator: using search list 
['weewx.cheetahgenerator.Almanac', 'weewx.cheetahgenerator.Station', 
'weewx.cheetahgenerator.Current', 'weewx.cheetahgenerator.Stats', 
'weewx.cheetahgenerator.UnitInfo', 'weewx.cheetahgenerator.Extras']
Jan 21 12:20:25 Wetter-Raspi weewx[25458]: manager: Daily summary version is 2.0
Jan 21 12:20:25 Wetter-Raspi weewx[25458]: manager: Daily summary version is 2.0
Jan 21 12:20:25 Wetter-Raspi weewx[25458]: reportengine: Report 'MobileReport' 
not enabled. Skipping.
Jan 21 12:20:25 Wetter-Raspi weewx[25458]: reportengine: Report 
'StandardReport' not enabled. Skipping.
Jan 21 12:20:25 Wetter-Raspi weewx[25458]: reportengine: Running report 'FTP'
Jan 21 12:20:25 Wetter-Raspi weewx[25458]: reportengine: Found configuration 
file /etc/weewx/skins/Ftp/skin.conf for report 'FTP'
Jan 21 12:20:25 Wetter-Raspi weewx[25458]: ftpupload: Att

[weewx-user] Re: How can the ftp transfer be influenced?

2020-01-20 Thread rich T
Try setting CopyGenerator to copy the file every time you upload.

In the skin.conf file:

[CopyGenerator]

# This section is used by the generator CopyGenerator
# List of files to be copied only the first time the generator runs
copy_once = favicon.ico, images/*, json/index.html, js/index.html, 
js/responsive-menu.js, robots.txt

# List of files to be copied each time the generator runs
copy_always = *.css, status.jpg



On Monday, January 20, 2020 at 12:46:21 PM UTC-5, Geni wrote:

> In my opinion there are no errors in the log.
>
> It's about the image uwz.png, this is fetched every 10 minutes around X9. 
> But in the attached log it was only transferred once via ftp.
>
>
>
> Am Montag, 20. Januar 2020 15:43:16 UTC+1 schrieb Andrew Milner:
>>
>> have you run with debug turned on?
>>
>> the 'fault' could be something happening at the other end - ie weewx may 
>> be transferring correctly and your ISP may be doing something odd.
>>
>>
>>
>> On Monday, 20 January 2020 16:05:45 UTC+2, Geni wrote:
>>>
>>> No error is entered in syslog
>>>
>>> Am Montag, 20. Januar 2020 14:22:01 UTC+1 schrieb Andrew Milner:

 what error messages are in the log for the times when ftp appears to be 
 failing??

 On Monday, 20 January 2020 14:38:29 UTC+2, Geni wrote:
>
> A cronjob fetches every 10 min a status.jpg of an external website and 
> stores it in the HTML_ROOT/meteo.
> Target the file in this folder should always be copied with the ftp to 
> the configured server and its path.
> This almost always works now but sometimes nothing is copied for 1 or 
> 2 hours and suddenly it works again.
>
> Can or must I make an entry in the weewx.conf to make this work more 
> reliable?
>
> Geni
>


-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/8abed8a4-218b-49e1-9c83-0c50a7e5043a%40googlegroups.com.


[weewx-user] Re: How can the ftp transfer be influenced?

2020-01-20 Thread Geni
In my opinion there are no errors in the log.

It's about the image uwz.png, this is fetched every 10 minutes around X9. 
But in the attached log it was only transferred once via ftp.



Am Montag, 20. Januar 2020 15:43:16 UTC+1 schrieb Andrew Milner:
>
> have you run with debug turned on?
>
> the 'fault' could be something happening at the other end - ie weewx may 
> be transferring correctly and your ISP may be doing something odd.
>
>
>
> On Monday, 20 January 2020 16:05:45 UTC+2, Geni wrote:
>>
>> No error is entered in syslog
>>
>> Am Montag, 20. Januar 2020 14:22:01 UTC+1 schrieb Andrew Milner:
>>>
>>> what error messages are in the log for the times when ftp appears to be 
>>> failing??
>>>
>>> On Monday, 20 January 2020 14:38:29 UTC+2, Geni wrote:

 A cronjob fetches every 10 min a status.jpg of an external website and 
 stores it in the HTML_ROOT/meteo.
 Target the file in this folder should always be copied with the ftp to 
 the configured server and its path.
 This almost always works now but sometimes nothing is copied for 1 or 2 
 hours and suddenly it works again.

 Can or must I make an entry in the weewx.conf to make this work more 
 reliable?

 Geni

>>>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/7c9c7811-e208-439b-9861-c8c21cf235d1%40googlegroups.com.
Jan 20 17:49:01 Wetter-Raspi CRON[20984]: (pi) CMD (sudo wget -q -N 
http://alarm.meteocentrale.ch/images/map/schweiz_index.png -O 
/home/pi/NAS/www/meteo/uwz.png)
Jan 20 17:50:14 Wetter-Raspi weewx[20912]: manager: Added record 2020-01-20 
17:50:00 CET (1579539000) to database 'weewx'
Jan 20 17:50:15 Wetter-Raspi weewx[20912]: manager: Added record 2020-01-20 
17:50:00 CET (1579539000) to daily summary in 'weewx'
Jan 20 17:50:15 Wetter-Raspi weewx[20912]: vantage: Requesting 200 LOOP packets.
Jan 20 17:50:15 Wetter-Raspi weewx[20912]: reportengine: Running reports for 
latest time in the database.
Jan 20 17:50:15 Wetter-Raspi weewx[20912]: reportengine: Running report 
'SeasonsReport'
Jan 20 17:50:15 Wetter-Raspi weewx[20912]: reportengine: Found configuration 
file /etc/weewx/skins/Seasons/skin.conf for report 'SeasonsReport'
Jan 20 17:50:15 Wetter-Raspi weewx[20912]: vantage: Gentle wake up of console 
successful
Jan 20 17:50:15 Wetter-Raspi weewx[20912]: cheetahgenerator: using search list 
['weewx.cheetahgenerator.Almanac', 'weewx.cheetahgenerator.Station', 
'weewx.cheetahgenerator.Current', 'weewx.cheetahgenerator.Stats', 
'weewx.cheetahgenerator.UnitInfo', 'weewx.cheetahgenerator.Extras']
Jan 20 17:50:15 Wetter-Raspi weewx[20912]: manager: Daily summary version is 2.0
Jan 20 17:50:21 Wetter-Raspi weewx[20912]: manager: Daily summary version is 2.0
Jan 20 17:50:22 Wetter-Raspi weewx[20912]: reportengine: Running report 
'SmartphoneReport'
Jan 20 17:50:22 Wetter-Raspi weewx[20912]: reportengine: Found configuration 
file /etc/weewx/skins/Smartphone/skin.conf for report 'SmartphoneReport'
Jan 20 17:50:22 Wetter-Raspi weewx[20912]: cheetahgenerator: using search list 
['weewx.cheetahgenerator.Almanac', 'weewx.cheetahgenerator.Station', 
'weewx.cheetahgenerator.Current', 'weewx.cheetahgenerator.Stats', 
'weewx.cheetahgenerator.UnitInfo', 'weewx.cheetahgenerator.Extras']
Jan 20 17:50:22 Wetter-Raspi weewx[20912]: manager: Daily summary version is 2.0
Jan 20 17:50:22 Wetter-Raspi weewx[20912]: manager: Daily summary version is 2.0
Jan 20 17:50:22 Wetter-Raspi weewx[20912]: reportengine: Report 'MobileReport' 
not enabled. Skipping.
Jan 20 17:50:22 Wetter-Raspi weewx[20912]: reportengine: Report 
'StandardReport' not enabled. Skipping.
Jan 20 17:50:22 Wetter-Raspi weewx[20912]: reportengine: Running report 'FTP'
Jan 20 17:50:22 Wetter-Raspi weewx[20912]: reportengine: Found configuration 
file /etc/weewx/skins/Ftp/skin.conf for report 'FTP'
Jan 20 17:50:22 Wetter-Raspi weewx[20912]: ftpupload: Attempting secure 
connection to 192.168.56.1
Jan 20 17:50:23 Wetter-Raspi weewx[20912]: ftpupload: Secure data connection to 
192.168.56.1
Jan 20 17:50:23 Wetter-Raspi weewx[20912]: ftpupload: Uploaded file 
/web/wetter/daybarometer.png
Jan 20 17:50:23 Wetter-Raspi weewx[20912]: ftpupload: Uploaded file 
/web/wetter/dayradiation.png
Jan 20 17:50:23 Wetter-Raspi weewx[20912]: ftpupload: Uploaded file 
/web/wetter/dayrain.png
Jan 20 17:50:23 Wetter-Raspi weewx[20912]: ftpupload: Uploaded file 
/web/wetter/daytempdew.png
Jan 20 17:50:23 Wetter-Raspi weewx[20912]: ftpupload: Uploaded file 
/web/wetter/dayuv.png
Jan 20 17:50:23 Wetter-Raspi weewx[20912]: ftpupload: Uploaded file 
/web/wetter/daywind.png
Jan 20 17:50:23 Wetter-Raspi weewx[20912]: ftpupload: Uploaded file 
/web/wetter/daywinddir.png
Jan 20 17:50:23 Wetter-Raspi weewx[20912]: ft

[weewx-user] Re: How can the ftp transfer be influenced?

2020-01-20 Thread Andrew Milner
have you run with debug turned on?

the 'fault' could be something happening at the other end - ie weewx may be 
transferring correctly and your ISP may be doing something odd.



On Monday, 20 January 2020 16:05:45 UTC+2, Geni wrote:
>
> No error is entered in syslog
>
> Am Montag, 20. Januar 2020 14:22:01 UTC+1 schrieb Andrew Milner:
>>
>> what error messages are in the log for the times when ftp appears to be 
>> failing??
>>
>> On Monday, 20 January 2020 14:38:29 UTC+2, Geni wrote:
>>>
>>> A cronjob fetches every 10 min a status.jpg of an external website and 
>>> stores it in the HTML_ROOT/meteo.
>>> Target the file in this folder should always be copied with the ftp to 
>>> the configured server and its path.
>>> This almost always works now but sometimes nothing is copied for 1 or 2 
>>> hours and suddenly it works again.
>>>
>>> Can or must I make an entry in the weewx.conf to make this work more 
>>> reliable?
>>>
>>> Geni
>>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/da9e82f1-ed5a-4b7d-907c-83e2b7648f20%40googlegroups.com.


[weewx-user] Re: How can the ftp transfer be influenced?

2020-01-20 Thread Geni
No error is entered in syslog

Am Montag, 20. Januar 2020 14:22:01 UTC+1 schrieb Andrew Milner:
>
> what error messages are in the log for the times when ftp appears to be 
> failing??
>
> On Monday, 20 January 2020 14:38:29 UTC+2, Geni wrote:
>>
>> A cronjob fetches every 10 min a status.jpg of an external website and 
>> stores it in the HTML_ROOT/meteo.
>> Target the file in this folder should always be copied with the ftp to 
>> the configured server and its path.
>> This almost always works now but sometimes nothing is copied for 1 or 2 
>> hours and suddenly it works again.
>>
>> Can or must I make an entry in the weewx.conf to make this work more 
>> reliable?
>>
>> Geni
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/de8b63da-75ee-40ea-89f3-df15da0640c1%40googlegroups.com.


[weewx-user] Re: How can the ftp transfer be influenced?

2020-01-20 Thread Andrew Milner
what error messages are in the log for the times when ftp appears to be 
failing??

On Monday, 20 January 2020 14:38:29 UTC+2, Geni wrote:
>
> A cronjob fetches every 10 min a status.jpg of an external website and 
> stores it in the HTML_ROOT/meteo.
> Target the file in this folder should always be copied with the ftp to the 
> configured server and its path.
> This almost always works now but sometimes nothing is copied for 1 or 2 
> hours and suddenly it works again.
>
> Can or must I make an entry in the weewx.conf to make this work more 
> reliable?
>
> Geni
>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/5df449e5-5f86-42a1-939b-cd48f8d7fcf2%40googlegroups.com.