Titolo: Re: Orange Pi Lite + La Crosse WS2300 + WeeWX (CumulusMX): la guida definitiva
Prova così...
- $ export LANGUAGE=en_US.UTF-8
- $ export LANG=en_US.UTF-8
- $ export LC_ALL=en_US.UTF-8
- $ locale-gen en_US.UTF-8
- $ dpkg-reconfigure locales
ho fatto,pare sparito

Ottimo, meglio così! :ok:
Titolo: Re: Orange Pi Lite + La Crosse WS2300 + WeeWX (CumulusMX): La Guida Definitiva
Prova così...
- $ export LANGUAGE=en_US.UTF-8
- $ export LANG=en_US.UTF-8
- $ export LC_ALL=en_US.UTF-8
- $ locale-gen en_US.UTF-8
- $ dpkg-reconfigure locales
ho fatto,pare sparito

Ottimo, meglio così! :ok:
ma non vedo nulla su ipraspb/meteo/ oppure /weewx ecc..ecc..
Titolo: Re: Orange Pi Lite + La Crosse WS2300 + WeeWX (CumulusMX): la guida definitiva
Hai controllato nella cartella public_html di Weewx?
Titolo: Re: Orange Pi Lite + La Crosse WS2300 + WeeWX (CumulusMX): la guida definitiva
Dovresti trovarla in /home/weewx/public_html
Titolo: Re: Orange Pi Lite + La Crosse WS2300 + WeeWX (CumulusMX): La Guida Definitiva
Dovresti trovarla in /home/weewx/public_html
non c'e,forse non l'ho installata ? i passaggi li ho seguiti tutti credo :D

Titolo: Re: Orange Pi Lite + La Crosse WS2300 + WeeWX (CumulusMX): la guida definitiva
No, non c'è, ma evidentemente non te l'ha creata perché c'è qualche problema... la stazione l'hai configurata correttamente? Controlla il file log nella cartella /var/log. Evidentemente qualcosa non è andato a buon fine...
Titolo: Re: Orange Pi Lite + La Crosse WS2300 + WeeWX (CumulusMX): La Guida Definitiva
No, non c'è, ma evidentemente non te l'ha creata perché c'è qualche problema... la stazione l'hai configurata correttamente? Controlla il file log nella cartella /var/log. Evidentemente qualcosa non è andato a buon fine...
nella cartella /var/log ci sono una marea di file e cartelle

Titolo: Re: Orange Pi Lite + La Crosse WS2300 + WeeWX (CumulusMX): La Guida Definitiva
ora c'e'!! ho dovuto fare questa modifica (grazie a un noto forum)
Apri e modifica questo file weewx.cfg che si trova in /home/weewx/
cerca queste righe:
[[FTP]]
# FTP'ing the results to a webserver is treated as just another report,
# albeit one with an unusual report generator!
skin = Ftp
# If you wish to use FTP, uncomment and fill out the next four lines.
#user = replace with the ftp username
#password = replace with the ftp password
#server = replace with the ftp server name, e.g, Home
#path = replace with the ftp destination directory (e.g., /weather)
cancella i # rossi (serve ad attivare l'invio) e configura per Aruba le credenziali di accesso.
Se tutto è configurato dovrebbe scaricarti sul sito di Aruba tutti i files che hai in /home/weewx/public_html
Titolo: Re: Orange Pi Lite + La Crosse WS2300 + WeeWX (CumulusMX): La Guida Definitiva
pero' non si aggiornano i dati
Titolo: Re: Orange Pi Lite + La Crosse WS2300 + WeeWX (CumulusMX): la guida definitiva
Non si aggiornano sul sito (server) o non si aggiornano nemmeno sulla cartella del Raspberry?
Nella carella /log cerca il syslog o il weewx.log per vedere eventuali errori.
Titolo: Re: Orange Pi Lite + La Crosse WS2300 + WeeWX (CumulusMX): La Guida Definitiva
sulla cartella del raspberry si,sul server non saprei :ohno: :mrgreen:
ecco log/syslog
Jun 29 07:00:56 raspberrypi weewx[10299]: manager: Added record 2018-06-29 07:00:00 CEST (1530248400) to database 'weewx.sdb'
Jun 29 07:00:56 raspberrypi weewx[10299]: manager: Added record 2018-06-29 07:00:00 CEST (1530248400) to daily summary in 'weewx.sdb'
Jun 29 07:00:58 raspberrypi weewx[10299]: cheetahgenerator: Generated 14 files for report StandardReport in 2.05 seconds
Jun 29 07:01:02 raspberrypi weewx[10299]: imagegenerator: Generated 24 images for StandardReport in 4.00 seconds
Jun 29 07:01:02 raspberrypi weewx[10299]: copygenerator: copied 0 files to /home/weewx/public_html
Jun 29 07:01:02 raspberrypi weewx[10299]: reportengine: Caught unrecoverable exception in generator weewx.reportengine.FtpGenerator
Jun 29 07:01:02 raspberrypi weewx[10299]: **** getaddrinfo() argument 1 must be string or None
Jun 29 07:01:02 raspberrypi weewx[10299]: **** Traceback (most recent call last):
Jun 29 07:01:02 raspberrypi weewx[10299]: **** File "/home/weewx/bin/weewx/reportengine.py", line 239, in run
Jun 29 07:01:02 raspberrypi weewx[10299]: **** obj.start()
Jun 29 07:01:02 raspberrypi weewx[10299]: **** File "/home/weewx/bin/weewx/reportengine.py", line 273, in start
Jun 29 07:01:02 raspberrypi weewx[10299]: **** self.run()
Jun 29 07:01:02 raspberrypi weewx[10299]: **** File "/home/weewx/bin/weewx/reportengine.py", line 325, in run
Jun 29 07:01:02 raspberrypi weewx[10299]: **** n = ftp_data.run()
Jun 29 07:01:02 raspberrypi weewx[10299]: **** File "/home/weewx/bin/weeutil/ftpupload.py", line 102, in run
Jun 29 07:01:02 raspberrypi weewx[10299]: **** ftp_server.connect(self.server, self.port)
Jun 29 07:01:02 raspberrypi weewx[10299]: **** File "/usr/lib/python2.7/ftplib.py", line 135, in connect
Jun 29 07:01:02 raspberrypi weewx[10299]: **** self.sock = socket.create_connection((self.host, self.port), self.timeout)
Jun 29 07:01:02 raspberrypi weewx[10299]: **** File "/usr/lib/python2.7/socket.py", line 553, in create_connection
Jun 29 07:01:02 raspberrypi weewx[10299]: **** for res in getaddrinfo(host, port, 0, SOCK_STREAM):
Jun 29 07:01:02 raspberrypi weewx[10299]: **** TypeError: getaddrinfo() argument 1 must be string or None
Jun 29 07:01:02 raspberrypi weewx[10299]: **** Generator terminated
Ultima modifica di lb81 il Ven 29 Giu, 2018 07:32, modificato 3 volte in totale
Titolo: Re: Orange Pi Lite + La Crosse WS2300 + WeeWX (CumulusMX): la guida definitiva
Qui si cominciano a fermare le mie competenze... sembrano esserci degli errori credo di configurazione, o in weewx.conf o nel file di configurazione del template skin.conf, però per capirne la causa andrebbe fatta un'analisi un po' più approfondita...cosa non molto semplice a distanza.
Il consiglio che posso darti è di stoppare weewx, riavviarlo, ed analizzare bene il file LOG per capire passo passo i vari errori, partendo dal primo a scendere.
Messaggi: 7 Località: Belluno
Ven 29 Giu, 2018 21:46
Titolo: Re: Orange Pi Lite + La Crosse WS2300 + WeeWX (CumulusMX): La Guida Definitiva
Ciao a tutti, installato tutto e gira alla meraviglia, unica cosa non riesco ad inserire lo skin sofaskin su weewx, quando lo vado a cambiare nel file weewx.conf e inserisco il nuovo skin mi da errore nella compilazione.
Questa è la parte da me cambiata:
-----------------------------------------------------------
[[StandardReport]]
# See the customizing guide to change the units, plot types and line
# colors, modify the fonts, display additional sensor data, and other
# customizations. Many of those changes can be made here by overriding
# parameters, or by modifying templates within the skin itself.
# The StandardReport uses the 'Standard' skin, which contains the
# images, templates and plots for the report.
#skin = Standard
skin = sofaskin
[[[Units]]]
[[[[Groups]]]]
group_altitude = meter
group_speed2 = meter_per_second2
group_pressure = mbar
group_rain = mm
group_rainrate = mm_per_hour
group_temperature = degree_C
group_degree_day = degree_C_day
group_speed = meter_per_second
-----------------------------------------------------------------------------------
questo è l'errore che mi da weewx:
Jun 29 21:44:47 raspberrypi weewx[4716]: **** Traceback (most recent call last):
Jun 29 21:44:47 raspberrypi weewx[4716]: **** File "/home/weewx/bin/weewx/cheetahgenerator.py", line 330, in generate
Jun 29 21:44:47 raspberrypi weewx[4716]: **** print >> _file, compiled_template
Jun 29 21:44:47 raspberrypi weewx[4716]: **** File "/usr/lib/python2.7/dist-packages/Cheetah/Template.py", line 1005, in __str__
Jun 29 21:44:47 raspberrypi weewx[4716]: **** rc = getattr(self, mainMethName)()
Jun 29 21:44:47 raspberrypi weewx[4716]: **** File "_home_weewx_skins_sofaskin_index_html_tmpl.py", line 707, in respond
Jun 29 21:44:47 raspberrypi weewx[4716]: **** NotFound: cannot find 'cameratitle2' while searching for 'Extras.cameratitle2'
Jun 29 21:44:51 raspberrypi weewx[4716]: cheetahgenerator: Generate failed with exception '<class 'NameMapper.NotFound'>'
Jun 29 21:44:51 raspberrypi weewx[4716]: cheetahgenerator: **** Ignoring template /home/weewx/skins/sofaskin/text.php.tmpl
Jun 29 21:44:51 raspberrypi weewx[4716]: cheetahgenerator: **** Reason: cannot find 'cwop' while searching for 'Extras.cwop'
Jun 29 21:44:51 raspberrypi weewx[4716]: **** Traceback (most recent call last):
Jun 29 21:44:51 raspberrypi weewx[4716]: **** File "/home/weewx/bin/weewx/cheetahgenerator.py", line 330, in generate
Jun 29 21:44:51 raspberrypi weewx[4716]: **** print >> _file, compiled_template
Jun 29 21:44:51 raspberrypi weewx[4716]: **** File "/usr/lib/python2.7/dist-packages/Cheetah/Template.py", line 1005, in __str__
Jun 29 21:44:51 raspberrypi weewx[4716]: **** rc = getattr(self, mainMethName)()
Jun 29 21:44:51 raspberrypi weewx[4716]: **** File "_home_weewx_skins_sofaskin_text_php_tmpl.py", line 146, in respond
Jun 29 21:44:51 raspberrypi weewx[4716]: **** NotFound: cannot find 'cwop' while searching for 'Extras.cwop'
Jun 29 21:44:52 raspberrypi weewx[4716]: cheetahgenerator: Generated 8 files for report StandardReport in 11.09 seconds
Jun 29 21:44:56 raspberrypi weewx[4716]: imagegenerator: Generated 11 images for StandardReport in 3.37 seconds
Jun 29 21:44:56 raspberrypi weewx[4716]: copygenerator: copied 9 files to /home/weewx/public_html
Jun 29 21:45:23 raspberrypi weewx[4716]: manager: Added record 2018-06-29 21:45:00 CEST (1530301500) to database 'weewx.sdb'
Jun 29 21:45:23 raspberrypi weewx[4716]: manager: Added record 2018-06-29 21:45:00 CEST (1530301500) to daily summary in 'weewx.sdb'
Jun 29 21:45:23 raspberrypi weewx[4716]: historygenerator.py: Generated 8 tables in 0.15 seconds
Jun 29 21:45:24 raspberrypi weewx[4716]: cheetahgenerator: Generate failed with exception '<class 'NameMapper.NotFound'>'
Jun 29 21:45:24 raspberrypi weewx[4716]: cheetahgenerator: **** Ignoring template /home/weewx/skins/sofaskin/index.html.tmpl
Jun 29 21:45:24 raspberrypi weewx[4716]: cheetahgenerator: **** Reason: cannot find 'cameratitle2' while searching for 'Extras.cameratitle2'
Jun 29 21:45:24 raspberrypi weewx[4716]: **** Traceback (most recent call last):
Jun 29 21:45:24 raspberrypi weewx[4716]: **** File "/home/weewx/bin/weewx/cheetahgenerator.py", line 330, in generate
Jun 29 21:45:24 raspberrypi weewx[4716]: **** print >> _file, compiled_template
Jun 29 21:45:24 raspberrypi weewx[4716]: **** File "/usr/lib/python2.7/dist-packages/Cheetah/Template.py", line 1005, in __str__
Jun 29 21:45:24 raspberrypi weewx[4716]: **** rc = getattr(self, mainMethName)()
Jun 29 21:45:24 raspberrypi weewx[4716]: **** File "_home_weewx_skins_sofaskin_index_html_tmpl.py", line 707, in respond
Jun 29 21:45:24 raspberrypi weewx[4716]: **** NotFound: cannot find 'cameratitle2' while searching for 'Extras.cameratitle2'
Jun 29 21:45:25 raspberrypi weewx[4716]: cheetahgenerator: Generate failed with exception '<class 'NameMapper.NotFound'>'
Jun 29 21:45:25 raspberrypi weewx[4716]: cheetahgenerator: **** Ignoring template /home/weewx/skins/sofaskin/text.php.tmpl
Jun 29 21:45:25 raspberrypi weewx[4716]: cheetahgenerator: **** Reason: cannot find 'cwop' while searching for 'Extras.cwop'
Jun 29 21:45:25 raspberrypi weewx[4716]: **** Traceback (most recent call last):
Jun 29 21:45:25 raspberrypi weewx[4716]: **** File "/home/weewx/bin/weewx/cheetahgenerator.py", line 330, in generate
Jun 29 21:45:25 raspberrypi weewx[4716]: **** print >> _file, compiled_template
Jun 29 21:45:25 raspberrypi weewx[4716]: **** File "/usr/lib/python2.7/dist-packages/Cheetah/Template.py", line 1005, in __str__
Jun 29 21:45:25 raspberrypi weewx[4716]: **** rc = getattr(self, mainMethName)()
Jun 29 21:45:25 raspberrypi weewx[4716]: **** File "_home_weewx_skins_sofaskin_text_php_tmpl.py", line 146, in respond
Jun 29 21:45:25 raspberrypi weewx[4716]: **** NotFound: cannot find 'cwop' while searching for 'Extras.cwop'
Jun 29 21:45:26 raspberrypi weewx[4716]: cheetahgenerator: Generated 8 files for report StandardReport in 2.45 seconds
Jun 29 21:45:28 raspberrypi weewx[4716]: imagegenerator: Generated 9 images for StandardReport in 2.29 seconds
Jun 29 21:45:28 raspberrypi weewx[4716]: copygenerator: copied 0 files to /home/weewx/public_html
---------------------------------------------------------
qualche idea
Grazie
Pagina 4 di 5
Non puoi inserire nuovi Argomenti
Non puoi rispondere ai Messaggi
Non puoi modificare i tuoi Messaggi
Non puoi cancellare i tuoi Messaggi
Non puoi votare nei Sondaggi
Non puoi allegare files
Puoi scaricare gli allegati
Non puoi inserire eventi calendario