Let’s make a program to get and display weather information such as clear, clouds, and rain from the Internet.
The message "今日の天気はくもりです" on the display means that today's weather is cloudy.
- obniz Board
- smartphone or PC
- power supply for obniz
Hardware connection
Connect a power supply to an obniz Board. No parts are needed.
Software
Use “weather block” in the AI category. You can set favorite words on the part of “xxx” in a “Print “xxx” on obniz” block.
Change the area(city name)
In the program, the weather in Tokyo will be shown on an obniz Board display. If you want to set another country, change the value of the “if” block.
For example, change the value to “hakodate” to get the weather in Hakodate City, and “naha-shi” to get it in Naha City.
The weather block uses Weather API provided from OpenWeatherMap service. Try to look for the city that you can get weather information from the link below.
If you click on the Run button, the weather will be displayed on the obniz Board display. The first line is “It’s”, the second line is depending on the weather on the display.
In this article, display the sentence on the obniz Board. You can also make a system that notifies the weather with moving and light using motors and LEDs such as the lesson of waving the flag from weather information.
Here → obniz for DIY electronics
obniz is a cloud-connected IoT development board. You can program on the web browser of any smartphone or computer and the command is sent to obniz through the internet via obniz cloud. By connecting the obniz to the cloud through wifi, users can remotely control devices that are physically connected to obniz.
Thanks to this cloud based approach, you can program with Python, Javascript, or other languages you prefer and control hardware directly. You don't need to integrate firmware into the device side. Recording and analyzing data is also easy with obniz cloud service.
Want to control hardware things with your current Python or Javascript skill? Want to start IoT project but don't know where to start? Want to learn programming with languages you prefer?
obniz will help you broaden your viewpoint and develop both your SW and HW skills.
For more information, please visit our official website → Official Website
Where to get obniz board? → Amazon / Official Store
![Let’s get and display weather informattion [Block Program]](https://prod.hackster-cdn.online/assets/transparent-a0c1e3063bcabc548a5f3fa7328f3c1c97f747e6e764da4c14439567baa79ae1.gif)


![Let’s get and display weather informattion [Block Program]](https://hackster.imgix.net/uploads/attachments/1181692/20200124-obniz.jpg?auto=compress%2Cformat&w=900&h=675&fit=min)







Comments