Linea Meteo


Strumenti meteo - Orange Pi Lite + La Crosse WS2300 + WeeWX (CumulusMX): la guida definitiva



andrea75 [ Sab 30 Giu, 2018 10:15 ]
Oggetto: Re: Orange Pi Lite + La Crosse WS2300 + WeeWX (CumulusMX): la guida definitiva
La procedura sembra giusta. La cartella /sofaskin l'hai inserita in /skins?
Hai fatto modifiche nel file skin.conf?


lb81 [ Sab 30 Giu, 2018 15:26 ]
Oggetto: Re: Orange Pi Lite + La Crosse WS2300 + WeeWX (CumulusMX): La Guida Definitiva
andrea75 ha scritto: [Visualizza Messaggio]
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.




Jun 30 15:17:11 raspberrypi systemd[1]: Started User Manager for UID 1000.
Jun 30 15:17:14 raspberrypi dbus[406]: [system] Activating via systemd: service name='org.freedesktop.UDisks2' unit='udisks2.service'
Jun 30 15:17:14 raspberrypi systemd[1]: Starting Disk Manager...
Jun 30 15:17:14 raspberrypi udisksd[895]: udisks daemon version 2.1.3 starting
Jun 30 15:17:15 raspberrypi dbus[406]: [system] Successfully activated service 'org.freedesktop.UDisks2'
Jun 30 15:17:15 raspberrypi udisksd[895]: Acquired the name org.freedesktop.UDisks2 on the system message bus
Jun 30 15:17:15 raspberrypi systemd[1]: Started Disk Manager.
Jun 30 15:17:15 raspberrypi org.gtk.Private.AfcVolumeMonitor[846]: Volume monitor alive
Jun 30 15:17:16 raspberrypi dhcpcd[432]: eth0: leased 192.168.188.20 for 864000 seconds
Jun 30 15:17:16 raspberrypi avahi-daemon[395]: Joining mDNS multicast group on interface eth0.IPv4 with address 192.168.188.20.
Jun 30 15:17:16 raspberrypi dhcpcd[432]: eth0: adding route to 192.168.188.0/24
Jun 30 15:17:16 raspberrypi avahi-daemon[395]: New relevant interface eth0.IPv4 for mDNS.
Jun 30 15:17:16 raspberrypi avahi-daemon[395]: Registering new address record for 192.168.188.20 on eth0.IPv4.
Jun 30 15:17:16 raspberrypi dhcpcd[432]: eth0: adding default route via 192.168.188.1
Jun 30 15:17:17 raspberrypi systemd[1]: Stopping LSB: Start NTP daemon...
Jun 30 15:17:17 raspberrypi ntpd[612]: ntpd exiting on signal 15
Jun 30 15:17:17 raspberrypi ntp[1039]: Stopping NTP server: ntpd.
Jun 30 15:17:17 raspberrypi systemd[1]: Starting LSB: Start NTP daemon...
Jun 30 15:17:17 raspberrypi ntpd[1056]: ntpd 4.2.6p5@1.2349-o Mon Jul 25 22:35:28 UTC 2016 (1)
Jun 30 15:17:17 raspberrypi ntp[1049]: Starting NTP server: ntpd.
Jun 30 15:17:17 raspberrypi ntpd[1057]: proto: precision = 1.354 usec
Jun 30 15:17:17 raspberrypi ntpd[1057]: Listen and drop on 0 v4wildcard 0.0.0.0 UDP 123
Jun 30 15:17:17 raspberrypi systemd[1]: Started LSB: Start NTP daemon.
Jun 30 15:17:17 raspberrypi ntpd[1057]: Listen and drop on 1 v6wildcard :: UDP 123
Jun 30 15:17:17 raspberrypi ntpd[1057]: Listen normally on 2 lo 127.0.0.1 UDP 123
Jun 30 15:17:17 raspberrypi ntpd[1057]: Listen normally on 3 eth0 192.168.188.20 UDP 123
Jun 30 15:17:17 raspberrypi ntpd[1057]: Listen normally on 4 lo ::1 UDP 123
Jun 30 15:17:17 raspberrypi ntpd[1057]: Listen normally on 5 eth0 fe80::2c99:87b0:1c66:6d52 UDP 123
Jun 30 15:17:17 raspberrypi ntpd[1057]: peers refreshed
Jun 30 15:17:17 raspberrypi ntpd[1057]: Listening on routing socket on fd #22 for interface updates
Jun 30 15:17:19 raspberrypi dhcpcd[432]: eth0: no IPv6 Routers available
Jun 30 15:20:12 raspberrypi systemd[798]: Time has been changed
Jun 30 15:20:12 raspberrypi systemd[1]: Time has been changed
Jun 30 15:20:20 raspberrypi ntpd_intres[618]: parent died before we finished, exiting
Jun 30 15:20:41 raspberrypi CRON[1082]: (pi) CMD (sudo sh /var/www/html/./scatto2.sh)
Jun 30 15:20:41 raspberrypi CRON[1084]: (pi) CMD (sudo python /var/www/html/./tempyo1.py)
Jun 30 15:20:41 raspberrypi CRON[1086]: (weewx) CMD (/usr/local/bin/realtime.sh)
Jun 30 15:20:41 raspberrypi CRON[1070]: (CRON) info (No MTA installed, discarding output)
Jun 30 15:20:41 raspberrypi CRON[1109]: (weewx) CMD (/usr/local/bin/realtime.sh)
Jun 30 15:20:41 raspberrypi CRON[1111]: (pi) CMD (sudo python /var/www/html/./canon.py)
Jun 30 15:20:41 raspberrypi CRON[1096]: (CRON) info (No MTA installed, discarding output)
Jun 30 15:20:41 raspberrypi CRON[1132]: (pi) CMD (sudo sh /var/www/html/./scatto2.sh)
Jun 30 15:20:41 raspberrypi CRON[1131]: (pi) CMD (sudo python /var/www/html/./tempyo1.py)
Jun 30 15:20:41 raspberrypi CRON[1135]: (weewx) CMD (/usr/local/bin/realtime.sh)
Jun 30 15:20:41 raspberrypi CRON[1116]: (CRON) info (No MTA installed, discarding output)
Jun 30 15:20:43 raspberrypi CRON[1072]: (CRON) info (No MTA installed, discarding output)
Jun 30 15:20:43 raspberrypi CRON[1118]: (CRON) info (No MTA installed, discarding output)
Jun 30 15:20:45 raspberrypi CRON[1071]: (CRON) info (No MTA installed, discarding output)
Jun 30 15:20:45 raspberrypi rsyslogd-2007: action 'action 17' suspended, next retry is Sat Jun 30 15:21:15 2018 [try http://www.rsyslog.com/e/2007 ]
Jun 30 15:20:45 raspberrypi CRON[1117]: (CRON) info (No MTA installed, discarding output)
Jun 30 15:21:01 raspberrypi CRON[1097]: (CRON) info (No MTA installed, discarding output)
Jun 30 15:21:01 raspberrypi CRON[1297]: (weewx) CMD (/usr/local/bin/realtime.sh)
Jun 30 15:21:01 raspberrypi CRON[1296]: (pi) CMD (sudo python /var/www/html/./canon.py)
Jun 30 15:21:01 raspberrypi CRON[1288]: (CRON) info (No MTA installed, discarding output)
Jun 30 15:21:15 raspberrypi rsyslogd-2007: action 'action 17' suspended, next retry is Sat Jun 30 15:21:45 2018 [try http://www.rsyslog.com/e/2007 ]
Jun 30 15:21:18 raspberrypi CRON[1289]: (CRON) info (No MTA installed, discarding output)
Jun 30 15:21:40 raspberrypi systemd[1]: Starting user-1001.slice.
Jun 30 15:21:40 raspberrypi systemd[1]: Created slice user-1001.slice.
Jun 30 15:21:40 raspberrypi systemd[1]: Starting User Manager for UID 1001...
Jun 30 15:21:40 raspberrypi systemd[1]: Starting Session c3 of user weewx.
Jun 30 15:21:41 raspberrypi systemd[1]: Started Session c3 of user weewx.
Jun 30 15:21:41 raspberrypi systemd[1360]: Starting Paths.
Jun 30 15:21:41 raspberrypi systemd[1360]: Reached target Paths.
Jun 30 15:21:41 raspberrypi systemd[1360]: Starting Timers.
Jun 30 15:21:41 raspberrypi systemd[1360]: Reached target Timers.
Jun 30 15:21:41 raspberrypi systemd[1360]: Starting Sockets.
Jun 30 15:21:41 raspberrypi systemd[1360]: Reached target Sockets.
Jun 30 15:21:41 raspberrypi systemd[1360]: Starting Basic System.
Jun 30 15:21:41 raspberrypi systemd[1360]: Reached target Basic System.
Jun 30 15:21:41 raspberrypi systemd[1360]: Starting Default.
Jun 30 15:21:41 raspberrypi systemd[1360]: Reached target Default.
Jun 30 15:21:41 raspberrypi systemd[1360]: Startup finished in 32ms.
Jun 30 15:21:41 raspberrypi systemd[1]: Started User Manager for UID 1001.
Jun 30 15:22:01 raspberrypi rsyslogd-2007: action 'action 17' suspended, next retry is Sat Jun 30 15:22:31 2018 [try http://www.rsyslog.com/e/2007 ]
Jun 30 15:22:01 raspberrypi CRON[1395]: (pi) CMD (sudo python /var/www/html/./tempyo1.py)
Jun 30 15:22:01 raspberrypi CRON[1396]: (weewx) CMD (/usr/local/bin/realtime.sh)
Jun 30 15:22:01 raspberrypi CRON[1384]: (CRON) info (No MTA installed, discarding output)
Jun 30 15:22:01 raspberrypi CRON[1401]: (pi) CMD (sudo sh /var/www/html/./scatto2.sh)
Jun 30 15:22:02 raspberrypi CRON[1386]: (CRON) info (No MTA installed, discarding output)
Jun 30 15:22:04 raspberrypi CRON[1385]: (CRON) info (No MTA installed, discarding output)
Jun 30 15:22:04 raspberrypi systemd[1]: Starting Session c4 of user pi.
Jun 30 15:22:04 raspberrypi systemd[1]: Started Session c4 of user pi.
Jun 30 15:22:51 raspberrypi rsyslogd-2007: action 'action 17' suspended, next retry is Sat Jun 30 15:23:21 2018 [try http://www.rsyslog.com/e/2007 ]
Jun 30 15:22:51 raspberrypi systemd[1]: Starting Session c5 of user pi.
Jun 30 15:22:51 raspberrypi systemd[1]: Started Session c5 of user pi.


andrea75 [ Sab 30 Giu, 2018 19:16 ]
Oggetto: Re: Orange Pi Lite + La Crosse WS2300 + WeeWX (CumulusMX): la guida definitiva
Da questo LOG non ci sono errori di Weewx... apparentemente è tutto ok. Puoi postare il contenuto del file weewx.conf? Magari allegandolo come file di testo....


Columbia [ Dom 01 Lug, 2018 10:45 ]
Oggetto: Re: Orange Pi Lite + La Crosse WS2300 + WeeWX (CumulusMX): La Guida Definitiva
Ciao risolto, era un problema nella configurazione del file skin.conf all'interno della cartella Sofaskin per capirci meglio non era inserito l'indirizzo del sito:
-------------------------------
[Extras]
# Template Extras

# Website URL
web_url = http://www.cusighe.it #questa è la parte mancante

# Current radar image
---------------------------------
ora vedo di sistemare il resto, per vedere come procede ecco l'indirizzo web del sito meteocusighe.altervista.org


lb81 [ Dom 01 Lug, 2018 11:45 ]
Oggetto: Re: Orange Pi Lite + La Crosse WS2300 + WeeWX (CumulusMX): La Guida Definitiva
andrea75 ha scritto: [Visualizza Messaggio]
Da questo LOG non ci sono errori di Weewx... apparentemente è tutto ok. Puoi postare il contenuto del file weewx.conf? Magari allegandolo come file di testo....


https://www48.zippyshare.com/v/2rE4jPH0/file.html


Columbia [ Dom 01 Lug, 2018 12:41 ]
Oggetto: Re: Orange Pi Lite + La Crosse WS2300 + WeeWX (CumulusMX): La Guida Definitiva
rieccomi con un'altro errore che non riesco a capire:
------------------
Jul 1 12:36:47 raspberrypi weewx[13621]: cheetahgenerator: **** Ignoring template /home/weewx/skins/Sofaskin/text.php.tmpl
Jul 1 12:36:47 raspberrypi weewx[13621]: cheetahgenerator: **** Reason: cannot find 'cwop' while searching for 'Extras.cwop'
Jul 1 12:36:47 raspberrypi weewx[13621]: **** Traceback (most recent call last):
Jul 1 12:36:47 raspberrypi weewx[13621]: **** File "/home/weewx/bin/weewx/cheetahgenerator.py", line 330, in generate
Jul 1 12:36:47 raspberrypi weewx[13621]: **** print >> _file, compiled_template
Jul 1 12:36:47 raspberrypi weewx[13621]: **** File "/usr/lib/python2.7/dist-packages/Cheetah/Template.py", line 1005, in __str__
Jul 1 12:36:47 raspberrypi weewx[13621]: **** rc = getattr(self, mainMethName)()
Jul 1 12:36:47 raspberrypi weewx[13621]: **** File "_home_weewx_skins_Sofaskin_text_php_tmpl.py", line 146, in respond
Jul 1 12:36:47 raspberrypi weewx[13621]: **** NotFound: cannot find 'cwop' while searching for 'Extras.cwop'
Jul 1 12:36:48 raspberrypi weewx[13621]: cheetahgenerator: Generated 9 files for report StandardReport in 10.85 seconds
Jul 1 12:36:52 raspberrypi weewx[13621]: imagegenerator: Generated 9 images for StandardReport in 3.30 seconds
Jul 1 12:36:52 raspberrypi weewx[13621]: copygenerator: copied 9 files to /home/weewx/public_html
Jul 1 12:37:00 raspberrypi weewx[13621]: ftpgenerator: ftp'd 27 files in 8.28 seconds
Jul 1 12:37:21 raspberrypi weewx[13621]: manager: Added record 2018-07-01 12:37:00 CEST (1530441420) to database 'weewx.sdb'
Jul 1 12:37:21 raspberrypi weewx[13621]: manager: Added record 2018-07-01 12:37:00 CEST (1530441420) to daily summary in 'weewx.sdb'
Jul 1 12:37:22 raspberrypi weewx[13621]: historygenerator.pyc: Generated 8 tables in 0.15 seconds
Jul 1 12:37:24 raspberrypi weewx[13621]: cheetahgenerator: Generate failed with exception '<class 'NameMapper.NotFound'>'
Jul 1 12:37:24 raspberrypi weewx[13621]: cheetahgenerator: **** Ignoring template /home/weewx/skins/Sofaskin/text.php.tmpl
Jul 1 12:37:24 raspberrypi weewx[13621]: cheetahgenerator: **** Reason: cannot find 'cwop' while searching for 'Extras.cwop'
Jul 1 12:37:24 raspberrypi weewx[13621]: **** Traceback (most recent call last):
Jul 1 12:37:24 raspberrypi weewx[13621]: **** File "/home/weewx/bin/weewx/cheetahgenerator.py", line 330, in generate
Jul 1 12:37:24 raspberrypi weewx[13621]: **** print >> _file, compiled_template
Jul 1 12:37:24 raspberrypi weewx[13621]: **** File "/usr/lib/python2.7/dist-packages/Cheetah/Template.py", line 1005, in __str__
Jul 1 12:37:24 raspberrypi weewx[13621]: **** rc = getattr(self, mainMethName)()
Jul 1 12:37:24 raspberrypi weewx[13621]: **** File "_home_weewx_skins_Sofaskin_text_php_tmpl.py", line 146, in respond
Jul 1 12:37:24 raspberrypi weewx[13621]: **** NotFound: cannot find 'cwop' while searching for 'Extras.cwop'
---------------------------------------
questo extra CWOP so che è un sito per radioamatori ed non ho la registrazione ma nel skin.conf è escluso con il segno # alla riga cwop, Gigi se leggi come hai risolto? Grazie


andrea75 [ Dom 01 Lug, 2018 12:53 ]
Oggetto: Re: Orange Pi Lite + La Crosse WS2300 + WeeWX (CumulusMX): la guida definitiva
Columbia ha scritto: [Visualizza Messaggio]

questo extra CWOP so che è un sito per radioamatori ed non ho la registrazione ma nel skin.conf è escluso con il segno # alla riga cwop, Gigi se leggi come hai risolto? Grazie


Lo hai commentato anche nel file weewx.conf?


Columbia [ Dom 01 Lug, 2018 14:36 ]
Oggetto: Re: Orange Pi Lite + La Crosse WS2300 + WeeWX (CumulusMX): La Guida Definitiva
decomentatto, controllato su tutti e 2 i file.conf se c'era altro con cwop ed extra ma niente.
Sto usando lo skin in italiano non quello originale in inglese.
Il bello che comunque carica sul sito tutto


lb81 [ Dom 01 Lug, 2018 14:47 ]
Oggetto: Re: Orange Pi Lite + La Crosse WS2300 + WeeWX (CumulusMX): La Guida Definitiva
andrea75 ha scritto: [Visualizza Messaggio]
Da questo LOG non ci sono errori di Weewx... apparentemente è tutto ok. Puoi postare il contenuto del file weewx.conf? Magari allegandolo come file di testo....


https://www48.zippyshare.com/v/2rE4jPH0/file.html


andrea75 [ Dom 01 Lug, 2018 21:30 ]
Oggetto: Re: Orange Pi Lite + La Crosse WS2300 + WeeWX (CumulusMX): la guida definitiva
Columbia ha scritto: [Visualizza Messaggio]
decomentatto, controllato su tutti e 2 i file.conf se c'era altro con cwop ed extra ma niente.
Sto usando lo skin in italiano non quello originale in inglese.
Il bello che comunque carica sul sito tutto


Allora ignora.... cioè, era meglio se non c'erano errori, ma a questo punto se non riesci a trovare l'inghippo lascialo così.

lb81 ha scritto: [Visualizza Messaggio]
andrea75 ha scritto: [Visualizza Messaggio]
Da questo LOG non ci sono errori di Weewx... apparentemente è tutto ok. Puoi postare il contenuto del file weewx.conf? Magari allegandolo come file di testo....


https://www48.zippyshare.com/v/2rE4jPH0/file.html


Dal file sembra tutto a posto... ho solo qualche dubbio sui dati FTP. Sicuro siano giusti?


Columbia [ Lun 02 Lug, 2018 18:39 ]
Oggetto: Re: Orange Pi Lite + La Crosse WS2300 + WeeWX (CumulusMX): La Guida Definitiva
Grazie Andrea lascio cosi vediamo come funziona, poi lo porto in altura con tutta la stazione.


Columbia [ Sab 21 Lug, 2018 15:32 ]
Oggetto: Re: Orange Pi Lite + La Crosse WS2300 + WeeWX (CumulusMX): La Guida Definitiva
Ciao, una informazione hai più smanettoni su weewx, non trovo nulla su come inviare un file in una directory dedicata, per capirci:
weewx carica tutti i file della cartella standard nella cartella radice del server, ma se voglio spostare un file in altra cartella cosa bisogna settare?
su mulusuxmx c'è la possibilità per singolo file di dare la cartella di destinazione sul server

cumulusmx


ma su weewx non saprei


andrea75 [ Lun 23 Lug, 2018 00:18 ]
Oggetto: Re: Orange Pi Lite + La Crosse WS2300 + WeeWX (CumulusMX): la guida definitiva
Columbia ha scritto: [Visualizza Messaggio]
Ciao, una informazione hai più smanettoni su weewx, non trovo nulla su come inviare un file in una directory dedicata, per capirci:
weewx carica tutti i file della cartella standard nella cartella radice del server, ma se voglio spostare un file in altra cartella cosa bisogna settare?
su mulusuxmx c'è la possibilità per singolo file di dare la cartella di destinazione sul server

cumulusmx


ma su weewx non saprei


Che intendi per file? Un file specifico, o il template?

Ad ogni modo, all'interno del file weewx.conf troverai la sezione [[ftp]] dove appunto impostare i parametri di connessione al tuo spazio web. E lì troverai anche l'impostazione della cartella:

# If you wish to use FTP, uncomment and fill out the next four lines.
user = ***********
password = ***********
server = ftp.*********.it
path = /weewx




Powered by Icy Phoenix