Skip to content

A Python API for communication with a Lufft Compact-Weatherstation (e.g. WS600-UMB) via Serial-Port

License

Notifications You must be signed in to change notification settings

Grisly00/lufft-python

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

lufft-python

A Python API/driver for communication to Weatherstations made by the German company Lufft (e.g. WS600-UMB) via Serial-Port It implements their Lufft UMB-Protocol. You just need a USB-to-RS485 dongle and connect it to your PWS according to the wiring diagram you find in the manual.

This class does not replace the UMB-config-tool, because its not able to set the config values in your PWS at the moment.

In your python-script

Usage single channel

from WS_UMB import WS_UMB

with WS_UMB() as umb:
    value, status = umb.onlineDataQuery(SomeChannelNumber)
    if status != 0:
        print(umb.checkStatus(status))
    else:
        print(value)

Usage multiple channels

from WS_UMB import WS_UMB

with WS_UMB() as umb:
    channels = [113, 4630]
    values, statuses = umb.onlineDataQueryMulti(channels)
    print(values)

Usage multiple channels one query

from WS_UMB import WS_UMB

with WS_UMB() as umb:
    channels = [113, 4630]
    values, statuses = umb.onlineDataQueryMultiOneCall(channels)
    print(values)

About

A Python API for communication with a Lufft Compact-Weatherstation (e.g. WS600-UMB) via Serial-Port

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%