external machine

This commit is contained in:
Devmel Apps
2023-08-04 15:01:45 +02:00
parent 1cc2efecc8
commit df1e19ec49
5 changed files with 184 additions and 150 deletions
+6 -3
View File
@@ -1,5 +1,6 @@
#!/usr/bin/with-contenv bashio
cd /home
arch="$(apk --print-arch)"
case "$arch" in \
aarch64) arch='arm64' ;; \
@@ -10,13 +11,15 @@ case "$arch" in \
esac;
echo "AirSendWebService arch: ${arch}"
hname="$(hostname -i)"
echo "internal_url: http://${hname}:33863"
echo "internal_url: http://${hname}:33863/"
if [ -n "${SUPERVISOR_TOKEN:-}" ]; then
if [ -n "${SUPERVISOR_TOKEN:-}" ]
then
echo ${SUPERVISOR_TOKEN} > hass_api.token
else
echo "Not running on Home Assistant machine..."
fi
cd /home
ulimit -n 4096
./bin/unix/${arch}/AirSendWebService 99399
php -S 127.0.0.1:80 callback.php