Browse Source

influx displays to zero when turned off. filter slightly faster again.

Thomas B 2 months ago
parent
commit
45a764fc8f
1 changed files with 4 additions and 1 deletions
  1. 4
    1
      client/brightness.py

+ 4
- 1
client/brightness.py View File

@@ -5,7 +5,7 @@ import ddc
5 5
 import time
6 6
 import influx
7 7
 
8
-filter_fact = 0.99
8
+filter_fact = 0.90
9 9
 
10 10
 c_in = 0.6, -30.0, # in_a, in_b
11 11
 calibration = {
@@ -98,3 +98,6 @@ if __name__ == "__main__":
98 98
                         d["prev"] = val
99 99
                     except Exception as e:
100 100
                         print(e)
101
+
102
+                        # set to zero to show display is disconnected
103
+                        d["prev"] = 0

Loading…
Cancel
Save