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
4/30/2017 2:13:07 AM 73.73 82.11
4/29/2017 11:44:12 PM 74.83 82.37
4/29/2017 10:44:08 PM 75.51 82.50
4/29/2017 9:44:05 PM 76.32 82.69
4/29/2017 8:44:02 PM 76.73 82.60
4/29/2017 7:43:58 PM 76.57 82.34
4/29/2017 6:43:55 PM 75.89 82.46
4/29/2017 5:43:52 PM 75.78 82.34
4/29/2017 4:43:49 PM 75.72 82.33
4/29/2017 3:43:46 PM 75.76 82.31
4/29/2017 2:43:43 PM 75.82 82.25
4/29/2017 1:43:40 PM 75.91 82.34
4/29/2017 12:49:41 PM 75.97 82.23
4/21/2017 7:49:03 PM 69.02 73.29
4/21/2017 6:49:01 PM 69.45 70.79
4/21/2017 5:48:58 PM 69.45 70.76
4/21/2017 4:48:54 PM 69.43 70.73
4/21/2017 3:48:51 PM 69.45 70.64
4/21/2017 2:48:49 PM 69.43 70.60
4/21/2017 1:48:44 PM 69.27 70.68
4/21/2017 12:48:42 PM 69.16 70.76
4/21/2017 11:48:50 AM 69.20 70.76
4/21/2017 10:48:35 AM 69.25 70.76
4/21/2017 9:48:32 AM 69.29 70.76
4/21/2017 8:48:29 AM 69.33 70.69
4/21/2017 7:48:26 AM 69.43 70.66
4/21/2017 6:48:23 AM 69.43 70.62
4/21/2017 5:48:20 AM 69.47 70.53
4/21/2017 4:48:17 AM 69.45 70.49
4/21/2017 3:48:13 AM 69.49 70.47