Paulo Lopes
Published

Thingsee One 3D Demo

Display basic parameters from a Thingsee One in a web app. Sensors used are ambient, battery level and variations in the accelerometer.

BeginnerProtip6 minutes758
Thingsee One 3D Demo

Things used in this project

Hardware components

Thingsee One
Thingsee One
×1

Story

Read more

Code

PROFILE

JSON
{
  "apiVersion":"1",
  "pId":"5617074df77ae153648d1d72",
  "name":"","initPuId":1,
  "purposes":[
    {
      "puId":1,
      "name":"3D Demo",
      "initStId":0,
      "states":[
        {
          "stId":0,
          "name":"Dator",
          "events":[
            {
              "evId":0,
              "name":"Acceleration information",
              "actions":{
                "cloud":{
                  "sendEvent":true,
                  "host":"3d.thingsee.com",
                  "api":"api/events"
                }
              },
              "causes":[
                {
                  "sId":"0x00050100",
                  "threshold":{
                    "count":1
                  },
                  "measurement":{
                    "log":false
                  },
                  "thresholds":{
                    "isAny":true
                  }
                },
                {
                  "sId":"0x00050200",
                  "threshold":{
                    "count":1
                  },
                  "measurement":{
                    "log":false
                  },
                  "thresholds":{
                    "isAny":true
                  }
                },
                {
                  "sId":"0x00050300",
                  "threshold":{
                    "count":1
                  },
                  "measurement":{
                    "log":false
                  },
                  "thresholds":{
                    "isAny":true
                  }
                }
              ]
            },
            {
              "evId":1,
              "name":"Environment",
              "actions":{
                "cloud":{
                  "sendEvent":true,
                  "host":"3d.thingsee.com",
                  "api":"api/events"
                }
              },
              "causes":[
                {
                  "sId":"0x00060100",
                  "threshold":{
                    "count":1
                  },
                  "measurement":{
                    "log":false,
                    "interval":5000
                  },
                  "thresholds":{
                    "isAny":true
                  }
                },
                {
                  "sId":"0x00060200",
                  "threshold":{
                    "count":1
                  },
                  "measurement":{
                    "log":false,
                    "interval":5000
                  },
                  "thresholds":{
                    "isAny":true
                  }
                },
                {
                  "sId":"0x00060400",
                  "threshold":{
                    "count":1
                  },
                  "measurement":{
                    "log":false,
                    "interval":5000
                  },
                  "thresholds":{
                    "isAny":true
                  }
                },
                {
                  "sId":"0x00030200",
                  "threshold":{
                    "count":1
                  },
                  "measurement":{
                    "log":false,
                    "interval":10000
                  },
                  "thresholds":{
                    "isAny":true
                  }
                }
                ]
            }
            ]
        },
        {
          "stId":1,
          "name":"Pause",
          "events":[
            {
              "evId":0,
              "name":"Go Back",
              "actions":{
                "engine":{
                  "gotoStId":0
                },
                "cloud":{
                  "sendEvent":false,
                  "sendPush":false
                }
              },
              "causes":[
              {
                "sId":"0x00080100",
                "threshold":{
                  "count":1,
                  "relative":true
                },
                "measurement":{
                  "log":false
                },
                "thresholds":{
                  "isOneOf":[1]
                }
              }
              ]
            }
          ]
        }
      ]
    }
  ]
}

thingsee-3d-demo

Credits

Paulo Lopes
2 projects • 1 follower
Startup evangelist working in an IoT company: Thingsee.

Comments