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
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).
./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../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../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/)../openhab_scraping.sh -c
Combination of data from different bindings.