-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.yaml
executable file
·55 lines (46 loc) · 1.77 KB
/
config.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#Storage location for image files.
data_path: '/opt/gasmeter/venv_3.8/'
#Gas Meter Camera Image URL
# Ex. http://192.168.3.10:8080/gasmeter_last.jpg
gasmeter_camera_ip: '192.168.3.10:8080' #Camera IP:PORT
image_url_postfix: '/gasmeter_last.jpg' #include forward slash
#Align Meter on the Horizontal with the Camera by rotating image.
rotate_image: +0.42 #positive values degrees counterclockwise
#If using Max num gray pixels algorithm, set the threshold.
gray_threshold: 70 #0 to 255; 0 - Use "mean" algorithm instead
#Gauge Dial Coordinates in pixels. (x=0,y=0) is upper left corner of image.
dials:
gauge_centers:
digit1: #Most Signficant gauge digit
x: 929
y: 901
digit2:
x: 1163
y: 900
digit3:
x: 1396
y: 894
digit4: #Least Significant gauge digit
x: 1625
y: 897
circle_radius: 107 #Radius of the dials in pixels
#Rotational direction of each gauge in order of digit 4,3,2,1
readout_conventions: [ "CW", "CCW", "CW", "CCW" ]
#Advanced Tuning: Can remove the needle's center circle of rotation from calculations.
# Radius is the size of the needle's center circle in pixels.
center_radius: 0 #zero value disables this tuning.
#Max Increase between readings. 10000 or higher should effectively disable
max_increase: 10000
#MQTT Configs:
mqtt:
client_name: "gasmeter_single_pub_client"
host_name: '192.168.3.11'
#Set a username and optionally a password for broker authentication.
username: "mqtt_user"
password: "mqtt_password"
topic: "gasmeter/outside/value"
retain: "True" #"True" or "False"
# Setup Logger
logger:
level: 'info' #leave blank (no logs), set to 'debug' to get debug information, or 'info'.
console: 0 #set to 1 to send output to stdout, 0 to local syslog