-
Notifications
You must be signed in to change notification settings - Fork 327
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Thingsboard integration problem #229
Comments
Hello. I was not aware of Thingsboard, but it looks very nice.
|
|
@kpranga I am working on the same. It is pretty cool. I will update too here. |
@kazi93, are you developing some plug-in for the server? Shall I stop and wait for you? |
@gotthardp Not really, please continue. I am trying to investigate the possible solution / integration. Mostly I am busy with the Mongodb -erlang adapter for the moment. |
Hello, just in case you might be interested, publishing data into ThingsBoard works pretty good. To make it work for one device you need to set Handlers format to 'Raw Data' and provide a 'Parse Uplink' function that will build JSON with values for your device: {"temperature" : "25.6", "humidity" : "27.0", "active" : "false"} etc.Don't know how to change device validations automatically though. |
Have a look into Integrations.md, Adafruit section. |
But still, I think its not a solution. Is it efficient in terms of server memory/processor time to use for example 300 Handlers for 300devices? :) Besides of work hours to set it up. |
Actually, jsx: set of functions is available from Parse Uplink, so you can use this to build utf8 JSON binary for it:
will result in:
|
|
@kpranga, the thingsboard.io talks about per-device Access Tokens or Certificates. I think that in any case there has to be one MQTT connection per device (which is not very resource friendly) and the question is only how the setup will be done, right? |
Yes, you are right. |
Hello, Thingsboard looks very interesting. Can someone share experience of similar projects for custom dashboards or customize UI/singledashboard which would be memory/processor efficient? I guess to have single handler for each device is the worst case scenario? |
Hello,
I am not (yet) sure which memory/processor is adequate for your needs, but ThingsBoard looks really nice. There is a small catch in it - to have the process of building dashboards and everything streamlined, you have to start with the device publishing some JSON to v1/me/telemetry, then you can shortcut through the menus, otherwise you do have to go all the way of creating a device, a dashboard for it, and then all the widgets you may want to get from it. Have a look at https://thingsboard.io/docs/getting-started-guides/helloworld/ - it should give you some ideas. In case of configuring MQTT, I'd suggest you go through Integrations doc (Adafruit topic) and their link to MQTT <https://thingsboard.io/docs/reference/mqtt-api/#key-value-format> guide page.
And be warned, ThingsBoard authenticates on a per-device basis! So, if you have multiple devices - you must have multiple connectors. OR, do it as I do it - one connector, but different JSON variable names. Like, instead of just "temperature" - "temperature-102-seiling" - then you can use one connector for every device.
With best regards,
Alexander Tishchenko
M: +7 (916) 704-61-57
E: atishch@gmail.com
… 9 нояб. 2017 г., в 16:14, Kralg ***@***.***> написал(а):
Hello, Thingsboard looks very interesting. Can someone share experience of similar projects for custom dashboards or customize UI/singledashboard which memory/processor efficient?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub <#229 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/ASj_3wobSrLURGL2-KBwZOWWn0RkshoQks5s0vqmgaJpZM4QMtLo>.
|
Hi, Thanks a lot. Yes, I do have multiple devices, and I stated thinking what would happen if the number of them grow to several hundreds or more. This is why I started thinking of something efficient. Also I think that authentication on a per device and MQTT connector for each of the device is madness in my case. However single connector sounds much better. |
Hello, And maybe someone have solution to downlink? data from subscribed device is not in "payload.fields" but in "payload" of JSON Thanks in advance |
Well, in publish topic you can use {devaddr} macro expansion. But, ask Petr
if it is at all possible to get devaddr in the uplink fun. (I think not).
пн, 27 нояб. 2017 г. в 15:18, kpranga <notifications@github.com>:
Hello,
@altishchenko <https://github.com/altishchenko> Do you know how to access
devaddr when passing uplink? I want to temporary use your method with
differenet JSON variable names like temperature-devaddr(variable) : value
Thanks in advance
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#229 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ASj_3wD0Lg0IjFFDZc78siKT6M3jbCafks5s6qiTgaJpZM4QMtLo>
.
--
Alexander Tishchenko +7 (916) 704-6157 atishch@gmail.com
|
The "macros" work in the topic only. For now. In the 0.5.0 I want to make it more consistent, so it should be possible in the future. |
Hi there. The ThingsBoard integration is now possible. It will be included in the future 0.5.0. |
Hi Petr, Could you tell me what is supouse to to for integrate Loraserver with TheThinkboard? |
Hello Cristian (@cristianhumelnicu ) did you have a look at Integration.md document? There is a section on ThingsBoard. |
Hi @altishchenko Yes but i can not yet figure out what is the best metod to enrole and to publish in thethingboard 1000 devices Could you guide me a little bit ? Thx! |
To the server or thingsboard? For the server side, you can do this:
|
sorry, nodes.json not .js |
Is all about thingsboard platform , how to transmit data from gotthard server ... So if I have 1000 lora device who transmit data from gotthard lora server how i will integrate easy in thinkboard? Each of loradevice transmit 8 parameters decripted with cayenne lpp connector from gotthard loraserver.. and i want to integrate it in thingsboard I can manage all functions from loraserver ... Than you! |
@cristianhumelnicu, please try to follow the Handlers.md, Connectors.md and (mainly) Integration.md documentation and open a new issue when you get stuck. |
@gotthardp , Hi Petr, ive done all things from integration.md for connecting to thingsboard.io Could you tell me if will working with cayenne lpp decoder or is need it to parse and build a json like @altishchenko has describe? |
If your device sends the LPP payload, the using LPP decode should work. |
@gotthardp , Yes is send LPP but i wanna plublish in thingsboard.io and i've seen in debug. log connector is failed to connect to "mqtt://demo.thingsboard.io" 2018-04-25 13:00:58.443 [debug] <0.725.0>@lorawan_connector_mqtt:handle_info:230 Connector <<"TB">> to <<"mqtt://demo.thingsboard.io">> (attempt31) failed: {shutdown,{connack_error,'CONNACK_AUTH'}} (count: 33) |
That mean .... client is not authorized to connect ... |
That is correct. Fix the user credentials. |
Credentials is corect .... I just try to logout and lon in again to demo.thingsboar.io with same user and paswd from connector |
And i have this from debug.log 2018-04-25 15:33:18.580 [warning] <0.1228.0>@lorawan_connector_mqtt:terminate:247 Connector TB terminated: {{shutdown,nxdomain},{gen_fsm,sync_send_event,[<0.1650.0>,{<0.1228.0>,ping},10000]}} |
|
I run lora server from windows ... Maybe is related with that ?! |
it is handler and connector settings ok ? I've post 3 pictures upper |
More from log....... 2018-04-25 15:57:57.202 [info] <0.2455.0> device 001B9EBFDE75DF7E {join,<<"062BE26D">>} |
@cristianhumelnicu What do you use for password with thingsboard.io? Your own password or 'device token'? If I remember correctly, for each device reporting to thingsboard you should use a device token specific to that device. |
@cristianhumelnicu Yes, I just double checked that. You should use your device's access token, as described here Getting Started |
@gotthardp , @altishchenko Hi Petr, Alex . This is part of debug.log |
BTW i've try user: cristian.humelnicu@gmail.com and password {token } and did not connected in anyway |
@cristianhumelnicu I am extremely sorry, I just reviewed my old connectors a little too quickly. If you had a look at the link I provided, you could have noticed, that device access token should be used as a username, not password - this one should be either left blank (try it out) or should be yours. As I remember, I left it blank in the past and it worked. Second, the data format should be JSON, with fields appropriately denoted, like: {"temperature": 21.3, "humidity": 75}. I've never heard that thingsboard understands other fancy formats, like LPP. |
@altishchenko Thank you for info Alex. That mean the is not working like Petr has describe in integration.md document. I just folow the steps from there and seems is not working ,,, |
@cristianhumelnicu, any idea about what? |
@gotthardp About what is wrong in to my setup .. and about what should i do to connect with thingsboard |
@cristianhumelnicu What you should do is: 1. Use JSON; 2. Use your device access token as a username. |
@altishchenko Ok Alex , i will tryto do that and if do not work I will open one new issue. Thank you ! |
Hi Petr , Hi Alex Is working with {apparg} at name and nothing to pass or other field and Also i can confirm is working with Cayenne LPP too if node sending in this format and thingsboard platform will recive field1 , field2 .. etc with values of that fields .. Thank you @gotthardp , @altishchenko ! |
I'm trying to integrate the backend of server with my thingsboard server.
Here are my problems:
The text was updated successfully, but these errors were encountered: