-
Notifications
You must be signed in to change notification settings - Fork 0
Configure server
Vec7or edited this page May 20, 2020
·
1 revision
To configure the pwire-server go to the directory in which the server executable is stored (if installed by installer /etc/pwire/server) and have a look at the file pwire-server.cfg. The file is structured as ini-file.
The file looks like this:
[general]
uuid = {{uuid}}
[redis]
host = 127.0.0.1
port = 6379
password = {{redis_password}}
[lora]
serial_device = /dev/ttyS1
aux_pin = 1
m0_pin = 3
m1_pin = 2Within this file you may adjust the options to fit your needs.
Options grouped inside a sections will be referred to as section.option so for example redis.host.
- [
uuid] -> The uuid used by the server to communicate with sensors and the frontend. Should only be changed on initial setup else the sensors will no longer be able to communicate with the server. - [
redis.host] -> The ip-address where the redis-server is located. If all components are located on the base-station (standard with installer) this will be127.0.0.1. - [
redis.port] -> The port redis listens on. Standard is6379. - [
redis.password] -> The password which is used to authenticate with redis. If the installer is used this will be set to a random generated password. If no password is needed you may leave the value of this option blankpassword =. - [
lora.serial_device] -> The UART-device on which the E32 lora-sender is connected to the base-station. Normally this is/dev/ttyS1. - [
lora.aux_pin] -> The pin number on which aux is connected. Aux is used to check the status of the E32 module. - [
lora.m0_pin] -> The pin number on which m0 is connected. The m0-pin is one of the two pins used to switch modes on the E32 module. - [
lora.m1_pin] -> The pin number on which m1 is connected. The m1-pin is one of the two pins used to switch modes on the E32 module.