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
6/16/2017 5:32:30 PM 72.61 76.82
6/16/2017 4:32:26 PM 72.71 76.66
6/16/2017 3:32:23 PM 72.65 76.69
6/16/2017 2:32:20 PM 72.54 76.68
6/16/2017 1:32:17 PM 72.46 76.68
6/16/2017 12:32:14 PM 72.40 76.69
6/16/2017 11:32:11 AM 72.36 76.72
6/16/2017 10:32:08 AM 72.36 76.74
6/16/2017 9:32:05 AM 72.38 76.75
6/16/2017 8:32:02 AM 72.42 76.82
6/16/2017 7:31:59 AM 72.40 76.71
6/16/2017 6:31:56 AM 72.40 76.77
6/16/2017 5:31:54 AM 72.56 76.61
6/16/2017 4:31:50 AM 72.52 76.55
6/16/2017 3:31:45 AM 72.46 76.52
6/16/2017 2:31:42 AM 72.11 76.45
6/15/2017 9:32:01 PM 72.40 76.13
6/15/2017 8:31:57 PM 72.05 76.70
6/15/2017 7:31:54 PM 72.09 76.80
6/15/2017 6:31:51 PM 72.32 77.03
6/15/2017 5:31:48 PM 72.67 76.70
6/15/2017 4:31:45 PM 72.63 76.71
6/15/2017 3:31:42 PM 72.56 77.01
6/15/2017 2:31:39 PM 72.86 76.90
6/15/2017 1:31:36 PM 73.08 76.32
6/15/2017 12:31:33 PM 72.77 76.27
6/15/2017 11:31:31 AM 72.52 76.47
6/15/2017 10:31:27 AM 72.32 76.61
6/15/2017 9:31:24 AM 72.15 76.86
6/15/2017 8:31:21 AM 72.17 77.19