We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b450299 commit 0e1356fCopy full SHA for 0e1356f
pyvantagepro/device.py
@@ -308,6 +308,12 @@ def newsetup(self) -> None:
308
self.wake_up()
309
self.send("NEWSETUP", self.ACK)
310
311
+ def get_rain_collector(self) -> int:
312
+ '''Get rainc ollector type. 0x00 = 0.01", 0x10 = 0.2mm, 0x20 = 0.1mm'''
313
+ setup_bits = struct.unpack(b"B", self.read_from_eeprom("2B", 1))[0] # type: ignore
314
+ rain_type = setup_bits & 0x30
315
+ return rain_type
316
+
317
def set_rain_collector(self, type) -> None:
318
'''Set rain collector type. 0x00 = 0.01", 0x10 = 0.2mm, 0x20 = 0.1mm'''
319
setup_bits = struct.unpack(b"B", self.read_from_eeprom("2B", 1))[0] # type: ignore
0 commit comments