weather: do not make it depend on polybar

It's not used only by polybar and can be run before or after it.
This commit is contained in:
Vincent Bernat 2021-12-26 14:56:06 +01:00
parent 4ec09efa25
commit 45ee293d35
5 changed files with 7 additions and 9 deletions

View file

@ -11,7 +11,7 @@ import subprocess
import time
from systemd import journal
logger = logging.getLogger("polybar-weather")
logger = logging.getLogger("weather")
def get_location():
@ -95,7 +95,7 @@ def update_status(status, output):
f.write(status)
# Send it to polybar
subprocess.run(["polybar-msg", "action", f"#weather.send.{status}"], check=True)
subprocess.run(["polybar-msg", "action", f"#weather.send.{status}"])
if __name__ == "__main__":