Create your own Electric Fence Monitoring solution in 3 CLI commands

September 27, 2022

You can get your own Electric Fence Monitoring solution 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 type and place.

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 electric fence 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 voltage sensors in their respective positions on the fence, according to the limit ranges you pre-set.

{% c-line language="shell" %}$ newman run --folder "2. Updates and Events" --delay-request 2000 --env-var token=<YOUR_API_KEY> -e env.json{% c-line-end %}

The "--delay-request 2000" will ensure that there is a delay of 2 seconds between the execution of each event.

That's it! Your very own electric fence 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: Electric Fence Postman Collection

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