Skip to content

Commit

Permalink
add json files for OneEdge portal
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiopi-tlt committed Sep 23, 2020
1 parent be21d44 commit 5e1802b
Show file tree
Hide file tree
Showing 15 changed files with 94 additions and 2 deletions.
12 changes: 11 additions & 1 deletion Samples/BRAVO_Environment_BSEC_Demo/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

---

#### Prerequisites
#### Prerequisites on the module

This application requires the file **object_26251.xml** (provided) to be stored into module's `/mod/` folder, along with the application binary itself.

Expand All @@ -22,6 +22,16 @@ To load it, use

And at prompt, send the file content in raw mode.

#### Prerequisites on the OneEdge Portal

This application requires the **object_26251.xml** content to be stored in your OneEdge organization object registry. The latter can be accessed from the link https://<server_url>/lwm2m/object_registry
where <server_url> could be for example `portal-dev.telit.com`. open the xml file in a notepad tool, select all the content and copy it. Then, in the object registry webpage, press "New Object" button on the right and paste the content of the xml file, then press Add button.

Now from Developer webpage, go in **Thing Definitions** page from the list on the left and press `Import` button on the right. Press `Attach File` and provide `json/bravo_EnvironmentalDemo_thing_def.json` from the project root, then press `Import`.

Again from the Developer webpage, select **Device Profiles**, `Import` button, `Attach File` and provide `json/bravo_EnvironmentalDemo_device_profile.json`, then press `Import`.


** External Libraries **

To build the application it is required to put `libalgobsec.ar` file into the project's BOSCH/BSEC folder. The library can be retrieved at the link
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[{"id":"5f6b2fd014c978449aacd0eb","name":"Bravo Board - EnvironmentalDemo device profile","readOnUpdate":[{"objId":26251,"instId":0}],"observations":[{"objId":26251,"instId":0}],"bindings":[{"objId":26251,"instId":0,"resId":1,"type":"property","key":"prop_temp"},{"objId":26251,"instId":0,"resId":2,"type":"property","key":"prop_pressure"},{"objId":26251,"instId":0,"resId":3,"type":"property","key":"prop_humidity"},{"objId":26251,"instId":0,"resId":4,"type":"property","key":"prop_iaq"}],"smsc":"infobip","bootstrapServers":[{"type":"self","securityMode":"dtls-psk","shortId":99,"lifetime":60,"notificationStoring":true,"binding":"UQ","smsNumber":"inherit"}],"coapAckTimeout":5,"coapMaxRetransmit":3,"firmware":{"objId":5,"instId":0,"resId":7,"encoding":0,"protocol":"http","checkOnUpdate":false,"setObsAttrs":false},"locationDonationEnabled":false}]
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[{"key":"bravo_environmental_thingdef","name":"Bravo Board - EnvironmentalDemo thing definition","version":4,"autoDefProps":false,"autoDefAttrs":false,"properties":{"prop_humidity":{"name":"Humidity","unit":"%RH","calcAggregates":true,"scale":"$(value)","deDuplicate":false,"searchable":false},"prop_iaq":{"name":"IAQ","calcAggregates":true,"scale":"$(value)","deDuplicate":false,"searchable":false},"prop_pressure":{"name":"Pressure","unit":"mbar","calcAggregates":true,"scale":"$(value)","deDuplicate":false,"searchable":false},"prop_temp":{"name":"Temp","unit":"\u00b0C","calcAggregates":true,"scale":"$(value)","deDuplicate":false,"searchable":false}},"tunnelAdHoc":false,"locations":{"noDecode":false,"simpleMode":false}}]
10 changes: 10 additions & 0 deletions Samples/BRAVO_Rotation_Demo/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,16 @@ To load it, use

And at prompt, send the file content in raw mode.

#### Prerequisites on the OneEdge Portal

This application requires the **object_26250.xml** content to be stored in your OneEdge organization object registry. The latter can be accessed from the link https://<server_url>/lwm2m/object_registry
where <server_url> could be for example `portal-dev.telit.com`. open the xml file in a notepad tool, select all the content and copy it. Then, in the object registry webpage, press "New Object" button on the right and paste the content of the xml file, then press Add button.

Now from Developer webpage, go in **Thing Definitions** page from the list on the left and press `Import` button on the right. Press `Attach File` and provide `json/bravo_3D-RotationDemo_thing_def.json` from the project root, then press `Import`.

Again from the Developer webpage, select **Device Profiles**, `Import` button, `Attach File` and provide `json/bravo_3D-RotationDemo_device_profile.json`, then press `Import`.


---


Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[{"id":"5f6b1bfd80cbbb56c9bd160c","name":"Bravo Board - 3D-RotationDemo profile","readOnUpdate":[{"objId":26250,"instId":0}],"observations":[{"objId":26250,"instId":0}],"bindings":[{"objId":26250,"instId":0,"resId":1,"type":"property","key":"prop_w"},{"objId":26250,"instId":0,"resId":2,"type":"property","key":"prop_x"},{"objId":26250,"instId":0,"resId":3,"type":"property","key":"prop_y"},{"objId":26250,"instId":0,"resId":4,"type":"property","key":"prop_z"},{"objId":26250,"instId":0,"resId":5,"type":"property","key":"prop_accuracy"}],"smsc":"infobip","bootstrapServers":[{"type":"self","securityMode":"dtls-psk","shortId":99,"lifetime":60,"notificationStoring":true,"binding":"UQ","smsNumber":"inherit"}],"coapAckTimeout":5,"coapMaxRetransmit":3,"firmware":{"objId":5,"instId":0,"resId":7,"encoding":0,"protocol":"http","checkOnUpdate":false,"setObsAttrs":false},"locationDonationEnabled":false}]
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[{"key":"bravo_3d-rotationdemo","name":"Bravo Board - 3D-RotationDemo thing definition","version":4,"autoDefProps":false,"autoDefAttrs":false,"properties":{"prop_accuracy":{"name":"3D_accuracy","calcAggregates":true,"scale":"$(value)","deDuplicate":false,"searchable":false},"prop_w":{"name":"3D_w","calcAggregates":true,"scale":"$(value)","deDuplicate":false,"searchable":false},"prop_x":{"name":"3D_x","calcAggregates":true,"scale":"$(value)","deDuplicate":false,"searchable":false},"prop_y":{"name":"3D_y","calcAggregates":true,"scale":"$(value)","deDuplicate":false,"searchable":false},"prop_z":{"name":"3D_z","calcAggregates":true,"scale":"$(value)","deDuplicate":false,"searchable":false}},"tunnelAdHoc":false,"locations":[]}]
10 changes: 10 additions & 0 deletions Samples/BRAVO_SmartLock_Demo/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,16 @@ To load it, use

And at prompt, send the file content in raw mode.

#### Prerequisites on the OneEdge Portal

This application requires the **object_26247.xml** content to be stored in your OneEdge organization object registry. The latter can be accessed from the link https://<server_url>/lwm2m/object_registry
where <server_url> could be for example `portal-dev.telit.com`. open the xml file in a notepad tool, select all the content and copy it. Then, in the object registry webpage, press "New Object" button on the right and paste the content of the xml file, then press Add button.

Now from Developer webpage, go in **Thing Definitions** page from the list on the left and press `Import` button on the right. Press `Attach File` and provide `json/bravo_SmartLock_thing_def.json` from the project root, then press `Import`.

Again from the Developer webpage, select **Device Profiles**, `Import` button, `Attach File` and provide `json/bravo_SmartLock_device_profile.json`, then press `Import`.

Lastly, from the Developer webpage, select **Triggers**, `Actions` menu on the right, `Import` , `Attach File` and provide `json/bravo_SmartLock_triggers.json`, then press `Import`. Now open the trigger **bravo_SmartLockDemo_state_trigger** by pressing the View button (the eye icon on the left) and be sure to press the `play` button, and that the trigger status is 'started'.

#### Calibration
At application startup, the board red LED will turn ON. After it turns OFF, move the board to perform a door open movement. Wait 3 seconds, then perform a door close movement.
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[{"id":"5f6afd5a80cbbb56c9b58afe","name":"Bravo Board - SmartLock profile","readOnUpdate":[{"objId":26247,"instId":0,"resId":1}],"observations":[{"objId":26247,"instId":0,"resId":1}],"bindings":[{"objId":26247,"instId":0,"resId":1,"type":"attribute","key":"attr_smartlock_state"}],"smsc":"infobip","bootstrapServers":[{"type":"self","securityMode":"dtls-psk","shortId":99,"lifetime":60,"notificationStoring":true,"binding":"UQ","smsNumber":"inherit"}],"coapAckTimeout":5,"coapMaxRetransmit":3,"firmware":{"objId":5,"instId":0,"resId":7,"encoding":0,"protocol":"http","checkOnUpdate":false,"setObsAttrs":false},"locationDonationEnabled":false}]
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[{"key":"bravo_smartlockdemo","name":"Bravo Board - SmartLockDemo thing definition","version":7,"autoDefProps":false,"autoDefAttrs":false,"attributes":{"attr_smartlock_state":{"name":"SmartLock state","searchable":false}},"alarms":{"smartlook_state":{"name":"SmartLook state","states":[{"name":"Opened","color":"#FF0000"},{"name":"Closed","color":"#00FF00"}],"searchable":false}},"tunnelAdHoc":false,"locations":{"noDecode":false,"simpleMode":false}}]
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[{"name":"Bravo_SmartLockDemo_state_trigger","started":false,"eventType":"lwm2m.resource.change","event":{"instanceId":"0","objectId":"26247","resourceId":"1"},"reportMode":"failure","reportUntil":"0001-01-01T00:00:00Z","actions":{"1":{"type":"alarm.publish","params":{"alarmKey":"smartlook_state","msg":"SmartLock opened!","republish":"false","state":"0","thingKey":"$(event.thing.key)"},"canvas":{"failure":"failure-end0","left":"543","success":"success-end0","top":"99"},"routes":{"failure":"$endFailure","success":"$endSuccess"}},"2":{"type":"math.if","params":{"expr":"$(event.value) == 2"},"canvas":{"diamond_failure":"failure-end1","left":"149","top":"-22"},"routes":{"failure":"$endFailure","false":"3","true":"1"}},"3":{"type":"math.if","params":{"expr":"$(event.value) == 1"},"canvas":{"diamond_failure":"failure-end1","left":"149","top":"128"},"routes":{"failure":"$endFailure","true":"4"}},"4":{"type":"alarm.publish","params":{"alarmKey":"smartlook_state","msg":"SmartLock closed","republish":"false","state":"1","thingKey":"$(event.thing.key)"},"canvas":{"failure":"failure-end0","left":"363","success":"success-end0","top":"328"},"routes":{"failure":"$endFailure","success":"$endSuccess"}}},"firstAction":"2","canvas":{"event":{"left":"138","top":"-116"},"failure-end":[{"left":"543","top":"477"},{"left":"18","top":"477"}],"success-end":[{"left":"633","top":"477"}]},"dailySuccessCount":0,"dailyFailureCount":0}]
11 changes: 11 additions & 0 deletions Samples/BRAVO_Tampering_Demo/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,17 @@ To load it, use

And at prompt, send the file content in raw mode.

#### Prerequisites on the OneEdge Portal

This application requires the **object_26242.xml** content to be stored in your OneEdge organization object registry. The latter can be accessed from the link https://<server_url>/lwm2m/object_registry
where <server_url> could be for example `portal-dev.telit.com`. open the xml file in a notepad tool, select all the content and copy it. Then, in the object registry webpage, press "New Object" button on the right and paste the content of the xml file, then press Add button.

Now from Developer webpage, go in **Thing Definitions** page from the list on the left and press `Import` button on the right. Press `Attach File` and provide `json/bravo_TamperDemo_thing_def.json` from the project root, then press `Import`.

Again from the Developer webpage, select **Device Profiles**, `Import` button, `Attach File` and provide `json/bravo_TamperDemo_device_profile.json`, then press `Import`.

Lastly, from the Developer webpage, select **Triggers**, `Actions` menu on the right, `Import` , `Attach File` and provide `json/bravo_TamperDemo_triggers.json`, then press `Import`. Now open the trigger **bravo_TamperDemo_state_trigger** by pressing the View button (the eye icon on the left) and be sure to press the `play` button, and that the trigger status is 'started'.

---


Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[{"id":"5db172ec14c9787d0869312b","name":"Bravo Board - TamperDemo profile","desc":"TamperDemo_profile","observations":[{"objId":26242,"instId":0,"resId":1}],"bindings":[{"objId":26242,"instId":0,"resId":1,"type":"attribute","key":"attr_tamper_state"}],"smsc":"infobip","bootstrapServers":[{"type":"self","securityMode":"dtls-psk","shortId":99,"lifetime":60,"notificationStoring":true,"binding":"UQ","smsNumber":"inherit"}],"coapAckTimeout":5,"coapMaxRetransmit":3,"firmware":{"objId":5,"instId":0,"resId":7,"encoding":0,"protocol":"http","checkOnUpdate":false,"setObsAttrs":false},"locationDonationEnabled":false}]
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[{"key":"bravo_tamperdemo","name":"Bravo Board - TamperDemo thing definition","version":6,"autoDefProps":false,"autoDefAttrs":false,"attributes":{"attr_tamper_state":{"name":"tamper state","searchable":false}},"alarms":{"tamper_state":{"name":"tamper state","states":[{"name":"STILL","color":"#FFFFFF"},{"name":"WALKING","color":"#160FF7"},{"name":"RUNNING","color":"#05F2FA"},{"name":"ON BICICLE","color":"#08FC59"},{"name":"IN VEHICLE","color":"#F2FA08"},{"name":"TILTING","color":"#F79A0F"},{"name":"TAMPERING","color":"#F70F0F"}],"searchable":false}},"tunnelAdHoc":false,"locations":{"noDecode":false,"simpleMode":false}}]
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[{"name":"bravo_TamperDemo_state_trigger","desc":"TamperDemo_state_trigger","started":true,"eventType":"lwm2m.resource.change","event":{"instanceId":"0","objectId":"26242","resourceId":"1","thingTags":[""]},"reportMode":"failure","reportUntil":"0001-01-01T00:00:00Z","actions":{"1":{"type":"alarm.publish","params":{"alarmKey":"tamper_state","msg":"still activity started","republish":"false","state":"0","thingKey":"$(event.thing.key)"},"canvas":{"failure":"failure-end0","left":"808","success":"success-end0","top":"86"},"routes":{"failure":"$endFailure","success":"$endSuccess"}},"10":{"type":"math.if","params":{"expr":"$(event.value) == 13"},"canvas":{"diamond_failure":"failure-end1","left":"153","top":"748"},"routes":{"failure":"$endFailure","false":"15","true":"12"}},"11":{"type":"alarm.publish","params":{"alarmKey":"tamper_state","republish":"false","state":"4","thingKey":"$(event.thing.key)"},"canvas":{"failure":"failure-end0","left":"422","success":"success-end0","top":"596"},"routes":{"failure":"$endFailure","success":"$endSuccess"}},"12":{"type":"alarm.publish","params":{"alarmKey":"tamper_state","republish":"false","state":"5","thingKey":"$(event.thing.key)"},"canvas":{"failure":"failure-end0","left":"376","success":"success-end0","top":"758"},"routes":{"failure":"$endFailure","success":"$endSuccess"}},"15":{"type":"math.if","params":{"expr":"$(event.value) == 0"},"canvas":{"diamond_failure":"failure-end1","false":"success-end0","left":"163","top":"950"},"routes":{"failure":"$endFailure","false":"$endSuccess","true":"16"}},"16":{"type":"alarm.publish","params":{"alarmKey":"tamper_state","republish":"false","state":"6","thingKey":"$(event.thing.key)"},"canvas":{"failure":"failure-end0","left":"476","success":"success-end0","top":"1056"},"routes":{"failure":"$endFailure","success":"$endSuccess"}},"2":{"type":"math.if","params":{"expr":"$(event.value) == 8"},"canvas":{"diamond_failure":"failure-end1","left":"149","top":"-22"},"routes":{"failure":"$endFailure","false":"3","true":"1"}},"3":{"type":"math.if","params":{"expr":"$(event.value) == 9"},"canvas":{"diamond_failure":"failure-end1","left":"151","top":"129"},"routes":{"failure":"$endFailure","false":"5","true":"4"}},"4":{"type":"alarm.publish","params":{"alarmKey":"tamper_state","msg":"started to walk","republish":"false","state":"1","thingKey":"$(event.thing.key)"},"canvas":{"failure":"failure-end0","left":"734","success":"success-end0","top":"229"},"routes":{"failure":"$endFailure","success":"$endSuccess"}},"5":{"type":"math.if","params":{"expr":"$(event.value) == 10"},"canvas":{"diamond_failure":"failure-end1","left":"154","top":"291"},"routes":{"failure":"$endFailure","false":"7","true":"6"}},"6":{"type":"alarm.publish","params":{"alarmKey":"tamper_state","msg":"started to running","republish":"false","state":"2","thingKey":"$(event.thing.key)"},"canvas":{"failure":"failure-end0","left":"589","success":"success-end0","top":"364"},"routes":{"failure":"$endFailure","success":"$endSuccess"}},"7":{"type":"math.if","params":{"expr":"$(event.value) == 11"},"canvas":{"diamond_failure":"failure-end1","left":"154","top":"415"},"routes":{"failure":"$endFailure","false":"9","true":"8"}},"8":{"type":"alarm.publish","params":{"alarmKey":"tamper_state","republish":"false","state":"3","thingKey":"$(event.thing.key)"},"canvas":{"failure":"failure-end0","left":"495","success":"success-end0","top":"489"},"routes":{"failure":"$endFailure","success":"$endSuccess"}},"9":{"type":"math.if","params":{"expr":"$(event.value) == 12"},"canvas":{"diamond_failure":"failure-end1","left":"153","top":"579"},"routes":{"failure":"$endFailure","false":"10","true":"11"}}},"firstAction":"2","canvas":{"event":{"left":"138","top":"-116"},"failure-end":[{"left":"1439","top":"548"},{"left":"-439.34757558990515","top":"612.5198666020519"}],"success-end":[{"left":"1011","top":"1048"}]},"dailySuccessCount":0,"dailyFailureCount":0,"execTime":2361039,"lastResetOn":"2019-11-06T15:03:50.466Z"}]
Loading

0 comments on commit 5e1802b

Please sign in to comment.