Create your own Soil Moisture Monitoring solution in 3 CLI commands

September 27, 2022

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!


  • Have a Sky Ledge Account. If you don't, checkout the video below or the documentation

CLI Commands

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 --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 --folder Iterations --iteration-data --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 --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 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

How do you want to see, predict and respond?
Get Started