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
10/28/2020 11:08:31 PM 72.40 68.05 BeachHouse
10/28/2020 10:08:31 PM 72.40 68.06 BeachHouse
10/28/2020 9:08:31 PM 72.44 68.12 BeachHouse
10/28/2020 8:08:31 PM 72.44 68.15 BeachHouse
10/28/2020 7:08:31 PM 72.40 68.32 BeachHouse
10/28/2020 6:08:31 PM 72.23 68.01 BeachHouse
10/28/2020 5:08:31 PM 72.05 68.03 BeachHouse
10/28/2020 4:08:31 PM 71.82 68.07 BeachHouse
10/28/2020 3:08:31 PM 71.59 68.15 BeachHouse
10/28/2020 2:08:31 PM 71.36 68.00 BeachHouse
10/28/2020 1:08:31 PM 71.17 68.36 BeachHouse
10/28/2020 12:08:31 PM 70.95 67.45 BeachHouse
10/28/2020 11:08:31 AM 70.86 67.45 BeachHouse
10/28/2020 10:08:31 AM 70.74 67.48 BeachHouse
10/28/2020 9:08:31 AM 70.70 67.50 BeachHouse
10/28/2020 8:08:32 AM 70.72 67.55 BeachHouse
10/28/2020 7:08:31 AM 70.76 67.60 BeachHouse
10/28/2020 6:08:31 AM 70.84 67.63 BeachHouse
10/28/2020 5:08:31 AM 70.93 67.72 BeachHouse
10/28/2020 4:08:31 AM 71.03 67.74 BeachHouse
10/28/2020 3:08:31 AM 71.17 67.86 BeachHouse
10/28/2020 2:08:31 AM 71.30 67.92 BeachHouse
10/28/2020 1:08:31 AM 71.44 68.04 BeachHouse
10/27/2020 11:08:31 PM 71.73 68.08 BeachHouse
10/27/2020 10:08:31 PM 71.82 68.17 BeachHouse
10/27/2020 9:08:31 PM 72.01 68.31 BeachHouse
10/27/2020 8:08:31 PM 72.44 69.31 BeachHouse
10/27/2020 7:08:31 PM 72.30 68.05 BeachHouse
10/27/2020 6:08:31 PM 72.44 68.09 BeachHouse
10/27/2020 5:08:31 PM 72.28 68.14 BeachHouse