Skip to content

Commit

Permalink
running smartsolar as process rather than module
Browse files Browse the repository at this point in the history
  • Loading branch information
jonashoechst committed Mar 28, 2023
1 parent 844bb81 commit 419db21
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions boot/mqttutil.conf
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ test = False

# get solar power via bluetooth
[smartsolar]
func = "smartsolar.read_nearest_vedevice()"
requires = ["smartsolar"]
#requires = ["smartsolar"]
#func = "smartsolar.read_nearest_vedevice()"
requires = ["json", "subprocess"]
func = 'json.loads(subprocess.check_output(["/usr/bin/python3", "-m", "smartsolar", "-v"], timeout=60))'
test = False

0 comments on commit 419db21

Please sign in to comment.