Skip to content

Commit

Permalink
enable temperature toggling in example
Browse files Browse the repository at this point in the history
  • Loading branch information
arska committed Jun 8, 2024
1 parent 800418a commit a0a77ec
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions example.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,19 @@
use e.g. with "python example.py [email protected] myverysecretpassword"
"""

import argparse
import logging

from controlmyspa import ControlMySpa

PARSER = argparse.ArgumentParser(description="Get metrics from Balboa Controlmyspa")
PARSER.add_argument(
"-v", "--verbose", help="enable debug logging", action="store_true", default=False,
"-v",
"--verbose",
help="enable debug logging",
action="store_true",
default=False,
)
PARSER.add_argument("email", help="email to log in to controlmyspa.com")
PARSER.add_argument("password", help="password to log in to controlmyspa.com")
Expand All @@ -35,7 +40,7 @@
print("current temp", API.current_temp)
print("desired temp", API.desired_temp)

# API.desired_temp = 36 if API.desired_temp == 37 else 37
API.desired_temp = 36 if API.desired_temp == 37 else 37

print("temp range", API.temp_range)
print("panel lock", API.panel_lock)
Expand Down

0 comments on commit a0a77ec

Please sign in to comment.