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
7/14/2020 5:06:18 AM 86.26 66.07 BeachHouse
7/14/2020 4:06:18 AM 86.65 67.11 BeachHouse
7/14/2020 3:06:18 AM 86.73 66.35 BeachHouse
7/14/2020 2:06:18 AM 86.96 66.06 BeachHouse
7/14/2020 1:06:18 AM 87.15 66.45 BeachHouse
7/13/2020 11:06:17 PM 87.48 67.10 BeachHouse
7/13/2020 10:06:17 PM 87.56 67.20 BeachHouse
7/13/2020 9:06:17 PM 87.52 67.29 BeachHouse
7/13/2020 8:06:16 PM 87.32 67.38 BeachHouse
7/13/2020 7:06:17 PM 86.96 67.30 BeachHouse
7/13/2020 6:06:16 PM 86.47 67.19 BeachHouse
7/13/2020 5:06:16 PM 86.05 67.09 BeachHouse
7/13/2020 4:06:17 PM 85.66 67.05 BeachHouse
7/13/2020 3:06:17 PM 85.34 67.04 BeachHouse
7/13/2020 2:06:16 PM 85.08 67.36 BeachHouse
7/13/2020 1:06:17 PM 84.99 67.80 BeachHouse
7/13/2020 12:06:17 PM 84.95 68.22 BeachHouse
7/13/2020 11:06:17 AM 84.27 66.34 BeachHouse
7/13/2020 10:06:17 AM 84.02 66.04 BeachHouse
7/13/2020 9:06:16 AM 83.91 66.54 BeachHouse
7/13/2020 8:06:17 AM 83.67 66.16 BeachHouse
7/13/2020 7:06:17 AM 84.16 69.24 BeachHouse
7/13/2020 6:06:17 AM 83.71 66.77 BeachHouse
7/13/2020 5:06:17 AM 83.83 66.47 BeachHouse
7/13/2020 4:06:17 AM 83.91 66.35 BeachHouse
7/13/2020 3:06:17 AM 83.93 66.12 BeachHouse
7/13/2020 2:06:16 AM 83.91 66.06 BeachHouse
7/13/2020 1:06:17 AM 83.87 66.46 BeachHouse
7/12/2020 11:06:17 PM 83.67 67.08 BeachHouse
7/12/2020 10:06:17 PM 83.48 67.44 BeachHouse