Pārlūkot izejas kodu

Library update and bug fixing

master
Dirk Alders 3 mēnešus atpakaļ
vecāks
revīzija
7053173e87
6 mainītis faili ar 28 papildinājumiem un 5 dzēšanām
  1. 1
    1
      devdi
  2. 1
    1
      devices/__init__.py
  3. 23
    0
      init_venv
  4. 1
    1
      mqtt
  5. 1
    1
      report
  6. 1
    1
      user_interface.py

+ 1
- 1
devdi

@@ -1 +1 @@
1
-Subproject commit 5a94efbc8c4ca7e1a7ef6f40df53177717bb7c16
1
+Subproject commit 66a471979d41bb6477b676dddd3f5959ba0326cc

+ 1
- 1
devices/__init__.py Parādīt failu

@@ -11,7 +11,7 @@ from devices.tradfri import button as tradfri_button
11 11
 
12 12
 audio_status = None
13 13
 remote = None
14
-
14
+my_ambient = None
15 15
 
16 16
 class group(object):
17 17
     def __init__(self, *args):

+ 23
- 0
init_venv Parādīt failu

@@ -0,0 +1,23 @@
1
+#!/bin/bash
2
+#
3
+BASEPATH=`realpath $(dirname $0)`
4
+
5
+#
6
+# Create venv
7
+#
8
+if [[ ! -e $BASEPATH/venv ]]; then
9
+    python3 -m venv $BASEPATH/venv > /dev/null 2>&1
10
+    find $BASEPATH -name requirements.txt | xargs -L 1 $BASEPATH/venv/bin/pip install -r > /dev/null 2>&1
11
+    echo "venv changed"
12
+fi
13
+#
14
+# Update venv modules
15
+#
16
+for req_mod in $($BASEPATH/venv/bin/pip list --format=json | jq -r '.[] | .name'); do
17
+     $BASEPATH/venv/bin/pip install -U $req_mod | grep install > /dev/null 2>&1
18
+     if [[ "$?" -eq "0" ]]; then
19
+         echo $req_mod changed
20
+     fi
21
+
22
+done
23
+#|xargs -n1 $BASEPATH/venv/bin/pip install -U

+ 1
- 1
mqtt

@@ -1 +1 @@
1
-Subproject commit 1adfb0626e7777c6d29be65d4ad4ce2d57541301
1
+Subproject commit 14e56ccdbf6594f699b4afcfb4acafe9b899e914

+ 1
- 1
report

@@ -1 +1 @@
1
-Subproject commit b53dd30eae1d679b7eec4999bec50aed55bc105b
1
+Subproject commit 7003c13ef8c7e7c3a55a545cbbad4039cc024a9f

+ 1
- 1
user_interface.py Parādīt failu

@@ -27,7 +27,7 @@ class user_interface(dict):
27 27
         if callable(cb):
28 28
             cb(*args)
29 29
         else:
30
-            print("Unknown command \"%s\"" % name)
30
+            print("Unknown command \"%s\"" % cmd)
31 31
 
32 32
     def add_command(self, name, callback):
33 33
         self[name] = callback

Notiek ielāde…
Atcelt
Saglabāt