Interacting with Web Services
Firstly, you will need to register and create a new user in the Binary IoT Cloud online platform.
Calling a Web API with Python
Create a new variable named api_url with the following link which is the cloud platform's API web endpoint:
The complete code for the send_data() method is shown bellow:
Complete Code1
Viewing the Smart Garden Data
The data that you view in this table are the environmental
Using Sensor Data and Big Datasets for Data-Driven Decision Making
Explain the use of a Web API.
Why are the username and the password required to connect to the Web API? Think of two reasons and write them down.
Which code lines do you have to change to modify the conditions required to start watering the plant and the duration of the watering?
Describe what readings other than temperature and humidity can be collected in a smart garden environment.
Suppose you could also read past data from an online cloud platform. You could not only have current environmental readings to use, but data from the past as well.
Compare the JSON and CSV data format types.