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
10/9/2017 1:12:45 PM 82.86 63.48
10/9/2017 12:12:42 PM 82.32 63.45
10/9/2017 11:12:38 AM 81.69 63.47
10/9/2017 10:12:36 AM 80.80 63.72
10/9/2017 9:12:32 AM 79.35 64.15
10/9/2017 8:12:27 AM 78.50 64.21
10/9/2017 7:12:24 AM 79.02 64.06
10/9/2017 6:12:21 AM 79.83 63.80
10/9/2017 5:12:17 AM 80.45 63.57
10/9/2017 4:12:12 AM 80.88 63.36
10/9/2017 3:12:09 AM 80.82 63.40
10/9/2017 2:12:06 AM 80.78 63.43
10/9/2017 1:12:03 AM 80.78 63.43
10/9/2017 12:11:59 AM 81.15 63.03
10/8/2017 11:11:56 PM 82.48 62.45
10/8/2017 10:11:52 PM 83.96 62.06
10/8/2017 9:11:47 PM 84.64 61.94
10/8/2017 8:11:43 PM 84.91 61.87
10/8/2017 7:11:41 PM 85.01 61.87
10/8/2017 6:11:36 PM 84.74 61.79
10/8/2017 5:11:34 PM 85.16 61.64
10/8/2017 4:11:31 PM 85.43 61.61
10/8/2017 3:11:41 PM 85.24 61.43
10/8/2017 2:11:24 PM 85.49 61.31
10/8/2017 1:11:16 PM 84.93 61.33
10/8/2017 12:11:12 PM 84.35 61.30
10/8/2017 11:11:08 AM 83.42 61.39
10/8/2017 10:11:05 AM 82.67 61.57
10/8/2017 9:11:01 AM 81.30 61.71
10/8/2017 8:10:57 AM 80.91 61.60