× Benvenuti sul nostro forum su Sint Wind PI!

Postate qui domande o segnalate problemi / bug che riscontrate,

file problema nuova versione 01.23.82

More
7 years 11 months ago - 7 years 11 months ago #6732 by ciapa85
ho installato la nuova versione del swpi mi sono trovato di fronte ad un problema con l'ntp server. mi da questo errore:

[07/05/2016-02:33:10] Starting SINT WIND PI ...
************************************************************************
* Sint Wind PI 01.23.82 *
* *
* 2012-2016 by Tonino Tarsi <This email address is being protected from spambots. You need JavaScript enabled to view it.> *
* *
* System will start in 10 seconds - Press Ctrl-C to cancel *
************************************************************************
10.....9.....8.....7.....6.....5.....4.....3.....2.....1.....
[07/05/2016-02:33:23] loading plugins
[07/05/2016-02:33:23] Starting sensor reading - Sensor type is : SIMULATE
[07/05/2016-02:33:23] Starting plugin : <module 'wunderground' from './plugins/wunderground.py'>
[07/05/2016-02:33:23] Starting plugin : <module 'IPCamLogger' from './plugins/IPCamLogger.py'>
[07/05/2016-02:33:23] Config Server running on port 80
[07/05/2016-02:33:23] Checking internet connetion ...
[07/05/2016-02:33:23] Internet ok
[07/05/2016-02:33:23] Checking internet connetion ...
[07/05/2016-02:33:23] Internet ok
[07/05/2016-02:33:30] Calculating Meteo data and statistics
[07/05/2016-02:33:30] Logging data to Database
[07/05/2016-02:33:30] Dir: S - Spd: 28 - Gst: 61 - Tout: 5.0 - Tin: 77.0 - Hout: 73.0 - Hin: 97.0 - P: 960 - Rtot: 33.0 - CB: 540
[07/05/2016-02:33:43] ERROR - Failed to set time system from ntp server
[07/05/2016-02:34:04] Starting General WatchDog
wlan0 is up


questa è lo screenshot della configurazione

l'indirizzo delntp è: it.pool.ntp.org

con la vecchia versione andava tutto bene
Attachments:
Last edit: 7 years 11 months ago by ciapa85. Reason: modifica testo

Please Log in to join the conversation.

More
7 years 11 months ago #6738 by tony
Prova con un altro server. C'è ne sono molti

Please Log in to join the conversation.

More
7 years 11 months ago #6741 by uolly78
Buongiorno
a me il problema lo da anche se cambio server (ne ho provati un po')
qualcuno ha risolto?

Please Log in to join the conversation.

More
7 years 11 months ago #6742 by ciapa85
Io sto usando la verione 3 ma ho un raspberry mod B...
Potrebbe essere quello il problema?

Please Log in to join the conversation.

More
7 years 11 months ago #6743 by uolly78
non credo. Comunque ho rimesso la versione precedente e funziona perfettamente

Please Log in to join the conversation.

More
7 years 11 months ago #6744 by ciapa85
Ma hai installato la versione 2 845 aggiornata a marzo o quella ancora precedente?

Please Log in to join the conversation.

More
7 years 11 months ago #6745 by uolly78
quella di marzo (versione 2 845)

Please Log in to join the conversation.

More
7 years 11 months ago #6746 by uolly78
ulteriore nota: con la versione 3 non mi funzionava nemmeno l'upload dei dati sul server.
Invece con questa funziona tutto perfettamente!

Please Log in to join the conversation.

More
7 years 11 months ago #6748 by uolly78
ciapa85 a te funzionava l'invio dei dati al server?
A me con la versione 3 non va nessun collegamento a nessun server (ntp e server web per il collect dei dati), il check della connessione Internet è ok,

La versione precedente invia i dati senza problemi.

Please Log in to join the conversation.

More
7 years 11 months ago #6749 by ciapa85
No non mi invia i dati

Please Log in to join the conversation.

More
7 years 11 months ago #6750 by seven
Bello ragazzi! :)
Chi mi posta il risultato dei comandi

ifconfig

E

ping google.it


sulla versione 3?
The following user(s) said Thank You: uolly78

Please Log in to join the conversation.

More
7 years 11 months ago #6751 by uolly78
ifconfig
pi@swpi(ro):~$ ifconfig
eth0      Link encap:Ethernet  HWaddr b8:27:eb:60:04:6e
          inet addr:192.168.1.108  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:723 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1085 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:65432 (63.8 KiB)  TX bytes:1016551 (992.7 KiB)

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

pi@swpi(ro):~$ pi@swpi(ro):~$ ifconfig
-bash: errore di sintassi vicino al token non atteso "sudo"
pi@swpi(ro):~$ eth0      Link encap:Ethernet  HWaddr b8:27:eb:60:04:6e
-bash: eth0: comando non trovato
pi@swpi(ro):~$           inet addr:192.168.1.108  Bcast:192.168.1.255  Mask:255.255.255.0
-bash: inet: comando non trovato
pi@swpi(ro):~$           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
-bash: UP: comando non trovato
pi@swpi(ro):~$           RX packets:723 errors:0 dropped:0 overruns:0 frame:0
-bash: RX: comando non trovato
pi@swpi(ro):~$           TX packets:1085 errors:0 dropped:0 overruns:0 carrier:0
-bash: TX: comando non trovato
pi@swpi(ro):~$           collisions:0 txqueuelen:1000
-bash: collisions:0: comando non trovato
pi@swpi(ro):~$           RX bytes:65432 (63.8 KiB)  TX bytes:1016551 (992.7 KiB)
-bash: errore di sintassi vicino al token non atteso "("
pi@swpi(ro):~$
pi@swpi(ro):~$ lo        Link encap:Local Loopback
-bash: lo: comando non trovato
pi@swpi(ro):~$           inet addr:127.0.0.1  Mask:255.0.0.0
-bash: inet: comando non trovato
pi@swpi(ro):~$           UP LOOPBACK RUNNING  MTU:65536  Metric:1
-bash: UP: comando non trovato
pi@swpi(ro):~$           RX packets:0 errors:0 dropped:0 overruns:0 frame:0
-bash: RX: comando non trovato
pi@swpi(ro):~$           TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
-bash: TX: comando non trovato
pi@swpi(ro):~$           collisions:0 txqueuelen:0
-bash: collisions:0: comando non trovato
pi@swpi(ro):~$           RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
-bash: errore di sintassi vicino al token non atteso "("
pi@swpi(ro):~$

ping google.it
ping: unknown host google.it

ho un sospetto: sono in LAN, la 2 funziona e la 3 no con la stessa configurazione. Il comando ifconfig mi da il Bcast a 192.168.1.255 ma il mio gateway è 192.168.1.1
Credo sia quello l'errore (ma nella 2 non c'è questo problema).

Adesso devo capire come modificare il gateway... sono poco avvezzo a linux

Please Log in to join the conversation.

More
7 years 11 months ago #6752 by uolly78
p.s. sulla 2 non ho fatto ifconfig e non so se è configurata correttamente

Please Log in to join the conversation.

More
7 years 11 months ago #6753 by uolly78
Ok
Modificato con il comando
sudo route add default gw 192.168.1.1 netmask 255.255.255.0 eth0

e funziona sia l'aggiornamento della data/ora sia l'invio dei dati :woohoo: :woohoo:

Please Log in to join the conversation.

More
7 years 11 months ago #6754 by ciapa85
pi@swpi(ro):~$ ifconfig
eth0 Link encap:Ethernet HWaddr b8:27:eb:0f:c8:b2
inet addr:192.168.1.102 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:41956 errors:0 dropped:1395 overruns:0 frame:0
TX packets:38538 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:2279344 (2.1 MiB) TX bytes:41745786 (39.8 MiB)

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

Please Log in to join the conversation.

More
7 years 11 months ago #6755 by seven
Essì, grazie ragazzi e bravo uolly! Mi sa che c'è un problema col dhcp, devo scoprire cos'è. Intanto la soluzione di uolly va benissimo (non so se resista al reboot però).
Mi metto all'opera.
The following user(s) said Thank You: uolly78

Please Log in to join the conversation.

More
7 years 11 months ago - 7 years 11 months ago #6756 by uolly78
Ora ho spento tutto, riprovo domani, ma prima ho fatto un reboot mi pare di ricordare e ha mantenuto.
Prima di dare il comando l'ho messo in rw.
Last edit: 7 years 11 months ago by uolly78.

Please Log in to join the conversation.

More
7 years 11 months ago #6757 by seven
Bene. E' proprio un (bel) problema del dhcp, mi ci vorrà un po' a sistemarlo purtroppo. Appena fatto posterò una nuova immagine corretta.

Please Log in to join the conversation.

More
7 years 11 months ago #6758 by ciapa85
eth0      Link encap:Ethernet  HWaddr b8:27:eb:0f:c8:b2
          inet addr:192.168.1.102  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:114 errors:0 dropped:0 overruns:0 frame:0
          TX packets:65 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:9551 (9.3 KiB)  TX bytes:10056 (9.8 KiB)

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)


questa è if config della versione 2

Please Log in to join the conversation.

More
7 years 11 months ago - 7 years 11 months ago #6759 by ciapa85
con la nuova versione anche la aprete ipcam mi è migliorata ma mi da sempre questo errore

[16/05/2016-18:16:58] Calculating Meteo data and statistics
[16/05/2016-18:16:58] Getting images with command : sudo wget -O ./img/webcam1_16052016-181658.jpg --http-user=visual --http-passwd=visual http://192.168.1.104:5025/snapshot.cgi?user=visual&pwd=visual
[16/05/2016-18:16:58][16/05/2016-18:16:58] ERROR in capturing webcam image on : ./img/webcam1_16052016-181658.jpg 192.168.1.104:5025
[16/05/2016-18:16:58] Checking internet connetion ...


qualcuno ha risolto?

aggiornmamento.... nel raspberry il file viene salvato ma non fa l'upload dell'immagine
Last edit: 7 years 11 months ago by ciapa85. Reason: modifica

Please Log in to join the conversation.

More
7 years 11 months ago #6760 by seven
Mmmh controlla se aprendo sul browser l'indirizzo:

http://192.168.1.104:5025/snapshot.cgi?user=visual&pwd=visual

vedi l'immagine della IPcam... Altrimenti c'è qualche parametro non corretto. Che tipo/modello di IPcam è?
Controlla anche se la dimensione del file dell'immagine salvata è 0. Se è così ovviamente il file esiste ma non è un'immagine valida e torniamo al discorso dei possibili parametri errati.

Sto provando l'immagine swpi 3 riveduta e corretta nella parte DHCP. Già che c'ero credo di aver sistemato un bug in swpi nell'acquisizione webcam via uvccapture e via ffmpeg, magari poi chiederò un merge a Tony.
Intanto se tutto continua ad andare bene domani la riuppo.

Please Log in to join the conversation.

More
7 years 11 months ago - 7 years 11 months ago #6761 by Roberto Vaccaro
x ciapa85

Seven fa una giusta osservazione.
Non tutte le ipCam hanno comandi uguali.
Nel mio caso la giusta stringa è questa

sudo wget -O /swpi/img/cam1.jpg "http://TUOIP:TUAPORTA/snapshot.cgi?
user=admin&pwd=TUAPASSWOR"

Servono anche gli apici, puoi provare da riga di comando, quando trovi la stringa giusta la puoi inserire nel file swpi.cfg editandolo, non da interfaccia web.
Questo e quello che ho fatto io
[IPCam]
ipcaminterval = 300
ipcamcfg = IPCam1
ipcamip1 = "TUOINDIRIZZO:TUAPORTA/
ipcamus1 = 
ipcampw1 = 
ipcamsn1 = snapshot.cgi?user=TUOUSER&pwd=TUAPASSWORD"
ipcamip2 = None

x seven il problema relativo al file swpi.cfg permane non c'entra nulla l'interfaccia web
Last edit: 7 years 11 months ago by Roberto Vaccaro.

Please Log in to join the conversation.

More
7 years 11 months ago #6762 by ciapa85
il comando
http://ciapa.no-ip.org:5025/snapshot.cgi?user=visual&pwd=visual
funziona regolarmente

il file che crea è di dimensione 0
aggiungo lo screenshot della configurazione della ipcam

appena posso provo con la procedura che ha detto vaccaro :)
Attachments:

Please Log in to join the conversation.

More
7 years 11 months ago #6763 by Roberto Vaccaro
Ti confermo che se non vengono passati i parametri in giusta maniera il file viene creato ma a zero.

Please Log in to join the conversation.

More
7 years 11 months ago #6764 by seven
Eeeh si... E ti dico anche qual è il problema:
se carichi

ciapa.no-ip.org:5025/snapshot.cgi?user=visual&pwd=visual

la foto si vede (la vedo anch'io da da qui), ma questo non è lo stesso indirizzo che hai inserito nella maschera di configurazione di swpi.
Dal tuo post precedente si vede che l'indirizzo inserito è:

[16/05/2016-18:16:58] Calculating Meteo data and statistics
[16/05/2016-18:16:58] Getting images with command : sudo wget -O ./img/webcam1_16052016-181658.jpg --http-user=visual --http-passwd=visual http://192.168.1.104:5025/snapshot.cgi?user=visual&pwd=visual
[16/05/2016-18:16:58][16/05/2016-18:16:58] ERROR in capturing webcam image on : ./img/webcam1_16052016-181658.jpg 192.168.1.104:5025
[16/05/2016-18:16:58] Checking internet connetion ...


...che fa una certa differenza. Quindi al posto di "192.168.1.104:5025" nella maschera di swpi prova a mettere "ciapa.no-ip.org:5025" e vediamo cosa succede.

Per Roberto: ieri per la prima volta è successo anche a me ma stavo salvando un file e non sono riuscito a capire in che modo questo possa aver influito. Continuo a ravanare... :)

Please Log in to join the conversation.

More
7 years 11 months ago - 7 years 11 months ago #6765 by ciapa85
http://192.168.1.104:5025/snapshot.cgi?user=visual&pwd=visual
o
ciapa.no-ip.org:5025/snapshot.cgi?user=visual&pwd=visual

i due indirizzi puntano alla stessa ip cam, ho il DNS attivo con il port forward,

ho provato a dare entrambi i comandi da console e funzionano, viene creato il file di 33k

adesso dal log si vede che l'immagine viene salvata... ma c'è sempre un eerrore

[17/05/2016-17:14:42] Getting images with command : sudo wget -O ./img/webcam1_17052016-171442.jpg --http-user= --http-passwd= http://"http://192.168.1.104:5025/snapshot.cgi?user=visual&pwd=visual"
[17/05/2016-17:14:42] IPcam 1 Captured : ok : ./img/webcam1_17052016-171442.jpg
[17/05/2016-17:14:42] Processing image :./img/webcam1_17052016-171442.jpg
cannot identify image file
IOError


andando a vedere i file risultano sempre di 0k :(
Last edit: 7 years 11 months ago by ciapa85. Reason: modifica testo

Please Log in to join the conversation.

More
7 years 11 months ago #6766 by Roberto Vaccaro
Questo parametro come è settato?

sendallimagestoserver = False

Prova a metterlo così come lo vedi.
Edita il file swpi.cfg

In questo modo mandi una sola immagine sul web senza timestamp.
Se è tutto ok dovresti vederla

Please Log in to join the conversation.

More
7 years 11 months ago #6767 by seven
Guarda gli allegati :) :)
Attachments:

Please Log in to join the conversation.

More
7 years 11 months ago - 7 years 11 months ago #6769 by ciapa85
io ho provato a mettere quei settaggi ma mi da sempre lo stesso errore
[17/05/2016-21:17:52] IPcam 1 Captured : ok : ./img/webcam1_17052016-211526.jpg
[17/05/2016-21:17:52] Processing image :./img/webcam1_17052016-211526.jpg
cannot identify image file
IOError
[17/05/2016-21:17:52] Getting images with command : sudo wget -O ./img/webcam1_17052016-211752.jpg --http-user=visual --http-passwd=visual http://ciapa.no-ip.org:5025/snapshot.cgi

allego file di configurazione
[rimosso... okkio alle password!]
Last edit: 7 years 11 months ago by seven.

Please Log in to join the conversation.

More
7 years 11 months ago - 7 years 11 months ago #6770 by Roberto Vaccaro
Io uso questo parametro
captureprogram = fswebcam
no ffmpeg

Occhio hai lasciato le password!!!!!!

Per sicurezza ho rimosso il tuo file dal msg (seven mi hai battuto sul tempo :) )
Last edit: 7 years 11 months ago by Roberto Vaccaro.

Please Log in to join the conversation.

Time to create page: 1.057 seconds