In this tutorial, we'll see how to make an HTTP request in order to get the weather condition of a specific city.
We’ll use Zerynth Studio to program the microcontroller-based board in Python.
Zerynth simplifies and speeds up IoT development allowing programming in Python or hybrid C/Python the most popular 32-bit microcontrollers and connecting them to the leading Cloud Infrastructures like AWS, Google Cloud, Microsoft Azure, IBM Watson, Ubidots, and many more.
Required MaterialYou need a board. You can select one of the 32-bit microcontroller devices supported by Zerynth. We’ve chosen the FireBeetle Esp32by DFRobot (read Zerynth documentation here).
You also need:
Zerynth Studio, a powerful IDE for embedded programming in Python that enables the IoT. You can download it here.
AssemblingNo assembling required.
ProgrammingOnce you have installed Zerynth Studio and created a Zerynth user, you have to register and virtualize the board.
Clone and uplink the Zerynth example "HTTP Weather" as shown in the video. Open the Serial Monitor to see the weather conditions of your city.
You can create your personal account at http://openweathermap.org/price to obtain your personal API key and enjoy discovering the weather conditions of the cities of the entire world!
Comments
Please log in or sign up to comment.