Giter Club home page Giter Club logo

hamysqldb2influxdb's Introduction

hamysqldb2influxdb

Tool for HomeAssistant MySQL Historical Sensor Data Migration to InfluxDB

Purpose

Migration of the sensor state historical data from MYSQLDB to InfluxDB.

Pre-requisits

Home Assistant: https://www.home-assistant.io

MySQL used as a Home Assistant recorder. I have MySQL 8.

InfluxDB V2 https://docs.influxdata.com/influxdb/v2.0/ I have used official HomeAssistant Guide for the configuration: https://www.home-assistant.io/integrations/influxdb/

Golang to compile the application for your system.

Both MySQL and InfluxDB need to be exposed to the host you run the tool on over the network.

Supported Domains

Sensor

Currently only supported Sensors with state in numeric format.

The following Attributes values would be copied if not empty or 0:

  • Voltage
  • BatteryLevel
  • UnitOfMeasurement
  • FriendlyName
  • DeviceClass
  • Model

Climate

The following Attributes values would be copied if not empty or greater than -50:

  • HvacModes
  • MinTemp
  • MaxTemp
  • PresetModes
  • CurrentTemperature
  • Temperature
  • HvacAction
  • PresetMode
  • PercentageDemand
  • ControlOutputState
  • HeatingRate
  • WindowState
  • WindowDetectionActive
  • AwayModeSupressed
  • FriendlyName
  • SupportedFeatures
  • UnitOfMeasurement

HowTo

Build

go get -t ./...

go build

chmod 766 hamysqldb2influxdb

Execute

Copy config/config_sample.json to config/config.json

Update config.json setting with you values.

Run the tool

hamysqldb2influxdb's People

Contributors

mrvladis avatar

Stargazers

Serban avatar Carlos García-Saura avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.