This repository has been archived by the owner on Apr 14, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
config.toml
37 lines (28 loc) · 1.45 KB
/
config.toml
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
#This is an example of config file. All values set here are set by DEFAULT.
#So if you are ok with some values, you can even remove such lines from your config file, it will work
#If you have local MQTT server with anonymous access, even empty config file should work for you
#MQTT Address
address = "127.0.0.1:1883"
#MQTT Username, leave empty if you don't need auth
username = ""
#MQTT Password, leave empty if you don't need auth
password = ""
#MQTT topic _template_ where battery status updates should be sent (%s will be replaced with scooter's name or MAC address)
battery_topic = "ninebot/%s/battery"
#MQTT topic _template_ where availability updates should be sent (%s will be replaced with scooter's name or MAC address)
#Set to "disable" to disable availability updates
availability_topic = "ninebot/%s/available"
#This value will be sent to availability topic (if enabled) when scooter is online
payload_available = "online"
#This value will be sent to availability topic (if enabled) when scooter is offline
payload_not_available = "offline"
#If set to "name", it will use scooters' names to replaces %s in MQTT topics' templates. If set to "mac", it will use scooter's MAC addresses
scooter_naming = "name"
#Fill this array with MAC addresses of scooters you don't want to connect. Case doesn't matter but use a colon as a separator
#Like this:
#ignored_scooters = [
# "7E:C5:95:AA:77:50",
# "24:15:E1:40:48:EC",
# "DE:37:2B:8F:5C:67",
#]
ignored_scooters = []