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
2/20/2020 6:02:06 AM 65.03 61.20 BeachHouse
2/20/2020 5:02:06 AM 64.99 61.78 BeachHouse
2/20/2020 4:02:06 AM 65.16 61.13 BeachHouse
2/20/2020 3:02:07 AM 65.12 61.81 BeachHouse
2/20/2020 2:02:06 AM 65.24 61.30 BeachHouse
2/20/2020 1:02:06 AM 65.10 61.10 BeachHouse
2/19/2020 11:02:07 PM 65.32 60.01 BeachHouse
2/19/2020 10:02:06 PM 65.37 60.08 BeachHouse
2/19/2020 9:02:06 PM 65.26 60.07 BeachHouse
2/19/2020 8:02:07 PM 65.24 60.05 BeachHouse
2/19/2020 7:02:07 PM 65.30 60.09 BeachHouse
2/19/2020 6:02:07 PM 65.32 60.13 BeachHouse
2/19/2020 5:02:07 PM 65.51 60.20 BeachHouse
2/19/2020 4:02:06 PM 65.62 60.67 BeachHouse
2/19/2020 3:02:07 PM 65.74 64.14 BeachHouse
2/19/2020 2:02:07 PM 65.43 60.09 BeachHouse
2/19/2020 1:02:06 PM 65.53 60.65 BeachHouse
2/19/2020 12:02:07 PM 65.59 60.94 BeachHouse
2/19/2020 11:02:06 AM 65.22 59.46 BeachHouse
2/19/2020 10:02:06 AM 65.08 59.05 BeachHouse
2/19/2020 9:02:07 AM 65.37 60.55 BeachHouse
2/19/2020 8:02:06 AM 65.47 59.69 BeachHouse
2/19/2020 7:02:07 AM 65.39 59.35 BeachHouse
2/19/2020 6:02:06 AM 65.30 59.05 BeachHouse
2/19/2020 5:02:06 AM 65.22 59.75 BeachHouse
2/19/2020 4:02:06 AM 65.47 59.36 BeachHouse
2/19/2020 3:02:07 AM 65.34 59.00 BeachHouse
2/19/2020 2:02:06 AM 65.28 59.36 BeachHouse
2/19/2020 1:02:07 AM 65.41 59.71 BeachHouse
2/18/2020 11:02:08 PM 65.59 60.81 BeachHouse