thingsboard

尝试通过MQTT向thingsboard上的设备发送数据

前提是你 提交于 2020-02-26 23:49:46
在thingsboard demo网站上注册一个用户 https://demo.thingsboard.io/signup 注册完之后 ,激活注册邮箱,登录thingsboard demo网站 进入“Device”菜单 ,选中一个设备 复制设备 access token npm install mqtt -g mkdir mqtt cd mqtt wget https://gist.githubusercontent.com/ashvayka/13ee855a1a551f4f6c24adafc834cfaa/raw/19592eb850c9c09a8b5ef9579364940dee2e64f9/demo-tool.js code . 修改 demo-tool.js 将access token改为之前复制的 access token 执行命令 node tool-demo 可以看到通过mqtt服务向服务端发送每秒发送模拟数据 然后我们可以观察到 这个设备的遥测数据每隔1秒会变动一次 选中客户端属性 ,将这些属性显示到部件上 点击 添加到仪表盘,选择创建一个新的仪表盘 输入一个仪表盘名称 进入Dashbaord 选择刚才创建的仪表盘,添加更多的部件,我们添加两个Digital gauges类型的部件和两个Charts类型部件 选好数据源,可以拖拽部件控制它的大小和位置。最终效果如下。

ThingsBoard: plot timeseries with future timestamps in a chart widget

梦想的初衷 提交于 2019-12-23 03:58:10
问题 I've been having some troubles with TB in the last days. I have a generic variable (let's assume, for example, the external temperature), which measures are acquired at realtime using MQTT and tb-gateway. I also have the variable forecasts for a given future time period, acquired via MQTT from a Python module which performs the forecasting. I wish to plot in the same graph both the data acquired at realtime and the forecasted trend for a given time period (let's say for the next 24 hours),

Is it possible to get alarm data for the map widget in Thingsboard?

ε祈祈猫儿з 提交于 2019-12-14 03:22:49
问题 I am trying to change my marker based on an alarm I've created in Thingsboard. Currently the marker is displaying data from my "datasource" entity. However there is no way (that I have seen) that you can add an "Alarm source" similar to the alarm widget. The data available is "f(data, images, dsData, dsIndex)" which I assume is only the data telemetry. Basically I need to change the marker if an alarm is going off. My alarm trigger only goes off momentarily so I can't use my data telemetry

How to Publish Binary Data Using Thingsboard and MQTT API?

a 夏天 提交于 2019-12-13 07:34:52
问题 Per Thingsboard documentation, By default, ThingsBoard supports key-value content in JSON. Key is always a string, while value can be either string, boolean, double or long. Using custom binary format or some serialization framework is also possible. See protocol customization for more details... However, the protocol customization does not say much details. Can someone give more details about how to do publish binary data in Thingsboard using its MQTT API? Any help would be appreciated. 回答1:

Posting multiple data in IoT gateway Thingsboard

爷,独闯天下 提交于 2019-12-13 03:48:03
问题 I just now started using Thingsboard and I came across this one,https://thingsboard.io/docs/iot-gateway/getting-started/. I have implemented it but the problems that I'm facing are, 1.I can transmit only one Key-value pair. How can I transmit multiple key-value sensor data? 2.Also if there is any other way to access the Cassandra Database so that I can retrieve all mine data to Thingsboard. Please help. Thanking you. 回答1: For example, humidity, temperature, gas. In this case you use one

Adding Entity relations in Thingsboard using swagger API and python

為{幸葍}努か 提交于 2019-12-12 18:36:36
问题 I am trying to automatize the setup of a Thingsboard node. (2.0.2) I have managed to create assets and devices using the oss-thingsboard-backend-example. However, I did not succeed in creating relations. The code I am using is from tb_api_client import swagger_client from tb_api_client.swagger_client import ApiClient, Configuration,Device,AssetControllerApi,AssetSearchQuery,Asset,EntityRelation,EntityRelationControllerApi from tb_api_client.swagger_client.rest import ApiException tojson =

How to implement the SNMP protocol in ThingsBoard IoT platform?

℡╲_俬逩灬. 提交于 2019-12-11 18:31:49
问题 I am intend to use the SNMP agent to access values from a board, and visualise them in ThingsBoard dashboard. Have anyone an idea how to support that protocol in the ThingsBoard? 回答1: There is no SNMP support on Thingsboard. You will need to implement your own extension/adapter. You could either use one of Thingsboard API (mqtt, http, CoAp or mqtt-gateway). Or code your on extension directly inside Thingsboard IoT Gateway (Java). 来源: https://stackoverflow.com/questions/55212557/how-to

Thingsboard No 'Access-Control-Allow-Origin' header is present on the requested resource. angularjs

不问归期 提交于 2019-12-11 06:34:35
问题 I am working on fetch data of thingsboard Restfull Http Apis using GET method, but we are not able to get fetch data. Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:8888' is therefore not allowed access. The response had HTTP status code 401. We are calling Thingsboard Apis on Angularjs platform. How we can Solve this error. POST Method has been working fine, but we are

HTTP API Rest Controller POST `/api/plugins/rpc/oneway/{deviceId}` RPC calls do not reach the gateway

倖福魔咒の 提交于 2019-12-11 06:05:36
问题 Currently, I have Thingsboard and Thingsboard-gateway running together through the token of the gateway device, I can synchronize extensions via Thingsboard UI and generate new devices through the Thingsboard-gateway in Thingsboard. The problem I have is that rpc calls on the server side by HTTP API Rest Controller POST /api/plugins/rpc/oneway/{deviceId} only post the message in the topic v1/devices/me/rpc/request/+ and they do not reach the Thingsboard-gateway topic for rpc calls on the