-
Notifications
You must be signed in to change notification settings - Fork 1
/
defaults.ini
189 lines (171 loc) · 5.27 KB
/
defaults.ini
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
#
# SBCEye Default Settings
# Copy this file ('defaults.ini') to 'settings.ini' and edit
#
[general]
# General Settings
# name: Used in logs and web, blank = hostname
# long_format: Long time format for web, etc. time.strftime()
# short_format: Short time format for logs, etc. time.strftime()
# log_hourly: Log a 'heartbeat'every hour? True/False`
# sensor: look for BME280 sensor? True/False
# screen: look for OLED display? True/False
# pin_state_names: Localisation text for pin status (text,text)
#
name =
long_format = %H:%M:%S, %A, %d %B, %Y
short_format = %d-%m-%Y %H:%M:%S
log_hourly = True
screen = False
sensor = False
pin_state_names = Off,On
#
# Internal Webserver
[web]
# host: Ip address to bind server to, blank = bind to all addresses
# port: Port number for web server
# sensor_name: Environmental sensor name used in web panel (eg; location)
# allow_dump: Allows RRDB database dumps, be careful using this
# since it can impact performance while running
# show_control: Include a link to the web pin control 'button'
#
host =
port = 7080
sensor_name = Room
allow_dump = True
show_control = True
[graph]
# RRD graphing options
# durations: Default graph durations
# wide: Total width in pixels
# high: Total height in pixels, pin graphs are 1/2 this height
# line_color: hex format, tip: https://www.w3schools.com/colors/colors_picker.asp
# line_width: pixels
# area_color: start and end color for shading below line, set blank to disable
# area_depth: gradient depth in pixels, 0 = extend to bottom of graph
# half_height: Graphs matching this prefix will be drawn half-height
#
# default durations are mapped in rrd graph as: start='end-<duration>', 'end=now'
# for more details on how to specify the range the rrd documentation.
# https://oss.oetiker.ch/rrdtool/doc/rrdfetch.en.html#TIME%20OFFSET%20SPECIFICATION
# Note: 'm' means Minutes for large values, but Months for values from 1 to 5.
#
durations = 600s,1h,3h,1d,3d,1w,1m,3m,1y,3y
wide = 1200
high = 300
line_color = #00A0A0
line_width = 2
area_color = #D0E0E0#FFFFFF
area_depth = 0
half_height = pin,net
#
# GPIO
[pins]
# GPIO pins to monitor and log
# All pins are defined using BCM GPIO numbering
# https://www.raspberrypi.org/forums/viewtopic.php?t=105200
# Try running `gpio readall` on the Pi itself for a map
# Pins are listed one per line:
# <Pin Name> = BCM pin number
# eg:
# Lamp = 7
# Ventilator = 8
# Printer = 25
#
[button]
# We can control one pin via a either the web ui, and/or a physical button
# out: bcm pin number we want to control, '0' to disable
# pin: bcm pin number of button, '0' to disable button
# url: /<url> for web control, blank to disable
# hold: Minimum press time, seconds (float), debounces and decouples the button
# eg:
# out = 7
# pin = 27
# url = lamp
#
out = 0
pin = 0
url =
hold = 0.250
#
# Connectivity
[ping]
# A list of targets to be used for network connectivity (ping) tests
# Targets are listed one per line:
# <Target Name> = ip address
# eg:
# router = 192.168.0.1
# internet = 8.8.8.8
#
#
# Data Logging and Recording Settings
[intervals]
# Time intervals (seconds) for the main system action schedules
# pin: Pins are checked for state changes this frequently
# data: Interval between main reading updates
# rrd: Maximum age before cached RRD database updates are written
# ping: Timout for ping responses
# - must be > 4 to distinguish 'unavailable' vs 'not responding' in logs
# - will be reduced if it exceeds the data interval (above) -0.5s
#
pin = 2
data = 10
rrd = 300
ping = 4
[log]
# Logging
# file_dir: Folder must be writable by the SBCEye process
# file_name: <name>.log
# file_count: Maximum number of old logfiles to retain
# file_size: Maximum size before logfile rolls over (Kb)
#
file_dir = ./data
file_name = SBCEye.log
file_count = 3
file_size = 1024
[rrd]
# RRD database
# dir: Folder must be writable by SBCEye process
# file_name: Database file name; <name>.rrd
# cache_age: Cache will be written to the database on this interval
# backup_count: Maximum number of backups to retain, 0 to disable backups
# backup_age: Backups will not be deleted if under this age, even
# if that breaks the backup_count limit. (Days)
# backup_time: Time of daily backup; HH:MM
#
dir = ./data
file_name = SBCEye.rrd
backup_count = 10
backup_age = 7
backup_time = 23:45
#
# OLED Status dsplay options
[display]
# Display orientation, contrast and burn-in prevention
# rotate: Is the display 'upside down'?
# - generally the connections from the glass are at the bottom
# contrast: This gives a limited brightness reduction (0-255)
# - does not give full dimming to black
# invert: Default is light text on dark background
#
rotate= False
contrast = 127
invert = False
[saver]
# Screen saver / burn-in reducer
# saver_mode: Possible values are 'off', 'blank' and 'invert'
# saver_on: Start time for screensaver (hour, 24hr clock)
# saver_off: End time
#
mode = off
on = 20
off = 8
[animate]
# Display Animation
# passtime: time between display refreshes (seconds)
# passes: number of refreshes of a screen before moving to next
# speed: rows to scroll on each animation step between screens
#
passtime = 3
passes = 2
speed = 16