-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
11 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -222,7 +222,7 @@ def __init__( | |
self._dbusservice.add_path('/ProductId', 0xFFFF) | ||
self._dbusservice.add_path('/ProductName', productname) | ||
self._dbusservice.add_path('/CustomName', customname) | ||
self._dbusservice.add_path('/FirmwareVersion', '0.1.4 (20231106)') | ||
self._dbusservice.add_path('/FirmwareVersion', '0.1.5 (20231218)') | ||
# self._dbusservice.add_path('/HardwareVersion', '') | ||
self._dbusservice.add_path('/Connected', 1) | ||
|
||
|
@@ -363,6 +363,15 @@ def main(): | |
logging.info("Waiting 5 seconds for receiving first data...") | ||
else: | ||
logging.warning("Waiting since %s seconds for receiving first data..." % str(i * 5)) | ||
|
||
# check if timeout was exceeded | ||
if timeout <= (i * 5): | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
mr-manuel
Author
Owner
|
||
logging.error( | ||
"Driver stopped. Timeout of %i seconds exceeded, since no new MQTT message was received in this time." | ||
% timeout | ||
) | ||
sys.exit() | ||
|
||
sleep(5) | ||
i += 1 | ||
|
||
|
with timeout=0(option to disable timeout) this stops the driver.
how is the desired behaviour for nights, where no power is produced?
i want to avoid restarts of the driver and dont want to send fake zero values.
Thanks for clarification.