Skip to content

Latest commit

 

History

22 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Shelly status saver

Requests data from Shelly 3EM and stores status in sql database.

Environment Variables

SQL_URL - the URL for database, e.g. mysql+pymysql://user:password@host:3306/database

Run

With python

MySQL

export SQL_URL=mysql+pymysql://user:password@host:3306/database
python -m main

PostgreSQL

export SQL_URL=postgresql+psycopg2://user:password@host:5432/database
python -m main

With Docker Container

MySQL

docker run \
    --name shelly-status-saver \
    -e "SQL_URL=mysql+pymysql://user:password@host:3306/database" \
    ghcr.io/maexled/shelly-status-saver:master

PostgreSQL

docker run \
    --name shelly-status-saver \
    -e "SQL_URL=postgresql+psycopg2://user:password@host:5432/database" \
    ghcr.io/maexled/shelly-status-saver:master

About

Requests data from Shelly 3EM and stores status in sql database.

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages