zeke 693 Posted April 26, 2018 Share Posted April 26, 2018 I just stumbled upon DeviceHive. I am now wondering if anyone else out there has noticed it. Does anyone have any opinions on it? Quote Link to post Share on other sites
cubeberg 540 Posted April 27, 2018 Share Posted April 27, 2018 I'm going to have to check this out! I was wondering if something open source would pop up after Phant died. I killed off my IoT devices once I realized that wasn't going anywhere. Quote Link to post Share on other sites
zeke 693 Posted April 27, 2018 Author Share Posted April 27, 2018 Yeah, I was pretty bummed out too when phant died. Lately, I have been considering rolling my own tiny IoT system. My concept is to start small - very small, and then work outwards and upwards in complexity and scale. I have a perfect test case for this - my one wire data logger (photos attached). I also just signed up for a course on Interactive Python Dashboards with Plotly and Dash. I couldn't resist because it was only $10 because it's a new course. Click the link to get the deal, if you want. I figure that I can collect the data from my data logger over the serial port, stuff it into a local database, then display/interact with it via dashboard of some sort. But, it's got to be simple. I want to keep the complexity, scale, and scope low so that I can achieve success more quickly. Also, I don't want to get board or overwhelmed before I finish it. I have started so many things and not finished them. Grrr.... Quote Link to post Share on other sites
Rei Vilo 695 Posted April 28, 2018 Share Posted April 28, 2018 @zeke Why not give Node-RED a try? I’m very happy with Node-RED. It provides a GUI IDE, supports natively a variety of formats / protocols like JSON and MQTT, and features its own dashboard. It is expandable with additional nodes, for example to interface with an SQL database. See my reviews and projects at https://embeddedcomputing.weebly.com/iot-with-node-red.html, https://embeddedcomputing.weebly.com/sensortag-to-blynk-using-node-red.html and https://embeddedcomputing.weebly.com/isup2c-smartnode-smart-device.html. To get this... ... you just need that... zeke 1 Quote Link to post Share on other sites
zeke 693 Posted April 30, 2018 Author Share Posted April 30, 2018 Thank you Sir for recommending node-red. That is very interesting. In about an hour, I was able to figure out how to: Install node-red Connect it to my mosquitto server Install the node-red dashboard Configure node-red to display live data from one mqtt channel Nice! Now I have to program my datalogger to gather and report data. \o/ yay Rei Vilo 1 Quote Link to post Share on other sites
hmjswt 9 Posted May 1, 2018 Share Posted May 1, 2018 Hallo, Why not program it yourself. If you can program a TI LaunchPad you can program almost anything... In Processing. It has a lot op functions. Including voice reporting on all functions and data is saved in .CSV file. In Python, live graphic. Why use third party software when you can do it yourself? Greetings from the Netherlands, Henk Siewert zeke 1 Quote Link to post Share on other sites
Rei Vilo 695 Posted May 1, 2018 Share Posted May 1, 2018 17 hours ago, zeke said: Thank you Sir for recommending node-red. That is very interesting. In about an hour, I was able to figure out how to: Install node-red Connect it to my mosquitto server Install the node-red dashboard Configure node-red to display live data from one mqtt channel You're welcome, and congratulations for the test! I'm impressed by how many things you've achieved in just one hour zeke 1 Quote Link to post Share on other sites
cubeberg 540 Posted May 1, 2018 Share Posted May 1, 2018 @hmjswt - you could easily say that about a lot of things (C vs Assembly, roll your own database, etc.) I'm a web developer - but trying to figure out everything from hardware to reporting can kill a project pretty quickly. Like @zeke - I've got a lot of unfinished projects - usually because I get bored trying to get over obstacles in the project. Since DeviceHive supports MQTT - it should be pretty easy to port a project over to something else at a later point in a project. I was able to get a simple POC working with a Raspberry Pi on DeviceHive. Not too bad - it'll be a good place to start working on MQTT for some of the hardware I've got sitting around. I'm not so sure about deploying DeviceHive though - there are a lot of components to install - although they do have docker instructions. zeke 1 Quote Link to post Share on other sites
Rei Vilo 695 Posted May 1, 2018 Share Posted May 1, 2018 @cubeberg I haven't tried DeviceHive because the dashboard (provided by Grafana) is external. I'm surprised how well Node-RED works on a very basic and cost-effective Raspberry Pi Zero Wireless. As an additional benefit, the Raspberry Pi Zero Wireless features Bluetooth, so I can connect my SensorTag as per this project or this one. I'm using a USD25 Chinese tablet running on Android as a screen with Chrome running in kiosk mode. Just like many other hobbyists, I can't afford the not-invented-here syndrome due to lack of time and resources, as you rightly point out. Good luck with your project! zeke 1 Quote Link to post Share on other sites
zeke 693 Posted May 1, 2018 Author Share Posted May 1, 2018 Wow! All the good ideas are starting to flow. Keep it up everyone!!! @hmjswt, I had no idea Processing could do that. Cool! Quote Link to post Share on other sites
zeke 693 Posted May 1, 2018 Author Share Posted May 1, 2018 Now that I have tinkered with a small proof of concept test, I am wonder how far I can scale node-red. My temperature datalogger is quite the capable beast. The maximum number of sensors should be around 1600 which should only happen in the lab. Practical use cases would range between 50 and 650 sensors per installation. In those cases, I am wondering if DeviceHive (or anything else not custom) would be able to receive, store, and display that data in human friendly way? This is why I am considering a customized software system. Whatever I chose, it is going to be the path of least resistance to start with. Quote Link to post Share on other sites
hmjswt 9 Posted May 1, 2018 Share Posted May 1, 2018 49 minutes ago, zeke said: Wow! All the good ideas are starting to flow. Keep it up everyone!!! @hmjswt, I had no idea Processing could do that. Cool! O ja, how about a wether station: Processing is perfect for this sort of things. Quote Link to post Share on other sites
Rei Vilo 695 Posted May 2, 2018 Share Posted May 2, 2018 11 hours ago, zeke said: Now that I have tinkered with a small proof of concept test, I am wonder how far I can scale node-red. My temperature datalogger is quite the capable beast. The maximum number of sensors should be around 1600 which should only happen in the lab. You can easily interface Node-RED with a SQL database to store and retrieve all the data. Among many other options, mySQL, SQLlite... How often each sensor is reporting temperature? How critical is temperature? cubeberg 1 Quote Link to post Share on other sites
cubeberg 540 Posted May 2, 2018 Share Posted May 2, 2018 The DeviceHive python examples for the Pi are keeping my CPU at ~98% I couldn't get their dashboard tool connected either. I may mess around with Node-Red and see if that's not too hard. I used that before with my old IoT project and was able to get it to work pretty well. Quote Link to post Share on other sites
zeke 693 Posted May 2, 2018 Author Share Posted May 2, 2018 13 hours ago, Rei Vilo said: You can easily interface Node-RED with a SQL database to store and retrieve all the data. Among many other options, mySQL, SQLlite... How often each sensor is reporting temperature? How critical is temperature? Good questions! I would like to monitor the temperature of a silo full of grain. Maybe a million bushels? Any pile of grain is a gigantic thermal sink therefore the temperature ought not to change very rapidly. I would expect the temperature to be sampled no more than once every hour. But, that time interval should be user configurable. The neat thing about the logger design is that it has a large on board FRAM chip and an SD card slot that I can use as a data buffers. I haven't worked out the capacity yet because I haven't figured out the expected size of one measurement record. The FRAM is a 256Kbyte unit. The SD card is whatever an MSP430 can work with. The overarching goal is to watch the temperature and humidity of a grain pile. If it gets too wet then it can spoil. If the spoiling gets out of hand then the grain will spontaneously combust. Here are a number of interesting and, in some cases, deadly examples: [1], [2], [3], [4], [5], [6], and [7]. Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.