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
8/18/2017 2:01:59 PM 76.32 66.90
8/18/2017 1:01:53 PM 76.20 66.97
8/18/2017 12:01:49 PM 76.01 67.02
8/18/2017 11:01:43 AM 75.93 67.08
8/18/2017 10:01:39 AM 75.88 67.24
8/18/2017 9:01:30 AM 75.91 67.44
8/18/2017 8:01:02 AM 76.30 67.61
8/18/2017 7:00:48 AM 76.76 67.74
8/18/2017 6:00:40 AM 77.01 67.81
8/18/2017 5:00:33 AM 77.07 67.93
8/18/2017 4:00:15 AM 77.23 67.93
8/18/2017 2:59:48 AM 77.01 68.11
8/17/2017 10:01:25 PM 76.88 68.14
8/17/2017 9:01:14 PM 76.61 68.26
8/17/2017 8:01:08 PM 76.53 68.47
8/17/2017 7:01:04 PM 76.76 68.57
8/17/2017 6:00:59 PM 76.96 68.67
8/17/2017 5:00:53 PM 77.11 68.73
8/17/2017 4:00:36 PM 77.15 68.68
8/17/2017 3:00:11 PM 76.90 68.69
8/17/2017 2:00:08 PM 76.61 68.73
8/17/2017 1:00:04 PM 76.32 68.73
8/17/2017 12:00:01 PM 76.03 68.77
8/17/2017 10:59:55 AM 75.74 68.87
8/17/2017 9:59:50 AM 75.51 69.05
8/17/2017 8:59:46 AM 75.57 69.19
8/17/2017 7:59:35 AM 75.66 69.34
8/17/2017 6:59:30 AM 75.72 69.38
8/17/2017 5:59:23 AM 75.70 69.34
8/17/2017 4:59:20 AM 75.45 69.34