We will use an API service to obtain the latest news on stocks. We have used API services before in previous lessons.
Intended Learning Outcomes- You will learn how to handle the news API.
- You will learn how to give a display output to the MagicBit.
First, you need the below nodes.
Make the following arrangement.
Double click on it to access its settings. Make the below settings.
- Enter Method as GET.
- Set the return field as “a parsed JSON object”
- Paste the given link on the URL field:
var title = msg.payload.articles[1].title
msg.payload = "Title: : "+ title;
msg.topic = "";
return msg;Enter the below settings.
Connect the Magicbit board with the Magicblocks platform.
Enter the Device(Board) ID. You can see your device ID in the devices tab.
57 projects • 35 followers
Magicbit is an integrated development platform based on ESP32 for learning, prototyping, coding, electronics, robotics, IoT and more.




Comments