GithubHelp home page GithubHelp logo

halocal's Introduction

h1. Install Fedora 34

firewall-cmd --permanent--zone=FedoraServer --add-port=8123/tcp

firewall-cmd --permanent --zone=FedoraServer --add-port=1883/tcp

firewall-cmd --permanent --zone=FedoraServer --add-port=1883/udp

firewall-cmd --reload

dnf install -y git podman ansible

dnf groupinstall 'Development Tools'

git clone https://github.com/elajoie/halocal.git

cd halocal/configs

make sure you create your own vault file simular to below and put it into the hass folder in your git repo:

elevation: 123
latitude: 40.111111
longitude: 20.111111
mqttpassword: 123
stream_img: https://1.1.1.1/snap.jpeg
stream_url: rtsp://xyz

ansible-playbook --ask-vault-pass main.yml

h1. Build images

podman build --rm -t homeassistant -f hass/Containerfile

podman build --rm -t mosquitto -f mosquitto/Containerfile

podman run -dt --rm -p 1883:1883 --name mosquitto -v /etc/mosquitto:/etc/mosquitto:Z localhost/mosquitto:latest

podman run -dt --rm -p 8123:8123 --name homeassistant -v /root/.homeassistant:/root/.homeassistant:Z localhost/homeassistant:latest

podman generate systemd --new --name mosquitto > /etc/systemd/system/mosquitto.service

podman generate systemd --new --name homeassistant > /etc/systemd/system/homeassistant.service

systemctl enable --now mosquitto.service

systemctl enable --now homeassistant.service

Again, looking for feedback from your own experiance and ways to make this easier to have an offline HA which you as the user control the OS and image used to run HA.

Enjoy, Eric

halocal's People

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.