This template file provides a reference for developers to create their own configuration file without exposing sensitive information. It should be included in the PyCharm project structure, while the actual configuration file (network_configuration.json) should also be included in the project but excluded from version control.
31 lines
853 B
JSON
31 lines
853 B
JSON
{
|
|
"unifi": {
|
|
"host": "https://unifi.example.com",
|
|
"username": "your_username",
|
|
"password": "your_password",
|
|
"site": "default",
|
|
"network_filter": {
|
|
"network_name": {
|
|
"name": "Human-readable name",
|
|
"subnet": "192.168.1",
|
|
"exclude_patterns": [
|
|
"device-to-exclude*",
|
|
"*another-pattern*"
|
|
],
|
|
"unknown_device_patterns": [
|
|
"tasmota*",
|
|
"ESP-*"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"mqtt": {
|
|
"Host": "mqtt.example.com",
|
|
"Port": 1883,
|
|
"User": "mqtt_username",
|
|
"Password": "mqtt_password",
|
|
"Topic": "%hostname_base%",
|
|
"FullTopic": "%prefix%/%topic%/",
|
|
"NoRetain": false
|
|
}
|
|
} |