I am trying to use SFTP to upload my files to a domain hosted at 1&1, which seems to use SFTP, so the old FTP process doesn't work. I installed pysftp, successfully, as required.
Oct 8 18:55:20 raspberrypi weewx[17094]: cheetahgenerator: Generated 14 files for report StandardReport in 3.58 seconds
Oct 8 18:55:20 raspberrypi weewx[17094]: manager: Daily summary version is 2.0
Oct 8 18:55:21 raspberrypi weewx[17094]: imagegenerator: Generated 12 images for StandardReport in 0.67 seconds
Oct 8 18:55:21 raspberrypi weewx[17094]: copygenerator: copied 9 files to /var/www/html/weewx
Oct 8 18:55:21 raspberrypi weewx[17094]: reportengine: Running report sftp
Oct 8 18:55:21 raspberrypi weewx[17094]: reportengine: Found configuration file /etc/weewx/skins/sftp/skin.conf for report sftp
Oct 8 18:55:21 raspberrypi weewx[17094]: reportengine: Unable to instantiate generator user.sftp.SFTPGenerator
Oct 8 18:55:21 raspberrypi weewx[17094]: **** invalid syntax (sftp.py, line 64)
Oct 8 18:55:21 raspberrypi weewx[17094]: **** Traceback (most recent call last):
Oct 8 18:55:21 raspberrypi weewx[17094]: **** File "/usr/share/weewx/weewx/reportengine.py", line 220, in run
Oct 8 18:55:21 raspberrypi weewx[17094]: **** obj = weeutil.weeutil._get_object(generator)(
Oct 8 18:55:21 raspberrypi weewx[17094]: **** File "/usr/share/weewx/weeutil/weeutil.py", line 1132, in _get_object
Oct 8 18:55:21 raspberrypi weewx[17094]: **** mod = __import__(module)
Oct 8 18:55:21 raspberrypi weewx[17094]: **** File "/usr/share/weewx/user/sftp.py", line 64
Oct 8 18:55:21 raspberrypi weewx[17094]: **** def run(self):
Oct 8 18:55:21 raspberrypi weewx[17094]: **** ^
Oct 8 18:55:21 raspberrypi weewx[17094]: **** SyntaxError: invalid syntax
Oct 8 18:55:21 raspberrypi weewx[17094]: **** Generator ignored
Oct 8 18:55:21 raspberrypi weewx[17094]: reportengine: Running report FTP
Oct 8 18:55:21 raspberrypi weewx[17094]: reportengine: Found configuration file /etc/weewx/skins/Ftp/skin.conf for report FTP
Oct 8 18:55:21 raspberrypi weewx[17094]: ftpgenerator: FTP upload not requested. Skipped.
Oct 8 18:55:21 raspberrypi weewx[17094]: reportengine: Running report RSYNC
Oct 8 18:55:21 raspberrypi weewx[17094]: reportengine: Found configuration file /etc/weewx/skins/Rsync/skin.conf for report RSYNC
Oct 8 18:55:21 raspberrypi weewx[17094]: rsyncgenerator: rsync upload not requested. Skipped.
David.