Bläddra i källkod

Ansible adaptions

master
Dirk Alders 1 år sedan
förälder
incheckning
2adab8e24c
2 ändrade filer med 12 tillägg och 4 borttagningar
  1. 4
    4
      config_example/config.py
  2. 8
    0
      init_venv

+ 4
- 4
config_example/config.py Visa fil

@@ -3,10 +3,10 @@
3 3
 import os
4 4
 import report
5 5
 
6
-MQTT_USER = "user"
7
-MQTT_PASS = "pass"
8
-MQTT_SERVER = "localhost"
9
-MQTT_TOPIC = "hifi/spotify"
6
+MQTT_USER = "<mqtt_smarthome_username>"
7
+MQTT_PASS = "<mqtt_smarthome_password>"
8
+MQTT_SERVER = "<mqtt_smarthome_hostname>"
9
+MQTT_TOPIC = "<mqtt_spotify_topic>"
10 10
 
11 11
 DEVICE_NAME = "Multimedia"
12 12
 

+ 8
- 0
init_venv Visa fil

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

Laddar…
Avbryt
Spara