sarnau / Inside-The-Loxone-Miniserver

Inside The Loxone Miniserver – various documentation about the Loxone Link/Tree protocol and hardware
195 stars 53 forks source link

LoxoneWeather.py as deamon #14

Closed RubenWaterman closed 4 years ago

RubenWaterman commented 4 years ago

hey! this LoxoneWeather.py is awesome and it works like a charm! How have you set this up on your raspberry pi so that it restarts if it crashes or that the python webserver restarts when the raspberry pi reboots?

sarnau commented 4 years ago

I use http://supervisord.org

mabunixda commented 4 years ago

I also created a docker image based one this definition...

RubenWaterman commented 4 years ago

@mabunixda That's super nice! Deployed it right away with a docker-compose.yml file so that it comes back up after restarting as well :)

version: '3'
services:
  weather:
    build: .
    ports:
      - "6066:6066"
    restart: always
    environment:
      DARKSKY_SECRET_KEY: darkskykey