Temp/Humidity to Database to HTML Chart

Showroom for MicroPython related hardware projects.
Target audience: Users wanting to show off their project!
Post Reply
jj.wohlgemuth
Posts: 4
Joined: Sat Oct 17, 2020 10:37 am
Contact:

Temp/Humidity to Database to HTML Chart

Post by jj.wohlgemuth » Sat Oct 17, 2020 10:44 am

Here's my little home IoT project based on Micropython.

Image

https://github.com/jj-wohlgemuth/my-home-iot


[ micropython micropython-esp8266 synology synology-nas mqtt sql ftp python plotly dht22 dht11 dht ]

jj.wohlgemuth
Posts: 4
Joined: Sat Oct 17, 2020 10:37 am
Contact:

Re: Temp/Humidity to Database to HTML Chart

Post by jj.wohlgemuth » Sun Oct 18, 2020 12:48 pm

Here's a screenshot of the chart:
Image

User avatar
pythoncoder
Posts: 5956
Joined: Fri Jul 18, 2014 8:01 am
Location: UK
Contact:

Re: Temp/Humidity to Database to HTML Chart

Post by pythoncoder » Sun Oct 18, 2020 2:09 pm

Interesting that the humidity readings in the kitchen correlate with the short term temperature variations. I suspect this happens on the other readings, but the temperature variation in the kitchen is more substantial so it's more evident. Or was something happening between those hours causing both temperature and RH to drop in sync? Cooking generally increases both...

I wonder if the device/device driver's temperature compensation is optimal? Mind you, I guess I'm splitting hairs here: an error of 10% RH is probably insignificant.
Peter Hinch
Index to my micropython libraries.

User avatar
Roberthh
Posts: 3667
Joined: Sat May 09, 2015 4:13 pm
Location: Rhineland, Europe

Re: Temp/Humidity to Database to HTML Chart

Post by Roberthh » Sun Oct 18, 2020 5:42 pm

My impression was, that you open the window of the kitchen quite often, and that after having it closed again, the less dry air is causing a humidity drop. It would be interesting to see, if there is a slight time offset between the two figures.

User avatar
pythoncoder
Posts: 5956
Joined: Fri Jul 18, 2014 8:01 am
Location: UK
Contact:

Re: Temp/Humidity to Database to HTML Chart

Post by pythoncoder » Mon Oct 19, 2020 6:18 am

I wondered about opening doors or windows. The air outside is colder and more humid. I would expect an exchange of air to cause a drop in temperature (as observed) and an increase in humidity. We see a decrease.

Hence my puzzlement.
Peter Hinch
Index to my micropython libraries.

User avatar
Roberthh
Posts: 3667
Joined: Sat May 09, 2015 4:13 pm
Location: Rhineland, Europe

Re: Temp/Humidity to Database to HTML Chart

Post by Roberthh » Mon Oct 19, 2020 6:35 am

When cold air warms up, the humidity decreases. That's why the indoor humidity usually drops in winter. And depending on the region and temperature, cold air can be very dry. But it is not yet cold enough here.

jj.wohlgemuth
Posts: 4
Joined: Sat Oct 17, 2020 10:37 am
Contact:

Re: Temp/Humidity to Database to HTML Chart

Post by jj.wohlgemuth » Mon Oct 19, 2020 9:19 am

The drops occur when I open the door of the house which is about 3 meters away from the fridge (it's a 33m^2 studio appartment). The sensor sits under the fridge on the floor. Generally in winter I open the doors and windows at least once a day for 5-10 minutes to decrease the humidity inside.

https://de.m.wikipedia.org/wiki/L%C3%BC ... C3%BCftung

The bedroom sensor is about 6 meters away from the door and closer to the ceiling hence the inertia.

The outside sensor is close to the wall so it gets slighty warmed up by the house. It was probably actually a bit colder outside that day.

User avatar
pythoncoder
Posts: 5956
Joined: Fri Jul 18, 2014 8:01 am
Location: UK
Contact:

Re: Temp/Humidity to Database to HTML Chart

Post by pythoncoder » Mon Oct 19, 2020 4:19 pm

Roberthh wrote:
Mon Oct 19, 2020 6:35 am
When cold air warms up, the humidity decreases...
Ah, OK. Vague memories from my schooldays are emerging. I need to do some revision ;)

Nice project by the way ;)
Peter Hinch
Index to my micropython libraries.

jj.wohlgemuth
Posts: 4
Joined: Sat Oct 17, 2020 10:37 am
Contact:

Re: Temp/Humidity to Database to HTML Chart

Post by jj.wohlgemuth » Tue Oct 20, 2020 11:55 am

Thanks :-)

I really love Micropython for standard stuff like this where it's just about parsing data from one protocol (the DHT22 serial protocol) to another (MQTT). No need to write hundreds of lines of C Code for it.

Post Reply