Platforms for IoT Sensor Data

I have several IoT sensors at home and now I came to the point that I would like to introduce some solid platform for storing sensor data and visualizing them. This post summarize all platforms that I tried, searched and evaluated.

The Final Selection

After all considerations I decided to use:

  • for 24/7 Ubuntu 512MB Memory, 20GB SSD server (5USD/month) – you can use this link to get $10 in credit.
  • InfluxDB
  • Grafana

The result looks quite interesting for me:

Ask in comments for installation scripts. Once I will have time, I will create a post with describing that installation scripts.

There is also a simple InfluxDB and Grafana hosting for your projects. You can just try corlysis platform to help you with storing and visualizing your time-series data.

Home Made – LAMP Based

For the really basic IoT home made IoT data server, I have started with LAMP (or better LAP) server on my Cubieboard2 with Ubuntu 14.04 running 24/7. The basic idea is just to expose apache server that stores all HTTP GET attributes to the file via php. Additional info like HTTP_USER_AGENT and server timestamp is also stored in json format.

I used this simple php file (SensorWriteToFile.php) to store the IoT data:


// URI: /SensorWriteToFile.php?temp=23.50&hum=48.20

$dateTime = new DateTime();
$dateTimeStamp = $dateTime->format('Y-m-d H:i:s');

$data = $_REQUEST;
$data += array("datetime" => $dateTimeStamp ); 
$data += array("user_agent" => $_SERVER['HTTP_USER_AGENT'] );
$req_dump = json_encode( $data ) . "\n";

$fp = file_put_contents( '/var/www/request.log', $req_dump, FILE_APPEND );  //  make /var/www/request.log file writable !!


Sample of the log file (/var/www/request.log) with proper write access:

{"temp":"25.10","hum":"72.10","datetime":"2016-02-07 20:29:58","user_agent":"Mihi IoT 01"}
{"temp":"25.20","hum":"69.30","datetime":"2016-02-07 20:31:06","user_agent":"Mihi IoT 01"}
{"temp":"25.40","hum":"75.40","datetime":"2016-02-07 20:32:10","user_agent":"Mihi IoT 01"}
{"temp":"25.40","hum":"70.30","datetime":"2016-02-07 20:33:15","user_agent":"Mihi IoT 01"}
{"temp":"25.10","hum":"65.10","datetime":"2016-02-07 20:34:37","user_agent":"Mihi IoT 01"}
{"temp":"25.00","hum":"66.40","datetime":"2016-02-07 20:35:40","user_agent":"Mihi IoT 01"}
{"temp":"25.00","hum":"66.00","datetime":"2016-02-07 20:36:49","user_agent":"Mihi IoT 01"}
{"temp":"25.00","hum":"64.10","datetime":"2016-02-07 20:37:51","user_agent":"Mihi IoT 01"}

You can install LAMP on you home PC or rent a VPS starting at $3.49/month in or

Cloud Base

  • – Visualize the Internet of Things.
  • is used for data gathering, cloud logic, triggers, real time remote control and analytics in a friendly user interface.
  • sparkfun data based on Based on phant blog, you can store data and use google api chart:
  • is a graphing front end that is backend agnostic. Users have the freedom to host their own data locally, within the cloud, or choice of 3rd party services such as
  • is simple messaging (and alerts) for the Internet of Things. It’s like Twitter for IoT machines.

Open Source Installtions

  • InfluxData is for IoT deployments requiring support for thousands of sensors. Collect, store, visualize and alert on time-series data.
    Platform combines InfluxDB, Chronograf, Telegraf and Kapacitor. Although, you may find many basic installations of InfluxDB and Grafana. I was able to install both in my Ubuntu, used script to import sinus data and created basic Grafana dashboard. You can play with grafana on their demo side:
    grafana grafana2

    I have also tried InfluxDB with Chronograf together. Chronograf is a simple to install graphing and visualization application that you deploy behind your firewall to perform ad hoc exploration of your InfluxDB data. The cadence for Chronograf releases is every 4 weeks.

  • Elasticsearch + Kibana – maybe overkill but also an option. Elastic search as storage and Kibana as viewer. Java is requeired

Smart Hubs Platforms

There are several platforms sold by vendors that integrates all types of protocols and collects data for later visualization. I have used openHAB installed on Ubuntu, but you can also buy HW that is ready to use with you existing sensors.

openHAB is an open source home automation system that’s both hardware-agnostic and protocol-agnostic. I have installed it and changed demo to my temperature sensor and also used yahoo wather data.
To understand concept of openHAB you have to look in 5 main areas that are highly customizable:

  1. Items for sensor configuration
  2. Bindings to items for all kind of sensor connection (URL, exec, mqtt, and hundreds more)
  3. Sitemap for wizard like visualization with selection of various user interfaces
  4. Persistence for data storage (file, various DBs,..)
  5. Automation by defining rules and scripts

Basic installed files takes less then 50MB of storage but Java is required.

Good smart hubs overview is here:

  • SmartThings Hub
  • Insteon Hub
  • VeraLite
  • Staples Connect Hub

Check also
Open source home automation that puts local control and privacy first. Powered by a worldwide community of tinkerers and DIY enthusiasts. Perfect to run on a Raspberry Pi or a local server.

  • Home Assistant will track the state of all the devices in your home, so you don’t have to.
  • Control all your devices from a single, mobile-friendly, interface.
  • Set up advanced rules to control devices and bring your home alive.
Home Assistant

Related Posts

ESP8266 – WiFiManager and EEPROM

ESP8266 WiFiManager EEPROM My next addition to previous projects battery-wifi-iot-temp-hum-soil-moisture-sensors and battery-powered-esp8266-iot-logger is to make wifi configuration smooth and fast.

Continue reading ...

Battery Powered ESP8266 IoT – Temperature Sensor

Since my latest ESP8266 temperature humidity IoT logger project is up and running I have decided to cut the last wire – power. There are more approaches how to make ESP8266 running on a battery,[…]

Continue reading ...

Battery Powered Wifi IoT – Temperature, Humidity & Soil Moisture Sensors

I have just made a prototype of ESP8266 (ESP-01) IoT temperature & humidity SI7021 sensor and also 2x three pin soil moisture sensors with only 0.006mA (6µA) current drain during the sleep.

Continue reading ...