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 Humidor
4/5/2020 11:03:17 AM 63.15 69.39 BeachHouse
4/5/2020 10:03:17 AM 63.00 67.40 BeachHouse
4/5/2020 9:03:18 AM 62.67 67.01 BeachHouse
4/5/2020 8:03:17 AM 62.67 67.16 BeachHouse
4/5/2020 7:03:17 AM 62.83 67.70 BeachHouse
4/5/2020 6:03:16 AM 62.83 67.67 BeachHouse
4/5/2020 5:03:17 AM 62.79 67.88 BeachHouse
4/5/2020 4:03:17 AM 62.83 68.06 BeachHouse
4/5/2020 3:03:17 AM 62.75 67.42 BeachHouse
4/5/2020 2:03:17 AM 62.61 67.22 BeachHouse
4/5/2020 1:03:17 AM 62.50 67.56 BeachHouse
4/4/2020 11:03:18 PM 62.61 69.46 BeachHouse
4/4/2020 10:03:18 PM 62.46 68.26 BeachHouse
4/4/2020 9:03:18 PM 62.30 68.00 BeachHouse
4/4/2020 8:03:18 PM 62.27 68.50 BeachHouse
4/4/2020 7:03:17 PM 62.28 68.18 BeachHouse
4/4/2020 6:03:17 PM 62.25 70.03 BeachHouse
4/4/2020 5:03:17 PM 62.38 68.95 BeachHouse
4/4/2020 4:03:17 PM 62.46 68.84 BeachHouse
4/4/2020 3:03:19 PM 62.44 68.08 BeachHouse
4/4/2020 2:03:17 PM 62.50 68.34 BeachHouse
4/4/2020 1:03:18 PM 62.40 69.37 BeachHouse
4/4/2020 12:03:17 PM 62.42 69.10 BeachHouse
4/4/2020 11:03:17 AM 62.25 67.25 BeachHouse
4/4/2020 10:03:18 AM 62.40 68.54 BeachHouse
4/4/2020 9:03:17 AM 62.38 67.25 BeachHouse
4/4/2020 8:03:17 AM 62.54 68.67 BeachHouse
4/4/2020 7:03:17 AM 62.28 67.12 BeachHouse
4/4/2020 6:03:17 AM 62.67 67.83 BeachHouse
4/4/2020 5:03:17 AM 62.42 67.06 BeachHouse