× Benvenuti sul nostro forum su Sint Wind PI!

Postate qui domande o segnalate problemi / bug che riscontrate,

file plugin data da web

More
10 years 10 months ago #1216 by roberto2011
Sono tornato !!! vi sono mancato :cheer:

Finalmente ho i permessi per installare il sint a Serrasanta.
ma ho di problemi:
1)anche con chiavetta tim non mi funziona l'ntp.
Cosi ho fatto un plugin che trovate in allegato.
con il cavo di rete funziona perfettamente.
con la chiavetta usb non riesce piĆ¹ a fare la connessione.

2) dati barometro su wunderground non presenti!
http://www.vololiberoserrasanta.it/sint/wugraphs.php
magari guardate i dati del 18 e 19

Attachment sync_plugin.py not found




Grazie

Sensori Davis +BME280 + Raspberry b+ webCam serrasanta.fleanet.it (Eremo di Serrasanta - Gualdo Tadino - 1.340 m s.l.m.)
Attachments:

Please Log in to join the conversation.

More
10 years 10 months ago #1218 by roberto2011
Replied by roberto2011 on topic plugin data da web
problema 1 risolto ho modificato il TTLib.py
soluzione non elegante ma funzionale

def waitForIP():
# wait maximum 2 minute for a valid IP
log("Waiting for a valid IP ...")
n = 60
for i in range(1,n):
theIP = getIP()
if ( theIP != None):
date_str = requests.get(" www.vololiberoserrasanta.it/time.php",timeout=10 ).text
log(date_str)
os.system("sudo date -s '%s'" % date_str)
return theIP
log("No IP yet. Retrying ..%d" % (n-i) )
time.sleep(2)
return None


Rimane il problema 2 dati pressione non inviati a wunderground !!

Sensori Davis +BME280 + Raspberry b+ webCam serrasanta.fleanet.it (Eremo di Serrasanta - Gualdo Tadino - 1.340 m s.l.m.)

Please Log in to join the conversation.

More
10 years 10 months ago - 10 years 10 months ago #1221 by tony
Replied by tony on topic plugin data da web
Si . forse conviene abbandonare l'ntp e utilizzare un servizio dedicato come quello che hai fatto. Lo metto in coda alle cose da fare
Last edit: 10 years 10 months ago by tony.

Please Log in to join the conversation.

Time to create page: 0.909 seconds