27/11/2017, 11:02
(27/11/2017, 07:06)Athos Ha scritto: Buongiorno
essendo un grafico rileva la temperatura interna ogni tot minuti
e la temperatura fluttua anche di pochi decimali e nel grafico non vedi altro che questo .
Il setpoint viene modificato da quello che hai inserito nello schedule, questa e la funzione di un cronotermostato,
cambiare la temperatura dell'ambiente all'ora che si desidera.......
Tutto sta funzionando correttamente.
Setta auth a 0 e porta a 80 nella parte web
come ho spiegato per usare la porta 443 devi aver settato openssl , altrimenti non parte.
Ciao
ok adesso parte, legge la temperatura esterna ( sia con dht che senza ) ma si blocca in "inizializzo comunicazioni sistema" dopodicchè esce e a video mi vengono i seguenti messaggi:
p.s: ho messo a 0 tutto ciò che "non serve" per poterlo far funzionare come termostato semplice.
Codice:
('dht Temp: ', None)
check temp
Exception in thread Thread-6:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner
self.run()
File "/usr/lib/python2.7/threading.py", line 763, in run
self.__target(*self.__args, **self.__kwargs)
File "thermostat.py", line 1486, in load_temp
rawTemp - freezingMeasured) * referenceRange) / measuredRange) + freezingPoint + correctSensor
UnboundLocalError: local variable 'rawTemp' referenced before assignment
('dht Temp: ', None)
[INFO ] [Base ] Leaving application in progress...
Traceback (most recent call last):
File "thermostat.py", line 2721, in <module>
telegramSend("Thermost is shutting down....")
TypeError: 'int' object is not callable
/usr/local/lib/python2.7/dist-packages/cherrypy/process/wspbus.py:243: RuntimeWarning: The main thread is exiting, but the Bus is in the states.STARTED state; shutting it down automatically now. You must either call bus.block() after start(), or call bus.exit() before the main thread exits.
'main thread exits.' % self.state, RuntimeWarning)