forked from macchina-io/macchina.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmacchina.properties.install
154 lines (126 loc) · 5.42 KB
/
macchina.properties.install
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
#
# OSP Configuration
#
osp.codeCache = ${application.dir}codeCache
osp.bundleRepository = ${application.dir}../lib/bundles
osp.data = ${application.configDir}data
osp.web.cacheResources = true
osp.web.sessionManager.cookiePersistence = transient
#
# Settings
#
macchina.settings.path = ${application.configDir}settings.properties
#
# Authentication
#
# Note: Password for user "admin" is "admin".
auth.simple.admin.passwordHash = 21232f297a57a5a743894a0e4a801fc3
#
# Serial Ports
#
#serial.ports.1.device = /dev/tty.usbserial
#serial.ports.1.params = 8N1
#serial.ports.1.speed = 57600
#
# Simulated Sensors
#
# A temperature sensor that starts with a value of
# 20 °C and increments every second by 0.2 °C.
# After 100 cycles, the temperature will reset to the
# starting value.
simulation.sensors.temperature1.physicalQuantity = temperature
simulation.sensors.temperature1.physicalUnit = °C
simulation.sensors.temperature1.initialValue = 20
simulation.sensors.temperature1.delta = 0.2
simulation.sensors.temperature1.cycles = 100
simulation.sensors.temperature1.updateRate = 1
simulation.sensors.temperature1.mode = linear
# Another temperature sensor that starts with a value of
# 25 °C and changes every 10 seconds by a random
# value between 0 and +/- 0.5 °C.
# After 100 cycles, the temperature will reset to the
# starting value.
simulation.sensors.temperature2.physicalQuantity = temperature
simulation.sensors.temperature2.physicalUnit = °C
simulation.sensors.temperature2.initialValue = 25
simulation.sensors.temperature2.delta = 0.5
simulation.sensors.temperature2.cycles = 100
simulation.sensors.temperature2.updateRate = 0.1
simulation.sensors.temperature2.mode = random
# An ambient light sensor that updates every 2 seconds.
simulation.sensors.ambientLight1.physicalQuantity = illuminance
simulation.sensors.ambientLight1.physicalUnit = lx
simulation.sensors.ambientLight1.initialValue = 100
simulation.sensors.ambientLight1.delta = 5
simulation.sensors.ambientLight1.cycles = 100
simulation.sensors.ambientLight1.updateRate = 0.5
simulation.sensors.ambientLight1.mode = linear
# A humidity sensor that updates every 5 seconds.
simulation.sensors.humidity1.physicalQuantity = humidity
simulation.sensors.humidity1.physicalUnit = %RH
simulation.sensors.humidity1.initialValue = 40
simulation.sensors.humidity1.delta = 0.5
simulation.sensors.humidity1.cycles = 20
simulation.sensors.humidity1.updateRate = 0.2
simulation.sensors.humidity1.mode = random
# GNSS Simulation using a track from a GPX file
#simulation.gnss.gpxPath = track.gpx
#simulation.gnss.speedUp = 2.0
#
# SensorLog
#
sensorlog.sensors.illuminance.id = io.macchina.simulation.sensor#0
sensorlog.sensors.temperature.id = io.macchina.simulation.sensor#2
sensorlog.sensors.humidity.query = name == "io.macchina.simulation.sensor#1"
#
# MQTT
#
# Create a MQTT client that connects to the MQTT test server
# provided by the Eclipse IoT project.
mqtt.clients.eclipse.serverURI = tcp://iot.eclipse.org:1883
mqtt.clients.eclipse.id = macchina.io
#
# Logging Configuration
#
# See <http://pocoproject.org/slides/110-Logging.pdf> and
# <http://pocoproject.org/slides/185-LoggingConfiguration.pdf>
# for more information.
#
logging.loggers.root.channel = splitter
logging.loggers.root.level = information
logging.loggers.remoting.name = RemotingNG
logging.loggers.remoting.level = notice
logging.channels.file.class = FileChannel
logging.channels.file.pattern = %Y-%m-%d %H:%M:%S.%i [%p] %s<%I>: %t
logging.channels.file.path = ${application.dir}${application.baseName}.log
logging.channels.file.rotation = daily
logging.channels.file.archive = number
logging.channels.file.purgeCount = 10
logging.channels.console.class = ColorConsoleChannel
logging.channels.console.pattern = %Y-%m-%d %H:%M:%S.%i [%p] %s<%I>: %t
logging.channels.webconsole.class = EventChannel
logging.channels.splitter.class = SplitterChannel
logging.channels.splitter.channels = console, webconsole
#
# NetSSL (OpenSSL) Configuration
#
openSSL.server.certificateFile = ${application.configDir}macchina.pem
openSSL.server.privateKeyFile = ${application.configDir}macchina.pem
openSSL.server.verificationMode = none
openSSL.server.verificationDepth = 9
openSSL.server.loadDefaultCAFile = true
openSSL.server.caConfig = ${application.configDir}rootcert.pem
openSSL.server.cipherList = ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA:ECDHE-RSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-RSA-AES256-SHA256:DHE-RSA-AES256-SHA:ECDHE-ECDSA-DES-CBC3-SHA:ECDHE-RSA-DES-CBC3-SHA:EDH-RSA-DES-CBC3-SHA:AES128-GCM-SHA256:AES256-GCM-SHA384:AES128-SHA256:AES256-SHA256:AES128-SHA:AES256-SHA:DES-CBC3-SHA:!DSS
openSSL.server.disableProtocols = sslv2,sslv3
openSSL.server.invalidCertificateHandler.name = AcceptCertificateHandler
openSSL.client.verificationMode = none
openSSL.client.verificationDepth = 9
openSSL.client.loadDefaultCAFile = false
openSSL.client.caConfig = ${application.configDir}rootcert.pem
openSSL.client.invalidCertificateHandler.name = RejectCertificateHandler
#
# GPIO Configuration
#
#linux.gpio.enable = true
#linux.gpio.pins.10.direction = out
#linux.gpio.pins.11.direction = in