The Angry Humidor

Just for fun I added an Arduino to a humidor to monitor the temperature and humidity.

This humidor is built on the newest Arduino board, the MKR1000. This board is basically an Arduino Zero with a built in WiFi shield. I added a Adafruit-htu21d-f temperature and humidity sensor and an LED. The LED is coded to flash codes for errors and readings. The Arduino connects to the WPA2 wireless network with the WIFI101 library. I coded the Arduino to take a temperature and humidity reading every hour then it sends the data over HTTPS POST to a Web API service. The Web API calls a stored procedure in AZURE to write the data to the database. This website pulls the data using MVC. A data access object is created and passed to the model, the model populates the view.

Twitter Account

If, for some strange reason, you take the time to Wifi enable a humidor you should create a twitter acount for it. It is the geeky thing to do. The Web API will randomly select 1 out of 100 temperature and humidity readings to send to the twitter API. This method will create a randomly generated disgruntaled tweet that includes the temperature and humidity.

Humidor readings

Reading Date/Time Temperature Humidity Humidor
5/30/2020 4:04:53 AM 73.39 65.58 BeachHouse
5/30/2020 3:04:53 AM 73.62 65.69 BeachHouse
5/30/2020 2:04:53 AM 73.89 65.79 BeachHouse
5/30/2020 1:04:53 AM 74.12 65.90 BeachHouse
5/29/2020 11:04:53 PM 74.87 66.44 BeachHouse
5/29/2020 10:04:54 PM 75.03 66.15 BeachHouse
5/29/2020 9:04:54 PM 75.26 66.05 BeachHouse
5/29/2020 8:04:53 PM 75.45 66.25 BeachHouse
5/29/2020 7:04:54 PM 75.47 66.04 BeachHouse
5/29/2020 6:05:09 PM 75.35 66.20 BeachHouse
5/29/2020 5:04:54 PM 75.05 66.01 BeachHouse
5/29/2020 4:04:53 PM 74.58 66.05 BeachHouse
5/29/2020 3:04:54 PM 74.12 66.14 BeachHouse
5/29/2020 2:04:53 PM 73.52 66.22 BeachHouse
5/29/2020 1:04:53 PM 73.31 66.74 BeachHouse
5/29/2020 12:04:53 PM 72.50 65.32 BeachHouse
5/29/2020 11:04:53 AM 71.92 65.25 BeachHouse
5/29/2020 10:04:53 AM 71.57 65.24 BeachHouse
5/29/2020 9:04:53 AM 71.36 65.25 BeachHouse
5/29/2020 8:04:53 AM 71.18 65.27 BeachHouse
5/29/2020 7:04:53 AM 71.24 65.33 BeachHouse
5/29/2020 6:04:53 AM 71.38 65.39 BeachHouse
5/29/2020 5:04:53 AM 71.51 65.49 BeachHouse
5/29/2020 4:04:53 AM 71.67 65.58 BeachHouse
5/29/2020 3:04:53 AM 71.82 65.67 BeachHouse
5/29/2020 2:04:53 AM 72.03 65.81 BeachHouse
5/29/2020 1:04:53 AM 72.27 65.97 BeachHouse
5/28/2020 11:04:54 PM 73.04 66.95 BeachHouse
5/28/2020 10:04:54 PM 72.90 66.28 BeachHouse
5/28/2020 9:04:53 PM 73.00 66.17 BeachHouse