Thingsee Support

More complex purpose for new dashboard

The following profile measures environment data (temperature, ambient light levels, humidity and air pressure), battery level and charger status together with GPS location and speed values every 10 seconds (10000 milliseconds).

You can either copy this code to a code editor software (recommended: Notepad++ or WordPad) and name it profile.jsn (JavaScript file) or downloaded it from the bottom of the page.

{
  "pId": "1",
  "apiVersion": "00.18",
  "initPuId": 1,
  "purposes": [
    {
      "puId": 1,
      "name": "Garage",
      "initStId": 0,
      "states": [
        {
          "stId": 0,
          "name": "Observing",
          "events": [
            {
              "evId": 0,
              "name": "Environment",
              "actions": {
                "cloud": {
                  "sendEvent": true,
                  "sendPush": true
                }
              },
              "causes": [
                {
                  "sId": "0x00060100",
                  "threshold": {
                    "count": 1
                  },
                  "measurement": {
                    "log": false,
                    "interval": 10000
                  },
                  "thresholds": {
                    "isAny": true
                  }
                },
				{
                  "sId": "0x00060200",
                  "threshold": {
                    "count": 1
                  },
                  "measurement": {
                    "log": false,
                    "interval": 10000
                  },
                  "thresholds": {
                    "isAny": true
                  }
                },
				{
                  "sId": "0x00060300",
                  "threshold": {
                    "count": 1
                  },
                  "measurement": {
                    "log": false,
                    "interval": 10000
                  },
                  "thresholds": {
                    "isAny": true
                  }
                },
                {
                  "sId": "0x00060400",
                  "threshold": {
                    "count": 1
                  },
                  "measurement": {
                    "log": false,
                    "interval": 10000
                  },
                  "thresholds": {
                    "isAny": true
                  }
                }
              ]
            },
            {
              "evId": 1,
              "name": "Battery",
              "actions": {
                "cloud": {
                  "sendEvent": true,
                  "sendPush": true
                }
              },
              "causes": [
                {
                  "sId": "0x00030200",
                  "threshold": {
                    "count": 1
                  },
                  "measurement": {
                    "log": false,
                    "interval": 10000
                  },
                  "thresholds": {
                    "isAny": true
                  }
                },
				{
                  "sId": "0x00030400",
                  "threshold": {
                    "count": 1
                  },
                  "measurement": {
                    "log": false,
                    "interval": 10000
                  },
                  "thresholds": {
                    "isAny": true
                  }
                }
              ]
            },
            {
              "evId": 2,
              "name": "Location",
              "actions": {
                "cloud": {
                  "sendEvent": true,
                  "sendPush": true
                }
              },
              "causes": [
                {
                  "sId": "0x00010700",
                  "threshold": {
                    "count": 1
                  },
                  "measurement": {
                    "log": false,
                    "interval": 10000
                  },
                  "thresholds": {
                    "isAny": true
                  }
                },
				{
                  "sId": "0x00020100",
                  "threshold": {
                    "count": 1
                  },
                  "measurement": {
                    "log": false,
                    "interval": 10000
                  },
                  "thresholds": {
                    "isAny": true
                  }
                }
              ]
            }
          ]
        }
      ]
    }
  ]
}
Have more questions? Submit a request

Comments

  • Avatar
    Giuseppe Platania / Bell Canada

    Hi, when I try to import this file in the THINGSEE CREATOR I get an error. Can you help out?

  • Avatar
    Thingsee Support

    Hi Giuseppe,

    You cannot import this purpose to Thingsee Creator, but only to your device's SD card.
    This is because location sensor has a different syntax for this new SW version as described on the instructions article.

    Regards,
    Paulo