In this project I discovered a world of APIs which my Ardunio WiFi can directly access without a middle application. What I wanted to do was get my living room temperature. My first shot was to explore using existing Arduino projects with a temperature sensor. This would mean I would need one Arduino to measure the temperature and use WiFi to connect it to my second Arduino wood stove controller. This seemed like the more complex path. I already have an Ecobee WiFi thermostat that is updating a remote Ecobee server. some how I should be able to get this information. My first try was using Wireshark to sniff the IP address. Here I could capture data being sent out, however I could not figure out how to get the temperature. for the second try, I learned Ecobee has an Application Programing Interface (API). This led me on a long road of learning how to use Arduino Uno WiFi to get this information. This project will the code development and setting up the Ecobee API.
Summary of code actions and results set to Serial.print
- Ecobee getting started:
- Ecobee API uses Curl examples: Postman is very helpful Send/Receive along with translating to HTTP commands with the use of headers.
- GitHub uses of: ArduinoHttpClient.h examples:
This is my first project in Arduino, with the focus on making it work. I see many areas to improve the use of C, but settled for simple statements, due to my lack of C understanding. Many hours were spent banging my head against the wall. If you get stuck, I would be happy to try and assist. Next step I will use this knowledge to use the API for Gmail.