Collecting and displaying sensor data to the web

Hi,

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.

  1. 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)

  2. 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.

  3. 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.

  4. 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.

Have a look at

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.

https://nodered.org/

from node-red you can store and read your data in a influxdb time based database. This is optional.

This is all quite easy to setup and there are many tutorials and youtube videos.

Cheers this looks quite interesting, but really I want to go straight to cloud and not have a raspberry-pi or broker on site.

I was hoping there might be services to build on, if not might look and see what amazon and azure can offer

In fact Kalus looking at AWS they have MQTT IoT services and multiply tools to display the data so i think you suggestion has lead me to what i want.

Cheers

DevilWAH:
I was hoping there might be services to build on, i

It sounds like you mean Internet of Things. You send the data to a service, they put it on the Internet, and you get to look at it from anywhere.

https://io.adafruit.com/ and several others

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.

Hi DevilWAH,

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. :slight_smile: Thanks for the suggestion.

Hi,
Look at Thingspeak

myDevices

Tom... :slight_smile:

Check the official arduino NANO 33 IoT
And arduino web services that suppots it.

Am looking through them, that point for going from a general idea abut no solution to more solutions tha i need.