Node-RED is a programming tool for wiring together hardware devices, APIs and online services in new and interesting ways.
It provides a browser-based editor that makes it easy to wire together flows using the wide range of nodes in the palette that can be deployed to its runtime in a single-click. (src: nodered.org)
The website provide all information about installation, how to get started and where download the source code.
Download source filesAfter install Arduino and NodeRed in your computer, you can download the source code in: https://github.com/leoribg/sigfox_thinxtra_dashboard
In NodeRed you can import nodes by clicking in right up tab->import->clipboard and paste the code.
You will have to run NodeRed dashboard in a remote server to Sigfox backend can reach it. But your can run locally and test using postman software.
Configure Sigfox callbackLog in your Sigfox backend account and go to "Device Type", then click on your kit's name. In menu on the right tab, click on "callbacks". Click on "New" (upper-right corner) and then “Custom Callback".
- Url Pattern: http://yoursite.com/sigfox
- Content type: application/json
- Body:
{
"device":"{device}",
"time":{time},
"duplicate":{duplicate},
"snr":{snr},
"station":"{station}",
"data":"{data}",
"avgSnr":{avgSnr},
"latlng":[{lat},{lng}],
"rssi":{rssi},
"seqNumber":{seqNumber},
"name":"leo"
}
In property name put your name.
RunningAfter install and run the applications you can see the values coming from Thinxtra sensors in Graphs and Gauges. You can customize your dashboard as you want.
To visualize your data as in a spreadsheet, http://yoursite.com/sigfox/yourname
Hope you enjoy, if you have some contribution to improve or correct the project I would appreciate it.
Thank you!
Comments