Erste Gedanken

This commit is contained in:
2025-07-17 21:42:25 +02:00
parent 93e814a6d2
commit a6ebc41ec8
11 changed files with 125 additions and 1 deletions

7
.gitignore vendored
View File

@@ -0,0 +1,7 @@
# Docker
*.tar.gz
*.log
# Editor-Dateien
.vscode/
*.swp

View File

@@ -0,0 +1,5 @@
# Changelog
## 0.8.0
- Aktualisiert auf Folding@home 8.4.
- Initiale Version des Forks.

10
DOCS.md
View File

@@ -0,0 +1,10 @@
# Folding@home Add-on Dokumentation
## Konfiguration
- **user**: Dein Folding@home-Benutzername (optional).
- **team**: Team-ID, z. B. 247478 für Home Assistant.
- **passkey**: Dein Folding@home-Passkey (optional).
- **power**: Leistungsstufe (light, medium, full).
## Zugriff
- Webinterface: `http://<deine-ha-ip>:7396`

View File

@@ -0,0 +1,25 @@
# Basis-Image von hassio-addons
FROM ghcr.io/hassio-addons/debian-base:7.3.1
# Installiere Abhängigkeiten und Folding@home 8.4
RUN \
apt-get update && \
apt-get install -y --no-install-recommends \
curl \
ca-certificates && \
# Lade Folding@home 8.4 herunter (URL anpassen, sobald verfügbar)
curl -sSL https://download.foldingathome.org/releases/public/release/fahclient/debian-stable-64bit/v8.4/fahclient_8.4.0-64bit-release.deb -o fahclient.deb && \
dpkg -i fahclient.deb && \
rm fahclient.deb && \
# Bereinige Cache
apt-get clean && \
rm -rf /var/lib/apt/lists/*
# Kopiere rootfs
COPY rootfs /
# Exponiere Ports (Folding@home-Webinterface)
EXPOSE 7396
# S6-Overlay für Dienstverwaltung
CMD [ "/run.sh" ]

View File

@@ -0,0 +1,5 @@
MIT License
Copyright (c) 2020-2025 Retr0
Permission is hereby granted, free of charge, to any person obtaining a copy...

View File

@@ -0,0 +1,7 @@
image: ghcr.io/dein-benutzername/{arch}-addon-foldingathome
squash: false
build_from:
amd64: ghcr.io/hassio-addons/debian-base:7.3.1
armhf: ghcr.io/hassio-addons/debian-base:7.3.1
armv7: ghcr.io/hassio-addons/debian-base:7.3.1
aarch64: ghcr.io/hassio-addons/debian-base:7.3.1

View File

@@ -0,0 +1,27 @@
name: Folding@home
version: 0.8.0
slug: foldingathome
description: Run Folding@home to contribute to scientific research
url: https://gitea.deine-url/dein-benutzername/dont-stop-folding
arch:
- amd64
- armhf
- armv7
- aarch64
init: false
ports:
7396/tcp: 7396
ports_description:
7396/tcp: Folding@home Web Interface
map:
- share:rw
options:
user: ""
team: "247478"
passkey: ""
power: "medium"
schema:
user: str?
team: str
passkey: str?
power: list(light|medium|full)

View File

@@ -1 +1,14 @@
Test
# Folding@home Home Assistant Add-on
Ein Community-gepflegtes Add-on für Home Assistant, um Folding@home (Version 8.4) auszuführen und zur wissenschaftlichen Forschung beizutragen.
## Installation
1. Füge dieses Repository in Home Assistant hinzu: `https://gitea.deine-url/dein-benutzername/dont-stop-folding`
2. Installiere das Add-on über den Add-on-Store.
3. Konfiguriere Benutzername, Team-ID (z. B. 247478 für Home Assistant) und andere Einstellungen.
## Dokumentation
Siehe [DOCS.md](DOCS.md) für Details.
## Lizenz
MIT License, siehe [LICENSE](LICENSE).

View File

@@ -0,0 +1,21 @@
#!/usr/bin/with-contenv bash
# Importiere Home Assistant-Konfigurationsoptionen
. /opt/hassio-addons/base.sh
# Konfigurationsverzeichnis
CONFIG_PATH=/data/fahclient
mkdir -p "$CONFIG_PATH"
# Erstelle config.xml, falls nicht vorhanden
if [ ! -f "$CONFIG_PATH/config.xml" ]; then
cat > "$CONFIG_PATH/config.xml" << EOF
<config>
<user value="$(hass.config.get 'user')"/>
<team value="$(hass.config.get 'team')"/>
<passkey value="$(hass.config.get 'passkey')"/>
<power value="$(hass.config.get 'power')"/>
<web-enable value="true"/>
<http-addresses value="0.0.0.0:7396"/>
</config>
EOF
fi

View File

@@ -0,0 +1 @@
cont-init

View File

@@ -0,0 +1,3 @@
#!/usr/bin/execlineb -P
with-contenv
foreground { /usr/bin/fahclient --config /data/fahclient/config.xml }