How to use the temperusb.snmp.LogWriter function in temperusb

To help you get started, we’ve selected a few temperusb examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github padelt / temper-python / temperusb / snmp.py View on Github external
def main():
    sys.stdout = _unbuffered_handle(sys.stdout)
    pp = snmp.PassPersist(".1.3.6.1.4.1")
    logger = LogWriter()
    upd = Updater(pp, logger, testmode=('--testmode' in sys.argv))
    pp.start(upd.update, 5) # update every 5s

temperusb

Reads temperature from TEMPerV1 devices (USB 0c45:7401)

GPL-3.0
Latest version published 4 months ago

Package Health Score

67 / 100
Full package analysis

Similar packages