@@ -122,14 +122,14 @@ class fevrMQTT:
122
122
if self .getConfig (args .config ) == "valid" :
123
123
logit .execute (self .configJSON ,src = self .script )
124
124
# Use defaults if env vars aren't set, otherwise, use env vars.
125
- self .fevr = "localhost" if not self .broker else self .configJSON ["fevr_url" ]
126
- self .broker = "mqtt" if not self .broker else self .configJSON ["mqtt_broker" ]
127
- self .port = 1883 if not self .port else int (self .configJSON ["mqtt_port" ])
128
- self .username = "" if not self .username else self .configJSON ["mqtt_user" ]
129
- self .password = "" if not self .password else self .configJSON ["mqtt_password" ]
130
- self .apikey = "" if not self .apikey else self .configJSON ["fevr_apikey" ]
131
- self .verbose = True if self .verbose or self .verbose == "true" else False
132
- self .transport = "https://" if self .configJSON == "https" or self .configJSON == "https://" else "http://"
125
+ self .fevr = "localhost:5090 " if not self .configJSON [ "fevr_url" ] else self .configJSON ["fevr_url" ]
126
+ self .broker = "mqtt" if not self .configJSON [ "mqtt_broker" ] else self .configJSON ["mqtt_broker" ]
127
+ self .port = 1883 if not self .configJSON [ "mqtt_port" ] else int (self .configJSON ["mqtt_port" ])
128
+ self .username = "" if not self .configJSON [ "mqtt_user" ] else self .configJSON ["mqtt_user" ]
129
+ self .password = "" if not self .configJSON [ "mqtt_password" ] else self .configJSON ["mqtt_password" ]
130
+ self .apikey = "" if not self .configJSON [ "fevr_apikey" ] else self .configJSON ["fevr_apikey" ]
131
+ self .verbose = True if self .configJSON [ " verbose" ] or self .verbose == "true" else False
132
+ self .transport = "https://" if self .configJSON [ "fevr_transport" ] == "https" or self .configJSON [ "fevr_transport" ] == "https://" else "http://"
133
133
topics = "frigate/+" if not self .configJSON ["mqtt_topics" ] else self .configJSON ["mqtt_topics" ]
134
134
135
135
self .topics = []
0 commit comments