Enable Smart Alerts

Freedom makes it easy to generate alerts automatically when something goes wrong. We call these Smart Alerts.

You can create Smart Alert triggers to monitor connectivity, activity, diagnostics, battery level, system resources, and topic bandwidth, or to report when a value falls outside a certain range.

Set up Smart Alerts

We've made common issues easy to report by providing default Smart Alert triggers you can customize for your device.

Let's test this out. First, select your device and navigate to SETTINGS → SMART ALERTS. By default, Freedom enables the following Smart Alerts for common robot issues:

Let's take a closer look at a device's smart alert. The battery < 0.85 alert looks like this:

With this alert enabled, Freedom will monitor the topic /battery_state and listen to the element ["charge_level"]. If the value goes below 0.5, the trigger is activated, and an alert is generated.

Test your alert

Let's test this out! Ordinarily, your robot would be reporting its voltage to the battery/voltage topic, and Freedom would upload the data to the cloud. We'll take a shortcut here and send a battery voltage message using the Freedom API to trigger the alert.

If you haven't already, click Log In in the top right corner of this page so we can populate the values for your token, secret, account, and device for this example. Once you've logged in, run the following command:

HEADERS="-H content-type:application/json -H mc_token:$TOKEN -H mc_secret:$SECRET"
    \"platform\": \"custom\", 
    \"utc_time\": `date +%s`,
    \"topic\": \"/battery_state\",
    \"type\": \"std_msgs/Float32\",
    \"data\": {\"charge_level\": 30.0}

curl -v $HEADERS -d "$DATA" -X PUT "<<API_URL>>accounts/$ACCOUNT/devices/$DEVICE/data"

This sends a message to Freedom that your robot's battery charge level is currently 30.0, which will trigger the LOW BATTERY Smart Alert.

We enable email notifications to the address associated with your account for alerts of level INFO and higher by default, so you'll soon receive an email describing the alert!

In the Integrations section of this guide, we'll walk through how to customize these notifications and connect to other services.

What’s Next