efficiency
This commit is contained in:
@@ -4,7 +4,7 @@ import sys
|
|||||||
import logging
|
import logging
|
||||||
import requests
|
import requests
|
||||||
from weather_utility import parse_weather_xml, publish_weather
|
from weather_utility import parse_weather_xml, publish_weather
|
||||||
import uuid
|
import secrets
|
||||||
|
|
||||||
logging.basicConfig(
|
logging.basicConfig(
|
||||||
level=logging.INFO,
|
level=logging.INFO,
|
||||||
@@ -20,7 +20,7 @@ USER = "anonymous"
|
|||||||
PASSWORD = "anonymous"
|
PASSWORD = "anonymous"
|
||||||
EXCHANGE = "xpublic"
|
EXCHANGE = "xpublic"
|
||||||
|
|
||||||
rnd_6_chars = uuid.uuid4().hex[:6]
|
rnd_6_chars = secrets.token_hex(3)
|
||||||
QUEUE_NAME = f"q_anonymous.subscribe.citypage.{rnd_6_chars}company2ari.ca"
|
QUEUE_NAME = f"q_anonymous.subscribe.citypage.{rnd_6_chars}company2ari.ca"
|
||||||
SUBTOPIC = "#.WXO-DD.citypage_weather.ON.#"
|
SUBTOPIC = "#.WXO-DD.citypage_weather.ON.#"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user