-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsampleconfig.yml
60 lines (45 loc) · 1.85 KB
/
sampleconfig.yml
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
56
57
58
59
60
#
# Sample Appliance Monitor configuration file.
[DEFAULT]
# A name used to identify the MQTT client and log file. Unique in your household
Name = washer
# This is where we store images and the log file. Create a RAM disk that is
# persistent across reboots (well, the concept of a RAM disk, obviously not
# the content ;) using ./create-ramdisk.sh
TempDir = /ram
# Where we can find a still image to process
CamURL = http://wash.local:8080/?action=snapshot
# Percentage of black pixels < 'MachineOnLevel' : appliance is on
MachineOnLevel = 80
# Used to remove noise from the image and turn all pixels into either black
# or white. Experiment until you have a value that causes the black part
# of the applicane display to be 100% black regardless of wether the room
# is lit or not.
Threshold = 25
# Cropping speeds up the processing and increases the % of white pixels from
# the appliance display. Additionally it allows for one camera to monitor
# more that one appliance. Format below is ImageMagick style.
# w h x y
Crop = 300x150+30+365
# ImageMagick blurring used to increase the number of white pixels from the
# appliance display (https://www.imagemagick.org/Usage/blur/#blur)
Blur = 0x1
# When a change is detected we snap a series of images every 'StablePeriodSleep'
# seconds and see if the change is constant.
StablePeriodSleep = 5
# If no change, wait LoopPeriodSleep before checking again
LoopPeriodSleep = 30
# MQTT publish the calculated black level in each picture taken, for debugging
ReportBlackLevel = no
[MQTT]
MQTTDisable = no
MQTTBroker = gateway.local
# Post appliance on/off to this topic
MQTTApplianceTopic = home/washer
[PUSHOVER]
PushoverDisable = no
PushoverTitle = Washing room
PushoverMessageApplicanceDone = the washing is done
PushoverUser = <useruseruser>
PushoverToken = <tokentokentoken>
PushoverDevice = <devicedevicedevice>