Skip to content

Openhab v3.3, InfluxDB v2.4.0, adapted to download editable list of items and iterate through them

Notifications You must be signed in to change notification settings

chris-hunter/rest2influxdb

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Introduction

This script reads values for a defined item from openHAB via the REST interface. The values are written to text files and converted to a specific format to import them in InfluxDB. see: https://docs.influxdata.com/influxdb/v1.2/write_protocols/line_protocol_reference/

Usage

Copy config.cfg.example to config.cfg and define your parameters like server name, user, password etc.

Start script ./rest2influxdb.sh <Item_Name>

Done.

(un)known Issues

  • Tested with openhab 2.4 and influx 1.02
  • The timestamps cannot be calculated correctly on macOS
  • RRD compresses data, so the further you go into the past the bigger gaps you get between two data points.
    see: https://github.com/openhab/openhab1-addons/wiki/rrd4j-persistence
  • I am not sure if the defined timestamps are correct to read as much data as possible.

About

Openhab v3.3, InfluxDB v2.4.0, adapted to download editable list of items and iterate through them

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%