You can get your own Soil Moisture Monitoring set up in 3 simple CLI commands. Follow along below to be navigating your own Sky Ledge Control Room in no time!
From here on in, you're on the home stretch! Copy and paste the following 3 CLI commands in order and your control room will be ready to use. Make sure you only run each of these commands once.
The first step is to create the different entities in your account. The following command will create the environment required, including your assets, asset types, event types, place types and places.
In the following commands, make sure you replace <YOUR_API_KEY> with the Sky Ledge api key that you can retrieve by following this video: How to retrieve your Sky Ledge api key
{% c-line language="shell" %}$ newman run https://www.getpostman.com/collections/e568a8858e85c21816a4 --folder "1. Setup" --env-var token=<YOUR_API_KEY> --export-environment env.json{% c-line-end %}
Next, we want to populate our asset with historic data.
{% c-line language="shell" %}$ newman run https://www.getpostman.com/collections/e568a8858e85c21816a4 --folder Iterations --iteration-data https://docs.google.com/spreadsheets/d/1jg2Tm2Up272uB4xHzPM8F9jtgN_OJKbH3r5BCiktAfE/gviz/tq?tqx=out:csv --env-var token=<YOUR_API_KEY> -e env.json{% c-line-end %}
We now run the example events for the soil moisture monitoring solution within our control room. These will appear in the Event Stream as an example of what you can set up for clients. If you watch the control room as you run the following command, you will also see the change in colour in the soil moisture sensors within their respective Places, according to the limit ranges you pre-set.
{% c-line language="shell" %}$ newman run https://www.getpostman.com/collections/e568a8858e85c21816a4 --folder "2. Updates and Events" --env-var token=<YOUR_API_KEY> -e env.json{% c-line-end %}
Voila! Your very own soil moisture monitoring solution set up in minutes! If you run into any issues, feel free to contact us at support@skyledge.com or ask us in our Slack community.
If you'd like to access the Postman collection for this monitoring solution, we've made it publicly available so you can import it into your own Postman environment: Soil Moisture Postman Collection