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!
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 https://www.getpostman.com/collections/778d5ae03f2f7b7fd68b --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/778d5ae03f2f7b7fd68b --folder Iterations --iteration-data https://docs.google.com/spreadsheets/d/1VSSJ9u0CUU01UhsHHlP7xCIEz0olBbedqKndspgAdLs/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 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 https://www.getpostman.com/collections/778d5ae03f2f7b7fd68b --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 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: Electric Fence Postman Collection