in questo caso ho fatto una variazione all'ftp cambiando l'indirizzo del server da FTP.meteocollodi.it a www. meteocollodi . it ( l'ho scritto cosi' senno' il messaggio me lo trasforma nel link )e la cartella di destinazione l'ho nominata weewx sul mio sito di aruba.
Per fare le modifiche al file utilizzo winscp e una volta fatta la modifica da putty eseguo il comando: sudo service weewx stop / sudo service weewx start per fargli accettare la modifica.
----
pi@raspberrypi:~ $ tail -f /var/log/syslog
Feb 19 12:23:00 raspberrypi weewxd[6948]: INFO weewx.restx: CWOP: Data for station IK5SRE will be posted
Feb 19 12:23:00 raspberrypi weewxd[6948]: INFO weewx.restx: WOW: Posting not enabled.
Feb 19 12:23:00 raspberrypi weewxd[6948]: INFO weewx.restx: AWEKAS: Posting not enabled.
Feb 19 12:23:00 raspberrypi weewxd[6948]: INFO weewx.engine: 'pyephem' detected, extended almanac data is available
Feb 19 12:23:00 raspberrypi weewxd[6948]: INFO __main__: Starting up weewx version 5.0.2
Feb 19 12:23:01 raspberrypi weewxd[6948]: INFO weewx.engine: Clock error is 0.81 seconds (positive is fast)
Feb 19 12:23:01 raspberrypi weewxd[6948]: INFO weewx.engine: Using binding 'wx_binding' to database 'weewx.sdb'
Feb 19 12:23:01 raspberrypi weewxd[6948]: INFO weewx.manager: Starting backfill of daily summaries
Feb 19 12:23:01 raspberrypi weewxd[6948]: INFO weewx.manager: Daily summaries up to date
Feb 19 12:23:01 raspberrypi weewxd[6948]: INFO weewx.engine: Starting main packet loop.
Feb 19 12:25:16 raspberrypi weewxd[6948]: INFO weewx.manager: Added record 2024-02-19 12:25:00 CET (1708341900) to database 'weewx.sdb'
Feb 19 12:25:16 raspberrypi weewxd[6948]: INFO weewx.manager: Added record 2024-02-19 12:25:00 CET (1708341900) to daily summary in 'weewx.sdb'
Feb 19 12:25:17 raspberrypi weewxd[6948]: INFO weewx.restx: CWOP: Published record 2024-02-19 12:25:00 CET (1708341900)
Feb 19 12:25:21 raspberrypi weewxd[6948]: INFO weewx.cheetahgenerator: Generated 8 files for report SeasonsReport in 4.56 seconds
Feb 19 12:25:23 raspberrypi weewxd[6948]: INFO weewx.imagegenerator: Generated 15 images for report SeasonsReport in 1.59 seconds
Feb 19 12:25:23 raspberrypi weewxd[6948]: INFO weewx.reportengine: Copied 5 files to /var/www/html/weewx
Feb 19 12:25:43 raspberrypi weewxd[6948]: ERROR weewx.reportengine: ftpgenerator: (0): caught exception '<class 'socket.timeout'>': timed out
Feb 19 12:25:43 raspberrypi weewxd[6948]: ERROR weewx.reportengine: **** Traceback (most recent call last):
Feb 19 12:25:43 raspberrypi weewxd[6948]: ERROR weewx.reportengine: **** File "/usr/share/weewx/weewx/reportengine.py", line 461, in run
Feb 19 12:25:43 raspberrypi weewxd[6948]: ERROR weewx.reportengine: **** n = ftp_data.run()
Feb 19 12:25:43 raspberrypi weewxd[6948]: ERROR weewx.reportengine: **** File "/usr/share/weewx/weeutil/ftpupload.py", line 166, in run
Feb 19 12:25:43 raspberrypi weewxd[6948]: ERROR weewx.reportengine: **** ftp_server.connect(self.server, self.port)
Feb 19 12:25:43 raspberrypi weewxd[6948]: ERROR weewx.reportengine: **** File "/usr/lib/python3.9/ftplib.py", line 156, in connect
Feb 19 12:25:43 raspberrypi weewxd[6948]: ERROR weewx.reportengine: **** self.sock = socket.create_connection((self.host, self.port), self.timeout,
Feb 19 12:25:43 raspberrypi weewxd[6948]: ERROR weewx.reportengine: **** File "/usr/lib/python3.9/socket.py", line 843, in create_connection
Feb 19 12:25:43 raspberrypi weewxd[6948]: ERROR weewx.reportengine: **** raise err
Feb 19 12:25:43 raspberrypi weewxd[6948]: ERROR weewx.reportengine: **** File "/usr/lib/python3.9/socket.py", line 831, in create_connection
Feb 19 12:25:43 raspberrypi weewxd[6948]: ERROR weewx.reportengine: **** sock.connect(sa)
Feb 19 12:25:43 raspberrypi weewxd[6948]: ERROR weewx.reportengine: **** socket.timeout: timed out
Feb 19 12:26:03 raspberrypi weewxd[6948]: ERROR weewx.reportengine: ftpgenerator: (1): caught exception '<class 'socket.timeout'>': timed out
Feb 19 12:26:03 raspberrypi weewxd[6948]: ERROR weewx.reportengine: **** Traceback (most recent call last):
Feb 19 12:26:03 raspberrypi weewxd[6948]: ERROR weewx.reportengine: **** File "/usr/share/weewx/weewx/reportengine.py", line 461, in run
Feb 19 12:26:03 raspberrypi weewxd[6948]: ERROR weewx.reportengine: **** n = ftp_data.run()
Feb 19 12:26:03 raspberrypi weewxd[6948]: ERROR weewx.reportengine: **** File "/usr/share/weewx/weeutil/ftpupload.py", line 166, in run
Feb 19 12:26:03 raspberrypi weewxd[6948]: ERROR weewx.reportengine: **** ftp_server.connect(self.server, self.port)
Feb 19 12:26:03 raspberrypi weewxd[6948]: ERROR weewx.reportengine: **** File "/usr/lib/python3.9/ftplib.py", line 156, in connect
Feb 19 12:26:03 raspberrypi weewxd[6948]: ERROR weewx.reportengine: **** self.sock = socket.create_connection((self.host, self.port), self.timeout,
Feb 19 12:26:03 raspberrypi weewxd[6948]: ERROR weewx.reportengine: **** File "/usr/lib/python3.9/socket.py", line 843, in create_connection
Feb 19 12:26:03 raspberrypi weewxd[6948]: ERROR weewx.reportengine: **** raise err
Feb 19 12:26:03 raspberrypi weewxd[6948]: ERROR weewx.reportengine: **** File "/usr/lib/python3.9/socket.py", line 831, in create_connection
Feb 19 12:26:03 raspberrypi weewxd[6948]: ERROR weewx.reportengine: **** sock.connect(sa)
Feb 19 12:26:03 raspberrypi weewxd[6948]: ERROR weewx.reportengine: **** socket.timeout: timed out
Ultima modifica di cirrus.frank; 19/02/2024 alle 12:43
Questo invece e' il log generato utilizzando come indirizzo del server ftp.meteocollodi.it
pi@raspberrypi:~ $ tail -f /var/log/syslog
Feb 19 12:32:43 raspberrypi weewxd[6989]: INFO weewx.restx: CWOP: Data for station IK5SRE will be posted
Feb 19 12:32:43 raspberrypi weewxd[6989]: INFO weewx.restx: WOW: Posting not enabled.
Feb 19 12:32:43 raspberrypi weewxd[6989]: INFO weewx.restx: AWEKAS: Posting not enabled.
Feb 19 12:32:43 raspberrypi weewxd[6989]: INFO weewx.engine: 'pyephem' detected, extended almanac data is available
Feb 19 12:32:43 raspberrypi weewxd[6989]: INFO __main__: Starting up weewx version 5.0.2
Feb 19 12:32:43 raspberrypi weewxd[6989]: INFO weewx.engine: Clock error is 0.18 seconds (positive is fast)
Feb 19 12:32:43 raspberrypi weewxd[6989]: INFO weewx.engine: Using binding 'wx_binding' to database 'weewx.sdb'
Feb 19 12:32:43 raspberrypi weewxd[6989]: INFO weewx.manager: Starting backfill of daily summaries
Feb 19 12:32:43 raspberrypi weewxd[6989]: INFO weewx.manager: Daily summaries up to date
Feb 19 12:32:44 raspberrypi weewxd[6989]: INFO weewx.engine: Starting main packet loop.
Feb 19 12:35:16 raspberrypi weewxd[6989]: INFO weewx.manager: Added record 2024-02-19 12:35:00 CET (1708342500) to database 'weewx.sdb'
Feb 19 12:35:16 raspberrypi weewxd[6989]: INFO weewx.manager: Added record 2024-02-19 12:35:00 CET (1708342500) to daily summary in 'weewx.sdb'
Feb 19 12:35:18 raspberrypi weewxd[6989]: INFO weewx.restx: CWOP: Published record 2024-02-19 12:35:00 CET (1708342500)
Feb 19 12:35:21 raspberrypi weewxd[6989]: INFO weewx.cheetahgenerator: Generated 8 files for report SeasonsReport in 4.58 seconds
Feb 19 12:35:23 raspberrypi weewxd[6989]: INFO weewx.imagegenerator: Generated 15 images for report SeasonsReport in 1.59 seconds
Feb 19 12:35:23 raspberrypi weewxd[6989]: INFO weewx.reportengine: Copied 5 files to /var/www/html/weewx
Feb 19 12:35:23 raspberrypi weewxd[6989]: ERROR weeutil.ftpupload: Failed uploading /var/www/html/weewx/yearhum.png to server ftp.meteocollodi.it. Reason: '553 Can't open that file: No such file or directory'
Feb 19 12:35:24 raspberrypi weewxd[6989]: ERROR weewx.reportengine: ftpgenerator: (0): caught exception '<class 'ftplib.error_perm'>': 553 Can't open that file: No such file or directory
Feb 19 12:35:24 raspberrypi weewxd[6989]: ERROR weewx.reportengine: **** Traceback (most recent call last):
Feb 19 12:35:24 raspberrypi weewxd[6989]: ERROR weewx.reportengine: **** File "/usr/share/weewx/weewx/reportengine.py", line 461, in run
Feb 19 12:35:24 raspberrypi weewxd[6989]: ERROR weewx.reportengine: **** n = ftp_data.run()
Feb 19 12:35:24 raspberrypi weewxd[6989]: ERROR weewx.reportengine: **** File "/usr/share/weewx/weeutil/ftpupload.py", line 208, in run
Feb 19 12:35:24 raspberrypi weewxd[6989]: ERROR weewx.reportengine: **** ftp_server.storbinary(stor_cmd, fd)
Feb 19 12:35:24 raspberrypi weewxd[6989]: ERROR weewx.reportengine: **** File "/usr/lib/python3.9/ftplib.py", line 491, in storbinary
Feb 19 12:35:24 raspberrypi weewxd[6989]: ERROR weewx.reportengine: **** with self.transfercmd(cmd, rest) as conn:
Feb 19 12:35:24 raspberrypi weewxd[6989]: ERROR weewx.reportengine: **** File "/usr/lib/python3.9/ftplib.py", line 386, in transfercmd
Feb 19 12:35:24 raspberrypi weewxd[6989]: ERROR weewx.reportengine: **** return self.ntransfercmd(cmd, rest)[0]
Feb 19 12:35:24 raspberrypi weewxd[6989]: ERROR weewx.reportengine: **** File "/usr/lib/python3.9/ftplib.py", line 352, in ntransfercmd
Feb 19 12:35:24 raspberrypi weewxd[6989]: ERROR weewx.reportengine: **** resp = self.sendcmd(cmd)
Feb 19 12:35:24 raspberrypi weewxd[6989]: ERROR weewx.reportengine: **** File "/usr/lib/python3.9/ftplib.py", line 279, in sendcmd
Feb 19 12:35:24 raspberrypi weewxd[6989]: ERROR weewx.reportengine: **** return self.getresp()
Feb 19 12:35:24 raspberrypi weewxd[6989]: ERROR weewx.reportengine: **** File "/usr/lib/python3.9/ftplib.py", line 252, in getresp
Feb 19 12:35:24 raspberrypi weewxd[6989]: ERROR weewx.reportengine: **** raise error_perm(resp)
Feb 19 12:35:24 raspberrypi weewxd[6989]: ERROR weewx.reportengine: **** ftplib.error_perm: 553 Can't open that file: No such file or directory
Feb 19 12:35:24 raspberrypi weewxd[6989]: ERROR weeutil.ftpupload: Failed uploading /var/www/html/weewx/yearhum.png to server ftp.meteocollodi.it. Reason: '553 Can't open that file: No such file or directory'
Feb 19 12:35:24 raspberrypi weewxd[6989]: ERROR weewx.reportengine: ftpgenerator: (1): caught exception '<class 'ftplib.error_perm'>': 553 Can't open that file: No such file or directory
Feb 19 12:35:24 raspberrypi weewxd[6989]: ERROR weewx.reportengine: **** Traceback (most recent call last):
Feb 19 12:35:24 raspberrypi weewxd[6989]: ERROR weewx.reportengine: **** File "/usr/share/weewx/weewx/reportengine.py", line 461, in run
Feb 19 12:35:24 raspberrypi weewxd[6989]: ERROR weewx.reportengine: **** n = ftp_data.run()
Feb 19 12:35:24 raspberrypi weewxd[6989]: ERROR weewx.reportengine: **** File "/usr/share/weewx/weeutil/ftpupload.py", line 208, in run
Feb 19 12:35:24 raspberrypi weewxd[6989]: ERROR weewx.reportengine: **** ftp_server.storbinary(stor_cmd, fd)
Feb 19 12:35:24 raspberrypi weewxd[6989]: ERROR weewx.reportengine: **** File "/usr/lib/python3.9/ftplib.py", line 491, in storbinary
Feb 19 12:35:24 raspberrypi weewxd[6989]: ERROR weewx.reportengine: **** with self.transfercmd(cmd, rest) as conn:
Feb 19 12:35:24 raspberrypi weewxd[6989]: ERROR weewx.reportengine: **** File "/usr/lib/python3.9/ftplib.py", line 386, in transfercmd
Feb 19 12:35:24 raspberrypi weewxd[6989]: ERROR weewx.reportengine: **** return self.ntransfercmd(cmd, rest)[0]
Feb 19 12:35:24 raspberrypi weewxd[6989]: ERROR weewx.reportengine: **** File "/usr/lib/python3.9/ftplib.py", line 352, in ntransfercmd
Feb 19 12:35:24 raspberrypi weewxd[6989]: ERROR weewx.reportengine: **** resp = self.sendcmd(cmd)
Feb 19 12:35:24 raspberrypi weewxd[6989]: ERROR weewx.reportengine: **** File "/usr/lib/python3.9/ftplib.py", line 279, in sendcmd
Feb 19 12:35:24 raspberrypi weewxd[6989]: ERROR weewx.reportengine: **** return self.getresp()
Feb 19 12:35:24 raspberrypi weewxd[6989]: ERROR weewx.reportengine: **** File "/usr/lib/python3.9/ftplib.py", line 252, in getresp
Feb 19 12:35:24 raspberrypi weewxd[6989]: ERROR weewx.reportengine: **** raise error_perm(resp)
Feb 19 12:35:24 raspberrypi weewxd[6989]: ERROR weewx.reportengine: **** ftplib.error_perm: 553 Can't open that file: No such file or directory
Feb 19 12:35:25 raspberrypi weewxd[6989]: ERROR weeutil.ftpupload: Failed uploading /var/www/html/weewx/yearhum.png to server ftp.meteocollodi.it. Reason: '553 Can't open that file: No such file or directory'
Feb 19 12:35:25 raspberrypi weewxd[6989]: ERROR weewx.reportengine: ftpgenerator: (2): caught exception '<class 'ftplib.error_perm'>': 553 Can't open that file: No such file or directory
Feb 19 12:35:25 raspberrypi weewxd[6989]: ERROR weewx.reportengine: **** Traceback (most recent call last):
Feb 19 12:35:25 raspberrypi weewxd[6989]: ERROR weewx.reportengine: **** File "/usr/share/weewx/weewx/reportengine.py", line 461, in run
Feb 19 12:35:25 raspberrypi weewxd[6989]: ERROR weewx.reportengine: **** n = ftp_data.run()
Feb 19 12:35:25 raspberrypi weewxd[6989]: ERROR weewx.reportengine: **** File "/usr/share/weewx/weeutil/ftpupload.py", line 208, in run
Feb 19 12:35:25 raspberrypi weewxd[6989]: ERROR weewx.reportengine: **** ftp_server.storbinary(stor_cmd, fd)
Feb 19 12:35:25 raspberrypi weewxd[6989]: ERROR weewx.reportengine: **** File "/usr/lib/python3.9/ftplib.py", line 491, in storbinary
Feb 19 12:35:25 raspberrypi weewxd[6989]: ERROR weewx.reportengine: **** with self.transfercmd(cmd, rest) as conn:
Feb 19 12:35:25 raspberrypi weewxd[6989]: ERROR weewx.reportengine: **** File "/usr/lib/python3.9/ftplib.py", line 386, in transfercmd
Feb 19 12:35:25 raspberrypi weewxd[6989]: ERROR weewx.reportengine: **** return self.ntransfercmd(cmd, rest)[0]
Feb 19 12:35:25 raspberrypi weewxd[6989]: ERROR weewx.reportengine: **** File "/usr/lib/python3.9/ftplib.py", line 352, in ntransfercmd
Feb 19 12:35:25 raspberrypi weewxd[6989]: ERROR weewx.reportengine: **** resp = self.sendcmd(cmd)
Feb 19 12:35:25 raspberrypi weewxd[6989]: ERROR weewx.reportengine: **** File "/usr/lib/python3.9/ftplib.py", line 279, in sendcmd
Feb 19 12:35:25 raspberrypi weewxd[6989]: ERROR weewx.reportengine: **** return self.getresp()
Feb 19 12:35:25 raspberrypi weewxd[6989]: ERROR weewx.reportengine: **** File "/usr/lib/python3.9/ftplib.py", line 252, in getresp
Feb 19 12:35:25 raspberrypi weewxd[6989]: ERROR weewx.reportengine: **** raise error_perm(resp)
Feb 19 12:35:25 raspberrypi weewxd[6989]: ERROR weewx.reportengine: **** ftplib.error_perm: 553 Can't open that file: No such file or directory
Feb 19 12:35:25 raspberrypi weewxd[6989]: ERROR weewx.reportengine: ftpgenerator: Upload failed
Dovrebbe essere corretto utilizzare l'indirizzo ftp.meteocollodi.it. Ma esiste la cartella Davis2 nello spazio ftp di ftp.meteocollodi.it?
Si esiste
Ci sono riuscito, dovevo mettere come path www. meteocollodi.it/weewx
ecco qui la pagina
Collodi Pescia Italia
Se riuscissi anche a recuperare l'archivio dei dati dalla scheda sd che si e' corrotta nello sheeva sarei a buon punto.
Grazie per l'aiuto
Per caso caricavi i dati anche su Weather Underground? Perché weewx ha una funzione per recuperare gli storici da weather underground mi pare.
Si i dati li invio anche li. Una volta avevo il salvataggio automatico su una cartella del sito dell'archivio generato da Wviev, pero' ho una copia solo fino a febbraio 2022 ( avevo dovuto ricaricare il SO sullo sheeva e probabilmente mi ero dimenticato di ricreare il file per l'upload al sito dell'archivio).
Purtroppo la SD che avevo dentro allo sheeva non riesco a vederla,li avrei l'archivio completo. Speriamo sia compatibile quello di weather undreground.
Ecco qua dei riferimenti Introduction - WeeWX 5.0
Ciao,
e' incredibile come ogni volta che provo a fare qualcosa debbo trovare un ostacolo. Ieri volevo installare le skin di sofaskin. Ho seguito le istruzioni installando i vari file ,pero' non sono riuscito ad installare l'ultimo file,quello historygeneretor.py . Utilizzo winspc ma quando provo a copiarlo nella cartella mi da' un errore 3 Permesso negato. Ho fatto vari tentativi ma non riesco a copiarlo.
Devo attivare qualche funzione particolare ?
Ora provo ad installare gli skin di neowx,vediamo se con questi ci riesco .
Ultima modifica di cirrus.frank; 22/02/2024 alle 11:05
Niente da fare,anche con questo skin ho degli errori,strano perche' i file ci sono a quei link. Posto il log:
pi@raspberrypi:~ $ tail -f /var/log/syslog
Feb 22 11:00:07 raspberrypi weewxd[16922]: INFO weewx.engine: 'pyephem' detected, extended almanac data is available
Feb 22 11:00:07 raspberrypi weewxd[16922]: INFO __main__: Starting up weewx version 5.0.2
Feb 22 11:00:08 raspberrypi weewxd[16922]: INFO weewx.engine: Clock error is 0.98 seconds (positive is fast)
Feb 22 11:00:08 raspberrypi weewxd[16922]: INFO weewx.engine: Using binding 'wx_binding' to database 'weewx.sdb'
Feb 22 11:00:08 raspberrypi weewxd[16922]: INFO weewx.manager: Starting backfill of daily summaries
Feb 22 11:00:08 raspberrypi weewxd[16922]: INFO weewx.manager: Daily summaries up to date
Feb 22 11:00:08 raspberrypi weewxd[16922]: INFO weewx.manager: Added record 2024-02-22 11:00:00 CET (1708596000) to database 'weewx.sdb'
Feb 22 11:00:08 raspberrypi weewxd[16922]: INFO weewx.manager: Added record 2024-02-22 11:00:00 CET (1708596000) to daily summary in 'weewx.sdb'
Feb 22 11:00:08 raspberrypi weewxd[16922]: INFO weewx.engine: Starting main packet loop.
Feb 22 11:00:09 raspberrypi weewxd[16922]: INFO weewx.restx: CWOP: Published record 2024-02-22 11:00:00 CET (1708596000)
Feb 22 11:05:16 raspberrypi weewxd[16922]: INFO weewx.manager: Added record 2024-02-22 11:05:00 CET (1708596300) to database 'weewx.sdb'
Feb 22 11:05:16 raspberrypi weewxd[16922]: INFO weewx.manager: Added record 2024-02-22 11:05:00 CET (1708596300) to daily summary in 'weewx.sdb'
Feb 22 11:05:16 raspberrypi weewxd[16922]: Exception in thread ReportThread:
Feb 22 11:05:16 raspberrypi weewxd[16922]: Traceback (most recent call last):
Feb 22 11:05:16 raspberrypi weewxd[16922]: File "/usr/lib/python3.9/threading.py", line 954, in _bootstrap_inner
Feb 22 11:05:16 raspberrypi weewxd[16922]: self.run()
Feb 22 11:05:16 raspberrypi weewxd[16922]: File "/usr/share/weewx/weewx/reportengine.py", line 192, in run
Feb 22 11:05:16 raspberrypi weewxd[16922]: with set_cwd(os.path.join(self.config_dict['WEEWX_ROOT'],
Feb 22 11:05:16 raspberrypi weewxd[16922]: File "/usr/lib/python3.9/contextlib.py", line 117, in __enter__
Feb 22 11:05:16 raspberrypi weewxd[16922]: return next(self.gen)
Feb 22 11:05:16 raspberrypi weewxd[16922]: File "/usr/share/weewx/weewx/reportengine.py", line 73, in set_cwd
Feb 22 11:05:16 raspberrypi weewxd[16922]: os.chdir(new_cwd)
Feb 22 11:05:16 raspberrypi weewxd[16922]: FileNotFoundError: [Errno 2] No such file or directory: '/etc/weewx/neowx-material/Seasons'
----
l'ultimo errore "Seasons" non esiste,ma lo devo creare io ? e che estensione ha ?
Gli altri invece sembrerebbero dei comandi sbagliati su delle linee dei file o sbaglio ? non conoscendo linux non so se nella linea viene indicato che tipo di comando inserire,perche' se entro nei file vedo che ci sono delle opzioni.
Con lo skin originale di weewx funziona tutto perfettamente generando i file mentre con questo non mi genera nulla,probabilmente a causa di questi errori sui file?
Ho installato i file in modo manuale utilizzando WINscp
Ultima modifica di cirrus.frank; 22/02/2024 alle 12:06
Segnalibri