Thanks, Gary.

I think my problems with pysftp are something to do with using Wheezy on a
RPi and ver 2.7 of Python. That seems to have an old version of pip, so I
managed to update that to pip ver 18.0, but then pip shows several nasty
looking errors when I try to install pysftp.  The syslog is below, but I
suspect I am going to have to upgrade my Pi to raspbian stretch  - any tips
on making that process quick, allowing for a weewx install would be
appreciated.

David.

pi@WeatherPi ~ $ sudo pip install pysftp
Collecting pysftp
/usr/local/lib/python2.7/dist-packages/pip/_vendor/urllib3/util/ssl_.py:369:
SNIMissingWarning: An HTTPS request has been made, but the SNI (Se

        rver Name Indication) extension to TLS is not available on this
platform. This may cause the server to present an incorrect TLS
certificate, wh
                                  ich can cause validation failures. You
can upgrade to a newer version of Python to solve this. For more
information, see https://urllib3.readth

edocs.io/en/latest/advanced-usage.html#ssl-warnings
  SNIMissingWarning
/usr/local/lib/python2.7/dist-packages/pip/_vendor/urllib3/util/ssl_.py:160:
InsecurePlatformWarning: A true SSLContext object is not available

        . This prevents urllib3 from configuring SSL appropriately and may
cause certain SSL connections to fail. You can upgrade to a newer version
of
                     Python to solve this. For more information, see
https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
  InsecurePlatformWarning
/usr/local/lib/python2.7/dist-packages/pip/_vendor/urllib3/util/ssl_.py:160:
InsecurePlatformWarning: A true SSLContext object is not available

        . This prevents urllib3 from configuring SSL appropriately and may
cause certain SSL connections to fail. You can upgrade to a newer version
of
                     Python to solve this. For more information, see
https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
  InsecurePlatformWarning
  Downloading
https://files.pythonhosted.org/packages/36/60/45f30390a38b1f92e0a8cf4de178cd7c2bc3f874c85430e40ccf99df8fe7/pysftp-0.2.9.tar.gz
Collecting paramiko>=1.17 (from pysftp)
  Downloading
https://files.pythonhosted.org/packages/cf/ae/94e70d49044ccc234bfdba20114fa947d7ba6eb68a2e452d89b920e62227/paramiko-2.4.2-py2.py3

                -none-any.whl (193kB)
    100% |████████████████████████████████| 194kB 2.1MB/s
Collecting cryptography>=1.5 (from paramiko>=1.17->pysftp)
  Downloading
https://files.pythonhosted.org/packages/22/21/233e38f74188db94e8451ef6385754a98f3cad9b59bedf3a8e8b14988be4/cryptography-2.3.1.tar

                .gz (449kB)
    100% |████████████████████████████████| 450kB 2.0MB/s
Collecting pynacl>=1.0.1 (from paramiko>=1.17->pysftp)
  Downloading
https://files.pythonhosted.org/packages/61/ab/2ac6dea8489fa713e2b4c6c5b549cc962dd4a842b5998d9e80cf8440b7cd/PyNaCl-1.3.0.tar.gz
(3
                    .4MB)
    100% |████████████████████████████████| 3.4MB 953kB/s
  Installing build dependencies ... error
  Complete output from command /usr/bin/python -m pip install
--ignore-installed --no-user --prefix /tmp/pip-build-env-FXioj2
--no-warn-script-
                                    location --no-binary :none:
--only-binary :none: -i https://pypi.org/simple -- setuptools wheel
"cffi>=1.4.1; python_implementation != 'PyPy'":
  Collecting setuptools

/usr/local/lib/python2.7/dist-packages/pip/_vendor/urllib3/util/ssl_.py:369:
SNIMissingWarning: An HTTPS request has been made, but the SNI (

      Server Name Indication) extension to TLS is not available on this
platform. This may cause the server to present an incorrect TLS
certificate,
                               which can cause validation failures. You can
upgrade to a newer version of Python to solve this. For more information,
see https://urllib3.read

thedocs.io/en/latest/advanced-usage.html#ssl-warnings
    SNIMissingWarning

/usr/local/lib/python2.7/dist-packages/pip/_vendor/urllib3/util/ssl_.py:160:
InsecurePlatformWarning: A true SSLContext object is not availab

      le. This prevents urllib3 from configuring SSL appropriately and may
cause certain SSL connections to fail. You can upgrade to a newer version

                 of Python to solve this. For more information, see
https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
    InsecurePlatformWarning

/usr/local/lib/python2.7/dist-packages/pip/_vendor/urllib3/util/ssl_.py:160:
InsecurePlatformWarning: A true SSLContext object is not availab

      le. This prevents urllib3 from configuring SSL appropriately and may
cause certain SSL connections to fail. You can upgrade to a newer version

                 of Python to solve this. For more information, see
https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
    InsecurePlatformWarning
    Downloading
https://files.pythonhosted.org/packages/96/06/c8ee69628191285ddddffb277bd5abdf769166e7a14b867c2a172f0175b1/setuptools-40.4.3-py

                2.py3-none-any.whl (569kB)
  Collecting wheel
    Using cached
https://files.pythonhosted.org/packages/fc/e9/05316a1eec70c2bfc1c823a259546475bd7636ba6d27ec80575da523bc34/wheel-0.32.1-py2.py

                3-none-any.whl
  Collecting cffi>=1.4.1
    Downloading
https://files.pythonhosted.org/packages/e7/a7/4cd50e57cc6f436f1cc3a7e8fa700ff9b8b4d471620629074913e3735fb2/cffi-1.11.5.tar.gz
(
                    438kB)
  Collecting pycparser (from cffi>=1.4.1)
    Downloading
https://files.pythonhosted.org/packages/68/9e/49196946aee219aead1290e00d1e7fdeab8567783e83e1b9ab5585e6206a/pycparser-2.19.tar.g

                z (158kB)
  Building wheels for collected packages: cffi, pycparser
    Running setup.py bdist_wheel for cffi: started
    Running setup.py bdist_wheel for cffi: finished with status 'error'
    Complete output from command /usr/bin/python -u -c "import setuptools,
tokenize;__file__='/tmp/pip-install-vvzHKF/cffi/setup.py';f=getattr(

          tokenize, 'open', open)(__file__);code=f.read().replace('\r\n',
'\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d
/tmp/pip-
                            wheel-pjsewI --python-tag cp27:
    Package libffi was not found in the pkg-config search path.
    Perhaps you should add the directory containing `libffi.pc'
    to the PKG_CONFIG_PATH environment variable
    No package 'libffi' found
    Package libffi was not found in the pkg-config search path.
    Perhaps you should add the directory containing `libffi.pc'
    to the PKG_CONFIG_PATH environment variable
    No package 'libffi' found
    Package libffi was not found in the pkg-config search path.
    Perhaps you should add the directory containing `libffi.pc'
    to the PKG_CONFIG_PATH environment variable
    No package 'libffi' found
    Package libffi was not found in the pkg-config search path.
    Perhaps you should add the directory containing `libffi.pc'
    to the PKG_CONFIG_PATH environment variable
    No package 'libffi' found
    Package libffi was not found in the pkg-config search path.
    Perhaps you should add the directory containing `libffi.pc'
    to the PKG_CONFIG_PATH environment variable
    No package 'libffi' found
    running bdist_wheel
    running build
    running build_py
    creating build
    creating build/lib.linux-armv7l-2.7
    creating build/lib.linux-armv7l-2.7/cffi
    copying cffi/lock.py -> build/lib.linux-armv7l-2.7/cffi
    copying cffi/cffi_opcode.py -> build/lib.linux-armv7l-2.7/cffi
    copying cffi/setuptools_ext.py -> build/lib.linux-armv7l-2.7/cffi
    copying cffi/__init__.py -> build/lib.linux-armv7l-2.7/cffi
    copying cffi/model.py -> build/lib.linux-armv7l-2.7/cffi
    copying cffi/backend_ctypes.py -> build/lib.linux-armv7l-2.7/cffi
    copying cffi/cparser.py -> build/lib.linux-armv7l-2.7/cffi
    copying cffi/vengine_cpy.py -> build/lib.linux-armv7l-2.7/cffi
    copying cffi/verifier.py -> build/lib.linux-armv7l-2.7/cffi
    copying cffi/commontypes.py -> build/lib.linux-armv7l-2.7/cffi
    copying cffi/error.py -> build/lib.linux-armv7l-2.7/cffi
    copying cffi/vengine_gen.py -> build/lib.linux-armv7l-2.7/cffi
    copying cffi/api.py -> build/lib.linux-armv7l-2.7/cffi
    copying cffi/recompiler.py -> build/lib.linux-armv7l-2.7/cffi
    copying cffi/ffiplatform.py -> build/lib.linux-armv7l-2.7/cffi
    copying cffi/_cffi_include.h -> build/lib.linux-armv7l-2.7/cffi
    copying cffi/parse_c_type.h -> build/lib.linux-armv7l-2.7/cffi
    copying cffi/_embedding.h -> build/lib.linux-armv7l-2.7/cffi
    copying cffi/_cffi_errors.h -> build/lib.linux-armv7l-2.7/cffi
    running build_ext
    building '_cffi_backend' extension
    creating build/temp.linux-armv7l-2.7
    creating build/temp.linux-armv7l-2.7/c
    gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall
-Wstrict-prototypes -fPIC -DUSE__THREAD -DHAVE_SYNC_SYNCHRONIZE
-I/usr/incl
                              ude/ffi -I/usr/include/libffi
-I/usr/include/python2.7 -c c/_cffi_backend.c -o
build/temp.linux-armv7l-2.7/c/_cffi_backend.o
    c/_cffi_backend.c:2:20: fatal error: Python.h: No such file or directory
    compilation terminated.
    error: command 'gcc' failed with exit status 1

    ----------------------------------------
    Failed building wheel for cffi
    Running setup.py clean for cffi
    Running setup.py bdist_wheel for pycparser: started
    Running setup.py bdist_wheel for pycparser: finished with status 'done'
    Stored in directory:
/root/.cache/pip/wheels/f2/9a/90/de94f8556265ddc9d9c8b271b0f63e57b26fb1d67a45564511
  Successfully built pycparser
  Failed to build cffi
  Installing collected packages: setuptools, wheel, pycparser, cffi
    Running setup.py install for cffi: started
      Running setup.py install for cffi: finished with status 'error'
      Complete output from command /usr/bin/python -u -c "import
setuptools,
tokenize;__file__='/tmp/pip-install-vvzHKF/cffi/setup.py';f=getatt

        r(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n',
'\n');f.close();exec(compile(code, __file__, 'exec'))" install --record
/tmp/
                        pip-record-3KgNZC/install-record.txt
--single-version-externally-managed --prefix /tmp/pip-build-env-FXioj2
--compile:
      Package libffi was not found in the pkg-config search path.
      Perhaps you should add the directory containing `libffi.pc'
      to the PKG_CONFIG_PATH environment variable
      No package 'libffi' found
      Package libffi was not found in the pkg-config search path.
      Perhaps you should add the directory containing `libffi.pc'
      to the PKG_CONFIG_PATH environment variable
      No package 'libffi' found
      Package libffi was not found in the pkg-config search path.
      Perhaps you should add the directory containing `libffi.pc'
      to the PKG_CONFIG_PATH environment variable
      No package 'libffi' found
      Package libffi was not found in the pkg-config search path.
      Perhaps you should add the directory containing `libffi.pc'
      to the PKG_CONFIG_PATH environment variable
      No package 'libffi' found
      Package libffi was not found in the pkg-config search path.
      Perhaps you should add the directory containing `libffi.pc'
      to the PKG_CONFIG_PATH environment variable
      No package 'libffi' found
      running install
      running build
      running build_py
      creating build
      creating build/lib.linux-armv7l-2.7
      creating build/lib.linux-armv7l-2.7/cffi
      copying cffi/lock.py -> build/lib.linux-armv7l-2.7/cffi
      copying cffi/cffi_opcode.py -> build/lib.linux-armv7l-2.7/cffi
      copying cffi/setuptools_ext.py -> build/lib.linux-armv7l-2.7/cffi
      copying cffi/__init__.py -> build/lib.linux-armv7l-2.7/cffi
      copying cffi/model.py -> build/lib.linux-armv7l-2.7/cffi
      copying cffi/backend_ctypes.py -> build/lib.linux-armv7l-2.7/cffi
      copying cffi/cparser.py -> build/lib.linux-armv7l-2.7/cffi
      copying cffi/vengine_cpy.py -> build/lib.linux-armv7l-2.7/cffi
      copying cffi/verifier.py -> build/lib.linux-armv7l-2.7/cffi
      copying cffi/commontypes.py -> build/lib.linux-armv7l-2.7/cffi
      copying cffi/error.py -> build/lib.linux-armv7l-2.7/cffi
      copying cffi/vengine_gen.py -> build/lib.linux-armv7l-2.7/cffi
      copying cffi/api.py -> build/lib.linux-armv7l-2.7/cffi
      copying cffi/recompiler.py -> build/lib.linux-armv7l-2.7/cffi
      copying cffi/ffiplatform.py -> build/lib.linux-armv7l-2.7/cffi
      copying cffi/_cffi_include.h -> build/lib.linux-armv7l-2.7/cffi
      copying cffi/parse_c_type.h -> build/lib.linux-armv7l-2.7/cffi
      copying cffi/_embedding.h -> build/lib.linux-armv7l-2.7/cffi
      copying cffi/_cffi_errors.h -> build/lib.linux-armv7l-2.7/cffi
      running build_ext
      building '_cffi_backend' extension
      creating build/temp.linux-armv7l-2.7
      creating build/temp.linux-armv7l-2.7/c
      gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall
-Wstrict-prototypes -fPIC -DUSE__THREAD -DHAVE_SYNC_SYNCHRONIZE -I/usr/in

                clude/ffi -I/usr/include/libffi -I/usr/include/python2.7 -c
c/_cffi_backend.c -o build/temp.linux-armv7l-2.7/c/_cffi_backend.o
      c/_cffi_backend.c:2:20: fatal error: Python.h: No such file or
directory
      compilation terminated.
      error: command 'gcc' failed with exit status 1

      ----------------------------------------
  Command "/usr/bin/python -u -c "import setuptools,
tokenize;__file__='/tmp/pip-install-vvzHKF/cffi/setup.py';f=getattr(tokenize,
'open', open
                              )(__file__);code=f.read().replace('\r\n',
'\n');f.close();exec(compile(code, __file__, 'exec'))" install --record
/tmp/pip-record-3KgNZC/instal
                                                l-record.txt
--single-version-externally-managed --prefix /tmp/pip-build-env-FXioj2
--compile" failed with error code 1 in /tmp/pip-install-vvz

  HKF/cffi/

  ----------------------------------------
Command "/usr/bin/python -m pip install --ignore-installed --no-user
--prefix /tmp/pip-build-env-FXioj2 --no-warn-script-location --no-binary :

                none: --only-binary :none: -i https://pypi.org/simple --
setuptools wheel "cffi>=1.4.1; python_implementation != 'PyPy'"" failed
with error cod
                                e 1 in None


On Fri, 5 Oct 2018 at 07:10, gjr80 <[email protected]> wrote:

> I presume that your working passwordless ssh is from your WeatherPi
> machine. Which user on WeatherPi has passwordless ssh? If it is, for
> example, user pi and WeeWX is being run as root then I expect WeeWX rsync
> will fail with the error shown. You need to make sure that the account that
> runs WeeWX has passwordless ssh access. So you may need to change the user
> that runs WeeWX or give the account that runs WeeWX (likely root unless you
> explicitly changed it) passwordless ssh access.
>
> Regarding pysftp, what did you do? what error did you come across? I just
> tried installing with pip on my RPI running raspbian stretch:
>
> $ sudo pip install pysftp
>
> and received a dependency error on package libffi. Installed libffi using:
>
> $ sudo ap-get install libffi-dev
>
> then ran the pysftp install again and it installed without error, it was
> slow but eventually it got there. If that does not solve your pysftp
> issue post the command you used to install it and the output you receive.
>
> Gary
>
> On Friday, 5 October 2018 03:03:44 UTC+10, [email protected] wrote:
>>
>> I have recently signed up to 1&1 to host my weather website and want to
>> get weewx to upload files to it, allowing for the fact that they now use
>> SFTP, not plain FTP, so I can't use the FTP weewx facility. I tried to use
>> Matthew Wall's weew-sftp extension, but couldn't manage to get the python
>> pysftp module installed, so I thought I would try Rsync.   I followed the
>> steps below and can successfully ssh to my 1&1 FTP account without needing
>> to type in a password.
>>
>> However, when I amend Rysc configuration in weewx.conf as per below,
>> Rsync seems to fail.  My syslog is below.  The Rsync error is at the end,
>> but I included earlier errors in the syslog, but not sure if they are
>> related to the Rsync issue or not.
>>
>> Any ideas on what is going wrong?
>>
>> Many Thanks
>>
>> David.
>>
>> Oct  4 17:51:17 WeatherPi weewx[10224]: manager: Daily summary version is
>> 2.0
>> Oct  4 17:51:17 WeatherPi weewx[10224]: reportengine: Caught
>> unrecoverable exception in generator weewx.cheetahgenerator.CheetahGenerator
>> Oct  4 17:51:17 WeatherPi weewx[10224]:         ****  No module named
>> forecast
>> Oct  4 17:51:17 WeatherPi weewx[10224]:         ****  Traceback (most
>> recent call last):
>> Oct  4 17:51:17 WeatherPi weewx[10224]:         ****    File
>> "/usr/share/weewx/weewx/reportengine.py", line 239, in run
>> Oct  4 17:51:17 WeatherPi weewx[10224]:         ****      obj.start()
>> Oct  4 17:51:17 WeatherPi weewx[10224]:         ****    File
>> "/usr/share/weewx/weewx/reportengine.py", line 273, in start
>> Oct  4 17:51:17 WeatherPi weewx[10224]:         ****      self.run()
>> Oct  4 17:51:17 WeatherPi weewx[10224]:         ****    File
>> "/usr/share/weewx/weewx/cheetahgenerator.py", line 155, in run
>> Oct  4 17:51:17 WeatherPi weewx[10224]:         ****
>> self.initExtensions(gen_dict[section_name])
>> Oct  4 17:51:17 WeatherPi weewx[10224]:         ****    File
>> "/usr/share/weewx/weewx/cheetahgenerator.py", line 197, in initExtensions
>> Oct  4 17:51:17 WeatherPi weewx[10224]:         ****      class_ =
>> weeutil.weeutil._get_object(x)
>> Oct  4 17:51:17 WeatherPi weewx[10224]:         ****    File
>> "/usr/share/weewx/weeutil/weeutil.py", line 1132, in _get_object
>> Oct  4 17:51:17 WeatherPi weewx[10224]:         ****      mod =
>> __import__(module)
>> Oct  4 17:51:17 WeatherPi weewx[10224]:         ****  ImportError: No
>> module named forecast
>> Oct  4 17:51:17 WeatherPi weewx[10224]:         ****  Generator terminated
>> Oct  4 17:51:17 WeatherPi weewx[10224]: reportengine: Caught
>> unrecoverable exception in generator weewx.imagegenerator.ImageGenerator
>> Oct  4 17:51:17 WeatherPi weewx[10224]:         ****  'skin'
>> Oct  4 17:51:17 WeatherPi weewx[10224]:         ****  Traceback (most
>> recent call last):
>> Oct  4 17:51:17 WeatherPi weewx[10224]:         ****    File
>> "/usr/share/weewx/weewx/reportengine.py", line 239, in run
>> Oct  4 17:51:17 WeatherPi weewx[10224]:         ****      obj.start()
>> Oct  4 17:51:17 WeatherPi weewx[10224]:         ****    File
>> "/usr/share/weewx/weewx/reportengine.py", line 273, in start
>> Oct  4 17:51:17 WeatherPi weewx[10224]:         ****      self.run()
>> Oct  4 17:51:17 WeatherPi weewx[10224]:         ****    File
>> "/usr/share/weewx/weewx/imagegenerator.py", line 31, in run
>> Oct  4 17:51:17 WeatherPi weewx[10224]:         ****      self.setup()
>> Oct  4 17:51:17 WeatherPi weewx[10224]:         ****    File
>> "/usr/share/weewx/weewx/imagegenerator.py", line 44, in setup
>> Oct  4 17:51:17 WeatherPi weewx[10224]:         ****
>> self.skin_dict['skin']))
>> Oct  4 17:51:17 WeatherPi weewx[10224]:         ****    File
>> "/usr/lib/python2.7/dist-packages/configobj.py", line 567, in __getitem__
>> Oct  4 17:51:17 WeatherPi weewx[10224]:         ****      val =
>> dict.__getitem__(self, key)
>> Oct  4 17:51:17 WeatherPi weewx[10224]:         ****  KeyError: 'skin'
>> Oct  4 17:51:17 WeatherPi weewx[10224]:         ****  Generator terminated
>> Oct  4 17:51:17 WeatherPi weewx[10224]: reportengine: Caught
>> unrecoverable exception in generator weewx.reportengine.CopyGenerator
>> Oct  4 17:51:17 WeatherPi weewx[10224]:         ****  'skin'
>> Oct  4 17:51:17 WeatherPi weewx[10224]:         ****  Traceback (most
>> recent call last):
>> Oct  4 17:51:17 WeatherPi weewx[10224]:         ****    File
>> "/usr/share/weewx/weewx/reportengine.py", line 239, in run
>> Oct  4 17:51:17 WeatherPi weewx[10224]:         ****      obj.start()
>> Oct  4 17:51:17 WeatherPi weewx[10224]:         ****    File
>> "/usr/share/weewx/weewx/reportengine.py", line 273, in start
>> Oct  4 17:51:17 WeatherPi weewx[10224]:         ****      self.run()
>> Oct  4 17:51:17 WeatherPi weewx[10224]:         ****    File
>> "/usr/share/weewx/weewx/reportengine.py", line 417, in run
>> Oct  4 17:51:17 WeatherPi weewx[10224]:         ****
>> self.skin_dict['skin']))
>> Oct  4 17:51:17 WeatherPi weewx[10224]:         ****    File
>> "/usr/lib/python2.7/dist-packages/configobj.py", line 567, in __getitem__
>> Oct  4 17:51:17 WeatherPi weewx[10224]:         ****      val =
>> dict.__getitem__(self, key)
>> Oct  4 17:51:17 WeatherPi weewx[10224]:         ****  KeyError: 'skin'
>> Oct  4 17:51:17 WeatherPi weewx[10224]:         ****  Generator terminated
>> Oct  4 17:51:17 WeatherPi weewx[10224]: reportengine: Running report RSYNC
>> Oct  4 17:51:17 WeatherPi weewx[10224]: reportengine: Found configuration
>> file /etc/weewx/skins/Rsync/skin.conf for report RSYNC
>> Oct  4 17:51:17 WeatherPi weewx[10224]: rsyncupload: [['rsync',
>> '--archive', '--stats', '-e ssh', '/var/www/html/weewx/',
>> '[email protected]:.']] reported errors: Host key
>> verification failed.. rsync: connection unexpectedly closed (0 bytes
>> received so far) [sender]. rsync error: error in rsync protocol data stream
>> (code 12) at io.c(605) [sender=3.0.9]
>> Oct  4 17:51:17 WeatherPi weewx[10224]: rsyncupload: rsync executed in
>> 0.41 seconds
>>
>>
>> On Monday, 23 October 2017 14:13:14 UTC+1, Geoff Cusick wrote:
>>>
>>> Apologies that (a) I didn't post the solution immediately I found it,
>>> and (b) it's taken me a while to respond.  But I did sort this out.
>>>
>>> The critical step is to set up passwordless SSH access to your FTP
>>> account on 1and1.  To do this, you need to know:
>>>
>>>
>>>    - The server address for your FTP account.  In my case, this is
>>>    something like:
>>>
>>>    homexxxxxxxx.1and1-data.host
>>>
>>>    - The user name for this account, something like uXXXXXX
>>>    - The password for the account.
>>>
>>> The next step is to generate an SSH key pair for your local machine, and
>>> upload the public part to the 1and1 server.  There's a helpful article at
>>> https://linuxconfig.org/passwordless-ssh that sets out the series of
>>> steps.  The location for the ssh-copy-id command is
>>> [email protected]
>>>
>>>
>>> Once you've completed this bit, and verified that you can sss to
>>> [email protected] with no password request, you can
>>> set up weewx to use rsync to transfer the relevant files from weewx to
>>> 1and1.
>>>
>>>
>>> The relevant part of weewx.conf is:
>>>
>>>
>>> ******************
>>>
>>>
>>> [[RSYNC]]
>>>         # rsync'ing to a webserver is treated as just another report
>>>         skin = Rsync
>>>
>>>         # If you wish to use rsync, you must configure passwordless ssh
>>> using
>>>         # public/private key authentication from the user account that
>>> weewx
>>>         # runs as to the user account on the remote machine where the
>>> files
>>>         # will be copied.
>>>         #
>>>         # The following three lines determine where files will be sent.
>>>         #server = replace with the rsync server name, e.g,
>>> www.threefools.org
>>>          server = homexxxxxxxx.1and1-data.host
>>>         #path = replace with the rsync destination directory (e.g.,
>>> /weather)
>>>          path = webroot/weather/
>>>         #user = replace with the rsync username
>>>          user = uXXXXXXX
>>>
>>>         # Rsync can be configured to remove files from the remote server
>>> if
>>>         # they don't exist under HTML_ROOT locally. USE WITH CAUTION: if
>>> you
>>>         # make a mistake in the remote path, you could could
>>> unintentionally
>>>         # cause unrelated files to be deleted. Set to 1 to enable remote
>>> file
>>>         # deletion, zero to allow files to accumulate remotely.
>>>         delete = 0
>>>
>>>
>>>
>>> ***********
>>>
>>> Just to explain, the root for my web server is at /webroot on the1and1
>>> server, and all the weewx files are under weather, below that.  I found
>>> that I had to omit the leading '/' on /webroot.
>>>
>>>
>>> Then you need to stop and restart weewx to implement the change to
>>> weewx.conf.
>>>
>>>
>>> Good luck!!
>>>
>>>
>>> Geoff
>>> On Sunday, 22 October 2017 20:42:12 UTC+1, Robert Isbell wrote:
>>>>
>>>> Andy and Geoff,
>>>> I too am in the same position as Geoff. Is there a "Howto" somewhere
>>>> for setting up rsync to work with 1&1.
>>>>
>>>> On Friday, October 6, 2017 at 3:18:29 PM UTC-7, Geoff Cusick wrote:
>>>>>
>>>>> Andy,
>>>>>
>>>>> I know this was a while back, but can you give me any pointers to
>>>>> setting up rsync between weewx and a 1and1 server - they’ve recently
>>>>> disabled ‘ordinary’ ftp, and my website is stuck on 24 September.
>>>>>
>>>>> Any hints much appreciated.
>>>>>
>>>>> Thanks
>>>>> Geoff
>>>>
>>>>
>>> --
> You received this message because you are subscribed to a topic in the
> Google Groups "weewx-user" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/weewx-user/lC5wFBhg2g8/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to