You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a DHT22 Temp sensor. I am new to Python and I was wondering if there is any sample code to show how to incorporate those readings for indoor Temp/humidity?
I can probably write the function call but what pseudo-code do you use to call that function in main.py would be helpfully. Working example (sample) would be awesome!
Follow-up:
I wrote a sample python script which returns temperature (and humidity):
Have a look at my fork - I integrated the Ecobee thermostat with this so that I can see the indoor temperature and current thermostat settings.
In particular, look at ecobee.py:L120 for the location where most of the work to retrieve and display the temperature happens. It runs as a separate thread that never exits; the thread is started in main.py:L426
I have a DHT22 Temp sensor. I am new to Python and I was wondering if there is any sample code to show how to incorporate those readings for indoor Temp/humidity?
I can probably write the function call but what pseudo-code do you use to call that function in main.py would be helpfully. Working example (sample) would be awesome!
Follow-up:
I wrote a sample python script which returns temperature (and humidity):
This works fine to test the sensor working
for the main.py I call:
The function looks like this:
I even tried to manually set via:
I never see the update? A Kivy problem?
The text was updated successfully, but these errors were encountered: