Skip to main content

Python client library for parsing ARWN weather station MQTT messages

Project description

pyarwn

Python client library for parsing ARWN weather station MQTT messages.

Installation

pip install pyarwn

Usage

from pyarwn import parse_message

readings = parse_message("arwn/temperature/BackYard", {"temp": 72.5, "units": "F"})
for r in readings:
    print(f"{r.sensor_name}: {r.value} {r.unit}")
# BackYard Temperature: 72.5 °F

API

parse_message(topic, payload) -> list[ArwnReading]

Parse an ARWN MQTT message. Returns an empty list for unknown topics.

ArwnReading

Field Type Description
device_type ArwnDeviceType LOCATION or STATION
device_name str e.g. "BackYard", "Weather Station"
sensor_key str e.g. "temp", "speed"
sensor_name str e.g. "BackYard Temperature"
value float | int The reading value
unit str Unit string e.g. "°F", "mph"

ArwnDeviceType

  • ArwnDeviceType.LOCATION — sensor at a named location (temperature, moisture)
  • ArwnDeviceType.STATION — weather station sensor (wind, rain, barometer)

License

Apache 2.0

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

arwn_client-0.1.0.tar.gz (6.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

arwn_client-0.1.0-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

File details

Details for the file arwn_client-0.1.0.tar.gz.

File metadata

  • Download URL: arwn_client-0.1.0.tar.gz
  • Upload date:
  • Size: 6.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for arwn_client-0.1.0.tar.gz
Algorithm Hash digest
SHA256 6fd500231f10ff7100bdbedc6a955f086fa35648d3fe63577f27e1bfbcf967e1
MD5 2a0e765bfdccf8f93c6529e50854c95d
BLAKE2b-256 0cab2158bfaa214981784fcd86126a9ed00ea829b87c66c747334af96e9405ba

See more details on using hashes here.

Provenance

The following attestation bundles were made for arwn_client-0.1.0.tar.gz:

Publisher: release.yml on sdague/arwn-client

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file arwn_client-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: arwn_client-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 6.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for arwn_client-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1956aee0b1d0221abbe62f13c588bdd7e35d2de0c5ae162962a4e92e4a1582b2
MD5 17d00fa3154b6b6e6837488b007d7893
BLAKE2b-256 6776366832dfff42b516de4874402753519eb84d872893f78149f443ffd09c89

See more details on using hashes here.

Provenance

The following attestation bundles were made for arwn_client-0.1.0-py3-none-any.whl:

Publisher: release.yml on sdague/arwn-client

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page