mchara01 / Data-Scraping-openHAB

Data scraping and analysis from the openHAB platfrom through Bash programing

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

openHAB data scraping and analysis

alt text

Implementation of a data collection and analysis script from the openHAB platform. Retrieval and processing of data from the openHAB server is accomplished though a script written in Bash. The data are extracted through openHAB REST API endpoints

Architecture

The central node of the automation system is the VM which has the role of the server with the openHAB server installed. The VM depicted in the illustration below is located within the closed network of the IT Department. Because there are no IoT devices within this network, a free weather service provider is used named OpenWeatherMap (https://openweathermap.org/api).

alt text

Functionalities

  1. ./openhab_scraping.sh -d
    Downloads from openHAB the information of a collection of items and stores the data locally in a directory in the current location. A .json file will be created for each item.
  2. ./openhab_scraping.sh -p
    Queries made on data stored locally. More specifically,information are read from the item json files and will an HTML file will be created that looks like the image below.
  3. ./openhab_scraping.sh -v
    Creates a graphical representation of the data in the form of a graph using the Gnuplot tool (http://www.gnuplot.info/).
  4. ./openhab_scraping.sh -c
    Combination of data from different bindings.

alt text

About

Data scraping and analysis from the openHAB platfrom through Bash programing


Languages

Language:Shell 100.0%