Skip to content

Commit b7e7e10

Browse files
committed
Update mqtt_client
typos
1 parent 9401f5f commit b7e7e10

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

app/mqtt_client

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -122,14 +122,14 @@ class fevrMQTT:
122122
if self.getConfig(args.config) == "valid":
123123
logit.execute(self.configJSON,src=self.script)
124124
# 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://"
133133
topics = "frigate/+" if not self.configJSON["mqtt_topics"] else self.configJSON["mqtt_topics"]
134134

135135
self.topics = []

0 commit comments

Comments
 (0)