Skip to content

A python utility for syncing Solar-Log data to an InfluxDB instance

Notifications You must be signed in to change notification settings

MikiDi/solarlog-influx-sync

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

solarlog-csv

A python package for syncing data generated by Solar-Log devices to an InfluxDB instance.

Requirements

Install

python -m pip install git+https://github.com/MikiDi/solarlog-influx-sync.git

Usage

env SOLARLOG_HOST='...' \
SOLARLOG_USER='...' \
SOLARLOG_PASSWD='...' \
INFLUX_MEASUREMENT_NAME='...' \
INFLUX_HOST='...' \
INFLUX_DB='...' \
solarlog_influx_sync.py

docker-compose

Docker-compose snippet for configuring the sync to run every 10 minutes:

solarlog-sync:
  build: https://github.com/MikiDi/solarlog-influx-sync.git
  restart: always
  command: >
    sh -c "echo 'python /app/solarlog_influx_sync/solarlog_influx_sync.py' > /app/cron_entrypoint &&
           chmod +x /app/cron_entrypoint &&
           echo '*/10 * * * * /app/cron_entrypoint' > /var/spool/cron/crontabs/root &&
           crond -l 2 -f"
  environment:
    SOLARLOG_HOST: '...'
    SOLARLOG_USER: '...'
    SOLARLOG_PASSWD: '...'
    INFLUX_MEASUREMENT_NAME: '...'
    INFLUX_HOST: '...'
    INFLUX_DB: '...'

About

A python utility for syncing Solar-Log data to an InfluxDB instance

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published