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
12/15/2017 8:36:38 AM 71.05 67.98
12/15/2017 7:36:35 AM 70.99 68.12
12/15/2017 6:36:31 AM 70.32 68.12
12/15/2017 5:36:29 AM 70.10 68.28
12/15/2017 4:36:26 AM 70.61 68.32
12/15/2017 3:36:21 AM 71.26 68.47
12/15/2017 2:36:18 AM 72.07 68.59
12/15/2017 1:36:14 AM 73.06 68.75
12/15/2017 12:36:13 AM 74.22 68.81
12/14/2017 11:36:33 PM 75.51 68.53
12/14/2017 10:36:06 PM 75.72 68.54
12/14/2017 9:36:02 PM 75.41 68.46
12/14/2017 8:35:59 PM 74.20 68.47
12/14/2017 7:35:56 PM 72.36 68.49
12/14/2017 6:35:53 PM 71.20 68.51
12/14/2017 5:35:50 PM 71.20 68.53
12/14/2017 4:35:47 PM 71.36 68.49
12/14/2017 3:35:44 PM 71.61 68.50
12/14/2017 2:35:42 PM 71.88 68.55
12/14/2017 1:35:39 PM 72.09 68.60
12/14/2017 12:35:36 PM 72.17 68.57
12/14/2017 11:35:32 AM 72.27 68.57
12/14/2017 10:35:29 AM 72.27 68.58
12/14/2017 9:35:26 AM 72.23 68.60
12/14/2017 8:35:23 AM 72.11 68.59
12/14/2017 7:35:20 AM 71.73 68.65
12/14/2017 6:35:17 AM 71.45 68.70
12/14/2017 5:35:14 AM 71.40 68.86
12/14/2017 4:35:10 AM 71.84 68.86
12/14/2017 3:36:39 AM 72.32 69.01