mi scuso in anticipo con i moderatori, ma non ho più le icone per taggare il codice...sia in risposta al messaggio che in nuova risposta...
Grazie Athos in anticipo per la tua disponibilità..questo è il messaggio di errore che viene visualizzato se seleziono il check a 1, il programma sembra avviarsi esce la videata ma poi esce:
Exception in thread Thread-7:
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 1537, in load_temp
change_system_settings()
File "thermostat.py", line 1433, in change_system_settings
print "Gpio heat : " ,str(GPIO.input(heatPin))," - Gpio cool : ",str(GPIO.input(coolPin)) , " - pirPin : ",str(GPIO.input(pirPin)), " - Light Pin :",str(GPIO.input(lightPin))
RuntimeError: You must setup() the GPIO channel first
[INFO ] [Base ] Leaving application in progress...
Gpio heat : 0 - Gpio cool : 1 - pirPin : Gpio heat : 0 - Gpio cool : 1 - pirPin :
Traceback (most recent call last):
File "thermostat.py", line 2795, in <module>
main()
File "thermostat.py", line 2790, in main
ThermostatApp().run()
File "/usr/local/lib/python2.7/dist-packages/kivy/app.py", line 828, in run
runTouchApp()
File "/usr/local/lib/python2.7/dist-packages/kivy/base.py", line 504, in runTouchApp
EventLoop.window.mainloop()
File "/usr/local/lib/python2.7/dist-packages/kivy/core/window/window_egl_rpi.py", line 92, in mainloop
self._mainloop()
File "/usr/local/lib/python2.7/dist-packages/kivy/core/window/window_egl_rpi.py", line 87, in _mainloop
EventLoop.idle()
File "/usr/local/lib/python2.7/dist-packages/kivy/base.py", line 339, in idle
Clock.tick()
File "/usr/local/lib/python2.7/dist-packages/kivy/clock.py", line 581, in tick
self._process_events()
File "kivy/_clock.pyx", line 367, in kivy._clock.CyClockBase._process_events (/tmp/pip-gZN4bb-build/kivy/_clock.c:7410)
File "kivy/_clock.pyx", line 397, in kivy._clock.CyClockBase._process_events (/tmp/pip-gZN4bb-build/kivy/_clock.c:7285)
File "kivy/_clock.pyx", line 395, in kivy._clock.CyClockBase._process_events (/tmp/pip-gZN4bb-build/kivy/_clock.c:7207)
File "kivy/_clock.pyx", line 167, in kivy._clock.ClockEvent.tick (/tmp/pip-gZN4bb-build/kivy/_clock.c:3201)
File "thermostat.py", line 1489, in check_sensor_temp
load_temp()
File "thermostat.py", line 1537, in load_temp
change_system_settings()
File "thermostat.py", line 1433, in change_system_settings
print "Gpio heat : " ,str(GPIO.input(heatPin))," - Gpio cool : ",str(GPIO.input(coolPin)) , " - pirPin : ",str(GPIO.input(pirPin)), " - Light Pin :",str(GPIO.input(lightPin))
RuntimeError: You must setup() the GPIO channel first
/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)
pi@raspberrypi:~/thermostat_v4 $