[weewx-user] Re: MQTT and SD Card
Thank you for your replies. In my case the loop is every 2.5 seconds and I thought that every loop was written in the card. I am working with a Raspberry Pi as you can imagine. Now I have clear that it is not like that. Maybe I'll give MQTT an opportunity and learn something else :-) Best regards (Sorry for my English) -- 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/dc3eba15-3e78-49bd-81bf-97e7e7c5cba6%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[weewx-user] SFTP on WeeWX
Hi I have tried to configure https://github.com/matthewwall/weewx-sftp on WeeWX 3.9.1 but I am not able to make it work as it is supposed to. Nothing happens. Does anyone with similar problem? If someone have had success with this configuration I would like to know how achieved it with a step-by-step guide. thank you. -- 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/4b4229cd-2a92-454a-8ad4-f00de142ec8d%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[weewx-user] Re: SFTP on WeeWX
Jul 19 10:35:32 raspberrypi weewx[19541]: reportengine: Caught unrecoverable exception in generator 'user.sftp.SFTPGenerator' Jul 19 10:35:32 raspberrypi weewx[19541]: [Errno 2] No such file Jul 19 10:35:32 raspberrypi weewx[19541]: Traceback (most recent call last): Jul 19 10:35:32 raspberrypi weewx[19541]: File "/usr/share/weewx/weewx/reportengine.py", line 204, in run Jul 19 10:35:32 raspberrypi weewx[19541]: obj.start() Jul 19 10:35:32 raspberrypi weewx[19541]: File "/usr/share/weewx/weewx/reportengine.py", line 300, in start Jul 19 10:35:32 raspberrypi weewx[19541]: self.run() Jul 19 10:35:32 raspberrypi weewx[19541]: File "/usr/share/weewx/user/sftp.py", line 233, in run Jul 19 10:35:32 raspberrypi weewx[19541]: n = uploader.run () Jul 19 10:35:32 raspberrypi weewx[19541]: File "/usr/share/weewx/user/sftp.py", line 98, in run Jul 19 10:35:32 raspberrypi weewx[19541]: self. _make_remote_dir(con, remote_dir_path) Jul 19 10:35:32 raspberrypi weewx[19541]: File "/usr/share/weewx/user/sftp.py", line 161, in _make_remote_dir Jul 19 10:35:32 raspberrypi weewx[19541]: con.mkdir( remote_dir_path) Jul 19 10:35:32 raspberrypi weewx[19541]: File "/usr/local/lib/python2.7/dist-packages/pysftp/__init__.py", line 626, in mkdir Jul 19 10:35:32 raspberrypi weewx[19541]: self._sftp.mkdir (remotepath, mode=int(str(mode), 8)) Jul 19 10:35:32 raspberrypi weewx[19541]: File "/usr/local/lib/python2.7/dist-packages/paramiko/sftp_client.py", line 460, in mkdir Jul 19 10:35:32 raspberrypi weewx[19541]: self._request( CMD_MKDIR, path, attr) Jul 19 10:35:32 raspberrypi weewx[19541]: File "/usr/local/lib/python2.7/dist-packages/paramiko/sftp_client.py", line 813, in _request Jul 19 10:35:32 raspberrypi weewx[19541]: return self. _read_response(num) Jul 19 10:35:32 raspberrypi weewx[19541]: File "/usr/local/lib/python2.7/dist-packages/paramiko/sftp_client.py", line 865, in _read_response Jul 19 10:35:32 raspberrypi weewx[19541]: self. _convert_status(msg) Jul 19 10:35:32 raspberrypi weewx[19541]: File "/usr/local/lib/python2.7/dist-packages/paramiko/sftp_client.py", line 894, in _convert_status Jul 19 10:35:32 raspberrypi weewx[19541]: raise IOError( errno.ENOENT, text) Jul 19 10:35:32 raspberrypi weewx[19541]: IOError: [Errno 2] No such file Jul 19 10:35:32 raspberrypi weewx[19541]: Generator terminated This is what I found in log El viernes, 19 de julio de 2019, 2:28:08 (UTC+2), Pat escribió: > > Anything in the logs? > > > -- 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/5ce5ee4e-016f-4f21-8971-ecc5cc24d689%40googlegroups.com.
[weewx-user] Re: SFTP on WeeWX
after debug = 1 this is the log (attached) El viernes, 19 de julio de 2019, 11:00:22 (UTC+2), gjr80 escribió: > > Hi, > > Looks like an invalid path may have been specified. A bit more log will > help. Can you edit weewx.conf, set debug = 1, save weewx.conf and then > restart WeeWX. Let WeeWX run for at least 10 minutes and then post the log > from when you restarted WeeWX covering the full 10 minutes; don’t truncate > the start of the log, this shows a lot of config info. Would also help to > see your [[SFTP]] stanza under [StdReport] in weewx.conf. Just make sure > you remove any passwords or other sensitive info before posting. > > Gary -- 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/f6ac1dcf-cc82-42dd-8523-36fce322c901%40googlegroups.com.
[weewx-user] Re: SFTP on WeeWX
this is how SFTP looks like under stdreport at first installation. The password is written in quotes, do I have to delete these quotes and let password = replace_me or password = 'replace_me' or password =' "replace_me" ' ? [[sftp]] server = replace with the sftp server name user = replace_me skin = sftp path = replace with the sftp destination path password = '"replace_me"' port = 22 Anyway the log file is similar as posted this morning. I can see that SFTP connects to server but cannot finish the work due to same error code above posted El viernes, 19 de julio de 2019, 11:00:22 (UTC+2), gjr80 escribió: > > Hi, > > Looks like an invalid path may have been specified. A bit more log will > help. Can you edit weewx.conf, set debug = 1, save weewx.conf and then > restart WeeWX. Let WeeWX run for at least 10 minutes and then post the log > from when you restarted WeeWX covering the full 10 minutes; don’t truncate > the start of the log, this shows a lot of config info. Would also help to > see your [[SFTP]] stanza under [StdReport] in weewx.conf. Just make sure > you remove any passwords or other sensitive info before posting. > > Gary -- 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/ba0d7aae-e563-4f1d-9ac5-8fda069ebc5f%40googlegroups.com.
[weewx-user] Re: SFTP on WeeWX
Hi thanks for your help.I was finally able to communicate two nodes with SFTP. I was trying many solutions, but finally I found what suit my needs. I decided to start from scratch. After a trial and error process I found the solution that really suit my needs: sudo apt-get install python-pip pip install --user -U setuptools sudo pip install --upgrade pip sudo apt-get install libffi-dev #this package did not appears when first installation was made. sudo pip install pysftp El viernes, 19 de julio de 2019, 1:21:54 (UTC+2), Chema S. escribió: > > Hi > > I have tried to configure https://github.com/matthewwall/weewx-sftp on > WeeWX 3.9.1 but I am not able to make it work as it is supposed to. Nothing > happens. Does anyone with similar problem? > > If someone have had success with this configuration I would like to know > how achieved it with a step-by-step guide. > > thank you. > -- 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/b8807b90-a223-4b29-9a06-57df4e281959%40googlegroups.com.