This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import logging.handlers | |
import time | |
import os | |
from tb_gateway_mqtt import TBDeviceMqttClient | |
logging.basicConfig(level=logging.DEBUG) | |
client = None | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"title": "LwM2M Operations", | |
"image": null, | |
"mobileHide": false, | |
"mobileOrder": null, | |
"configuration": { | |
"description": "", | |
"widgets": { | |
"38246cc5-3c7c-633a-9240-78895978e4ae": { | |
"isSystemType": true, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"ruleChain": { | |
"additionalInfo": { | |
"description": "" | |
}, | |
"name": "Asset profile switch example", | |
"type": "CORE", | |
"firstRuleNodeId": null, | |
"root": false, | |
"debugMode": false, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var mqtt = require('mqtt'); | |
var args = process.argv.slice(2); | |
var token = args[0]; | |
var client = mqtt.connect('mqtt://demo.thingsboard.io', { | |
username: token | |
}); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
By making a contribution to this project, I certify that: | |
(a) The contribution was created in whole or in part by me and I | |
have the right to submit it under the Apache 2.0 license; or | |
(b) The contribution is based upon previous work that, to the best | |
of my knowledge, is covered under an appropriate open source | |
license and I have the right under that license to submit that | |
work with modifications, whether created in whole or in part | |
by me, under the Apache 2.0 license; or |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"widget": { | |
"isSystemType": true, | |
"bundleAlias": "maps", | |
"typeAlias": "route_map", | |
"type": "timeseries", | |
"title": "New widget", | |
"sizeX": 28, | |
"sizeY": 10, | |
"config": { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [ "$#" -ne 1 ]; then | |
echo "Usage: copy-ami.sh AMI_ID" | |
return 1 | |
fi | |
SRC_REGION=us-east-1 | |
SRC_AMI=$1 | |
NEW_AMI_NAME="Thingsboard 1.2.2 AMI for micro instances" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Requires node.js and mqtt library installed. | |
var mqtt = require('mqtt'); | |
var os = require("os"); | |
const thingsboardHost = "demo.thingsboard.io"; | |
// Reads the access token from arguments | |
const accessToken = process.argv[2]; | |
// Default topics. See http://thingsboard.io/docs/reference/mqtt-api/ for more details. | |
const attributesTopic = 'v1/devices/me/attributes'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Requires node.js and mqtt library installed. | |
var mqtt = require('mqtt'); | |
const thingsboardHost = "demo.thingsboard.io"; | |
// Reads the access token from arguments | |
const accessToken = process.argv[2]; | |
const minTemperature = 17.5, maxTemperature = 30, minHumidity = 12, maxHumidity = 90; | |
// Initialization of temperature and humidity data with random values | |
var data = { |
NewerOlder