pytec: Add hardware testing script #148
Loading…
Reference in New Issue
No description provided.
Delete Branch "atse/thermostat:test_script"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Eases the process of testing the hardware.
See #143.
@ -0,0 +21,4 @@
"-d",
"--deviation",
default=100,
help="Allowed deviation of resistance in Ohms",
Change this to tolerance in % and calculate the deviation in
main
Done in force-push to
bc02819fca
.@ -0,0 +41,4 @@
sens_resistance = thermostat.get_report()[channel]["sens"]
if sens_resistance is not None:
print(sens_resistance, "Ω")
if min_allowed_resistance < sens_resistance < max_allowed_resistance:
<=
since it'sallowed_resistance
or rename the variableDone in force-push to
bc02819fca
.@ -0,0 +46,4 @@
else:
print("FAILED")
else:
print("Floating SENS pin(s) detected! Is the channel connected?")
remove the bracket
(s)
like aboveRemoved the "pins" nomenclature entirely and replaced it with "input" in the force-push to
bc02819fca
.53c2f804d0
tobc02819fca
@ -0,0 +10,4 @@
parser = argparse.ArgumentParser(description="Thermostat hardware testing script")
parser.add_argument("HOST", metavar="host", default="192.168.1.26", nargs="?")
parser.add_argument("PORT", metavar="port", default=23, nargs="?")
Capitalizations of metavar and argument name are the opposite of what they should be.
Fixed in force-push to
adc25c9b2a
.bc02819fca
toadc25c9b2a