The basic Internet-of-Things applications is mostly about collecting some data and storing it in the cloud, or reacting to the data changes.
It can improve a production process on factories, lower the defect rate, and so on. Also, it integrates into a life of ordinary people: smart fridges, homes, greenhouses, wearable electronics, etc.
Some systems have their servers to collect the data. Still, for the individuals, maintaining such infrastructure is too complicated and expensive. Here comes the XOD Cloud service. Using it you can store and retrieve any data.
XOD provides the standard library called xod-cloud/feeds
to work with cloud feeds easily. It has nodes to store and retrieve data.
You can see all your stored data at https://xod.io/feeds/
Now we’re going to store data in the cloud. In one of the next sections of the tutorial, we’ll retrieve the data and react to it.
You can see a cloud-store
node here. This node stores data to your private feed. The feed is log-like storage of your data. The name of the feed is a path, like a path in URL or your filesystem. For example, bob/smart-home-project/room1/temperature
. The cloud-store
node prepends the username and project name automatically to the path. That’s why we bound the "moisture"
value to the FEED
input instead of a full path.
The program is ready, but to make it work, you have to do a few things related to authorization.
tweak-number
node several times.YOUR_USERNAME/welcome-to-xod/moisture
.