From 8df03a0200e3961411e3806b24f79685d4bd2b80 Mon Sep 17 00:00:00 2001 From: John Lancaster <32917998+jsl12@users.noreply.github.com> Date: Fri, 14 Nov 2025 21:19:38 -0600 Subject: [PATCH] initial commit --- .gitignore | 6 ++++++ appdaemon.yaml | 15 +++++++++++++++ apps/apps.yaml | 3 +++ apps/hello.py | 7 +++++++ docker-compose.yml | 12 ++++++++++++ 5 files changed, 43 insertions(+) create mode 100644 .gitignore create mode 100644 appdaemon.yaml create mode 100644 apps/apps.yaml create mode 100755 apps/hello.py create mode 100644 docker-compose.yml diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e87773c --- /dev/null +++ b/.gitignore @@ -0,0 +1,6 @@ +__pycache__ +dashboards/ +compiled/ +namespaces/ +www/ +secrets.yaml \ No newline at end of file diff --git a/appdaemon.yaml b/appdaemon.yaml new file mode 100644 index 0000000..d947ec9 --- /dev/null +++ b/appdaemon.yaml @@ -0,0 +1,15 @@ +appdaemon: + latitude: 0 + longitude: 0 + elevation: 30 + time_zone: US/Central + plugins: + HASS: + type: hass + ha_url: https://platform.john-stream.com + token: !secret long_lived_token +http: + url: http://0.0.0.0:5050 +admin: +api: +hadashboard: diff --git a/apps/apps.yaml b/apps/apps.yaml new file mode 100644 index 0000000..4c84034 --- /dev/null +++ b/apps/apps.yaml @@ -0,0 +1,3 @@ +hello_world: + module: hello + class: HelloWorld diff --git a/apps/hello.py b/apps/hello.py new file mode 100755 index 0000000..4076766 --- /dev/null +++ b/apps/hello.py @@ -0,0 +1,7 @@ +from appdaemon.adapi import ADAPI + + +class HelloWorld(ADAPI): + def initialize(self): + self.log("Hello from AppDaemon") + self.log("You are now ready to run Apps!") diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..83fbf26 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,12 @@ +services: + appdaemon: + container_name: appdaemon + image: acockburn/appdaemon:dev + restart: unless-stopped + tty: true + volumes: + - /etc/localtime:/etc/localtime:ro + - /etc/timezone:/etc/timezone:ro + - ./:/conf + ports: + - 5050:5050