Skip to content
This repository has been archived by the owner on Dec 8, 2024. It is now read-only.

Commit

Permalink
Merge branch 'feature/homewizard' into next
Browse files Browse the repository at this point in the history
  • Loading branch information
Roeland authored and Roeland committed Aug 7, 2024
2 parents 03f6db4 + 00b558c commit 152c1fc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion sma/config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: "SMA Energy Meter emulator"
description: "Simulate one or more SMA energy meters based on mqtt messages."
version: "rc-0.0.11.9"
version: "rc-0.0.11.10"
slug: sma
url: "https://github.com/Roeland54/SMA-Energy-Meter-emulator"
arch:
Expand Down
2 changes: 1 addition & 1 deletion sma/src/homewizard.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def update_homewizard(userdata):

with userdata['lock']:
userdata['packets'][serial_number] = (packet_data, destination_addresses)
logging.info(f"Updated homewizard packet for serial number {serial_number}")
logging.debug(f"Updated homewizard packet for serial number {serial_number}")

except requests.RequestException as e:
logging.error(f"HTTP Request failed: {e}")
Expand Down
2 changes: 1 addition & 1 deletion sma/src/udp.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def setup_udp(userdata):
def udp_sender(userdata):
udp_socket = socket.socket(socket.AF_INET, socket.SOCK_DGRAM, socket.IPPROTO_UDP)
udp_socket.setsockopt(socket.IPPROTO_IP, socket.IP_MULTICAST_TTL, 32)

logging.info('Starting udp loop')
while True:
homewizard.update_homewizard(userdata)

Expand Down

0 comments on commit 152c1fc

Please sign in to comment.