Skip to content

Commit

Permalink
Major fixes in forecast download
Browse files Browse the repository at this point in the history
  • Loading branch information
OSi (Ondrej Sienczak) committed Sep 10, 2024
1 parent 39f52c4 commit 7fa2b09
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 5 deletions.
Binary file modified esp32/micropython.bin
Binary file not shown.
2 changes: 1 addition & 1 deletion micropython/net.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

from jumpers import jumpers
from network import WLAN, STA_IF, AP_IF
from config import connection, location, spot, api
from config import connection, location, spot, api, beep
from utime import sleep
import urequests
from uerrno import ECONNRESET
Expand Down
3 changes: 1 addition & 2 deletions simulator/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from jumpers import jumpers
from net import Connection
from config import alert, display, beep, temp, vbat, behavior, hw, spot
from machine import deepsleep, reset, WDT, reset_cause, PWRON_RESET, Pin, unique_id
from machine import deepsleep, reset, WDT, Pin, unique_id
from dht import DHT22
from battery import battery
from buzzer import play
Expand Down Expand Up @@ -305,7 +305,6 @@ def mqtt(self):
client_id = hexlify(unique_id())
server = parts[0]
port = int(parts[1])
print(parts[2].split(";"))
topics = [
dict(map(lambda i: i.split("=", 1), t.split(",")))
for t in parts[2].split(";")
Expand Down
2 changes: 1 addition & 1 deletion simulator/forecast.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ def _mk_id(fid, rain):
current["main"]["temp"],
kw.get("out_temp", None),
current["main"]["feels_like"],
kw.get("out_humi", None) or current["humidity"],
kw.get("out_humi", None) or current["main"]["humidity"],
rain,
rpb,
snow,
Expand Down
2 changes: 1 addition & 1 deletion simulator/ulogging.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,5 +105,5 @@ def _print(*args):

_print(f"Loading module {__name__}")
_print("+-----------------+")
_print("| Meteoink v2.7 |")
_print("| Meteoink v2.8 |")
_print("+-----------------+")

0 comments on commit 7fa2b09

Please sign in to comment.