SBFspot / sbfspot-config

Installation/Configuration tool for SBFspot on Raspberry Pi
43 stars 11 forks source link

SBFspot PVoutput and Portainer + Docker + Home assistant #36

Closed habuild closed 2 years ago

habuild commented 2 years ago

Hi SBF, and (docker pull Nakla/SBFspot) If you read this,

https://community.home-assistant.io/t/sma-solar-or-sbfspot-pvoutput/335110/19

This may interest yourself and some of your users at PVoutput. I sort of plan to build an docker addon for home assistant for SBFspot. Although I barely know the adduser cmd lol.

My main question is how much of your SBFspot.cfg files can be added to via an file.env in portainer. I also haven't looked at how much can be hashed/secret yet. It sort of seems like most of the *.cfg files could be added as variables. I am not sure where that breaks SBFspot of the upload daemon.

https://documentation.portainer.io/v2.0/services/options/

Anyway just thought it might be of interest or helpful to future users.

https://hub.docker.com/r/nakla/sbfspot

services:
    sbfspot:
        image: nakla/sbfspot:latest
        network_mode: host
        volumes:
            - ./etc:/etc/sbfspot
            - ./data:/var/sbfspot
        **environment:**
            TZ= Europe/Berlin
            ENABLE_SBFSPOT= 1
            SBFSPOT_INTERVAL= 600
            ENABLE_SBFSPOT_UPLOAD= 0
            DB_STORAGE= mariadb
            CSV_STORAGE= 0
            MQTT_ENABLE= 1
            QUIET= 0
            SBFSPOT_ARGS= -d0 -v2
            INIT_DB= 0
        restart: always
 -d#                 Set debug level: 0-5 (0=none, default=2)
  -v#                 Set verbose output level: 0-5 (0=none, default=2)
  -ad#                Set #days for archived daydata: 0-300
                      0=disabled, 1=today (default), ...
  -am#                Set #months for archived monthdata: 0-300
                      0=disabled, 1=current month (default), ...
  -ae#                Set #months for archived events: 0-300
                      0=disabled, 1=current month (default), ...
  -finq               Force Inquiry (Inquire inverter also during the night)
  -q                  Quiet (No output)
  -nocsv              Disables CSV export (Overrules CSV_Export in config)
  -nosql              Disables SQL export
  -sp0                Disables Spot.csv export
  -installer          Login as installer
  -password:xxxx      Installer password
  -loadlive           Use predefined settings for manual upload to pvoutput.org
  -startdate:YYYYMMDD Set start date for historic data retrieval
  -settime            Sync inverter time with host time