Week 7
April 20, 2025
Hello everyone! This week, I spent my time working on a major part of my web app which will display the air quality data from one test device, graphically. I started by parsing the JSON response from the REST Cloud API which contains key information like the date and time the data was retrieved, the device ID, and the actual sensor data. To access and display this information, I used an HTTP client called Axios. Using Axios, I can make HTTP requests and retrieve data from tools like Postman, which I then render directly onto the website. I was able to see the JSON response in the Postman tool, but when I used the Axios API I was not able to get anything. It kept returning error code 4200. I was getting a response from the REST Cloud endpoint, but not the one I wanted. I then realized that I had not set the Bearer token field as part of the Header. Once I set it up correctly, it worked.
Right now, the data is displayed in a readable list format, with each individual data point shown clearly on the page. This was a good first step, but I’ve run into a challenge when it comes to turning this data into a visual graph. Creating the graph has been tough, especially because I’m still learning the tools. A lot of the code was implemented with the help of guides, so I don’t fully understand everything yet. To improve my understanding and capabilities with the tool, I’ve started taking online classes and tutorials in the subject as well. While I work through this learning curve, I’m also experimenting with displaying the data in Google Sheets as a temporary solution for visualization. I am not very confident that I will be able to get the chart fully working in next few weeks as now I realize that it will take many months to become a Full Stack developer. I am still happy that I have got the JSON response and I understand how different client side Web Technologies work.
Also, I am learning more about Linux Systems programming, as Linux programming is a foundation for most IoT Device development. I am really learning how pointers and memory management and file management work. I have started to understand how a real operating system is implemented and I have yet so much to learn.
Leave a Reply
You must be logged in to post a comment.