Ansible adaptions

This commit is contained in:
Dirk Alders 2023-11-04 18:00:07 +01:00
parent a0984df2ab
commit 2adab8e24c
2 changed files with 12 additions and 4 deletions

View File

@ -3,10 +3,10 @@
import os
import report
MQTT_USER = "user"
MQTT_PASS = "pass"
MQTT_SERVER = "localhost"
MQTT_TOPIC = "hifi/spotify"
MQTT_USER = "<mqtt_smarthome_username>"
MQTT_PASS = "<mqtt_smarthome_password>"
MQTT_SERVER = "<mqtt_smarthome_hostname>"
MQTT_TOPIC = "<mqtt_spotify_topic>"
DEVICE_NAME = "Multimedia"

8
init_venv Executable file
View File

@ -0,0 +1,8 @@
#!/bin/sh
#
BASEPATH=`realpath $(dirname $0)`
python3 -m venv $BASEPATH/venv
$BASEPATH/venv/bin/pip install --upgrade pip
find $BASEPATH -name requirements.txt | xargs -L 1 $BASEPATH/venv/bin/pip install -r
$BASEPATH/venv/bin/pip list --outdated --format=json | jq -r '.[] | .name'|xargs -n1 $BASEPATH/venv/bin/pip install -U