I have been looking around at a number of ways to collect sensor data and upload it to the web so it can be viewed remotely. This is not strictly Ardunio coding but how to integrate a graphical display of sensor date it is collecting.
So bit of back ground
I have a set up on my fish tank to using an ESP8266 / RTC module / OLED / Temp sensor and dot star lighting strips to check time, fade lighting on and off (plus various lighting phases such as sunset and moon light). and to check temp and show alert on the OLED if it goes out of a set range.
As I am already connect to wireless (for NTP to get corrrect time) I want to send the temp reading every 5 miniutes to a site / the cloud and have a way to show "current temp and light" + graph over a set time frame.
Now i have read a few ways to do this.
run a simple websever on the esp8266 but due to limited on board memory and not really wanting to have the device exposed the the Internet for security reasons (I would not trust my coding to be secure)
I looked at IFTTT site but could not find a existing aplet / service that does what i wanted. Also a lot of the solutions there save to a google (or other) doc and this is not really what I want and it does not make a good source for a website.
Code up a website with a simple back end DB. This is possible but I am no web developer so would be building it from scratch, both the ingesting on the data and the graphing interface.
Does any one know of any services that already do this, ie a service that I can send data to and then create a web interface to display the data in a graphical manor?
I am fine coding the ESP8266 to send a push or get call to a URL, its the website side of things I am looking for a solution to.
Really just looking for any ideas i might have missed or any pointers from some one who has done similar.
Raspberry PI running node-red, mosquitto and influxdb
Send the data using the MQTT protocol. This is a protocol developed for sensors. Its supported by an Arduino library. Runs on top of TCP/IP.
mosquitto is a MQTT message broker, some nodes publish and other nodes subscribe
node-red is a programming tool using the browser, graphical nodes and JavaScript. There are MQTT nodes that can receive the data and provide them on a nice webinterface. Node-red is preinstalled on Noobs Raspbian. Node-red can do all kinds of stuff including sending emails. So you can look at the data when you are at home, stay behind your firewall but in emergency sitiuation you get a notification to your smartphone.
This is common with Arduino. All you do is wrap up the data in the required manner, and they do the rest. No need for a Raspberry Pi and probably no need to re-invent the wheel.
I am glad I could help. Good luck with your project.
Hi Nick,
you are right if you don't want anything to do with the data management using a cloud option is a good idea. However, if you want to learn how all the magic works settings this up on a Raspberry Pi is actually a lot of fun and you get to keep your data. Thanks for the suggestion.