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

Loading…
Cancel
Save