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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6fd500231f10ff7100bdbedc6a955f086fa35648d3fe63577f27e1bfbcf967e1
|
|
| MD5 |
2a0e765bfdccf8f93c6529e50854c95d
|
|
| BLAKE2b-256 |
0cab2158bfaa214981784fcd86126a9ed00ea829b87c66c747334af96e9405ba
|
Provenance
The following attestation bundles were made for arwn_client-0.1.0.tar.gz:
Publisher:
release.yml on sdague/arwn-client
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
arwn_client-0.1.0.tar.gz -
Subject digest:
6fd500231f10ff7100bdbedc6a955f086fa35648d3fe63577f27e1bfbcf967e1 - Sigstore transparency entry: 1389836133
- Sigstore integration time:
-
Permalink:
sdague/arwn-client@0f0c94df6b6883b22a983890ad8ae0c303daf83e -
Branch / Tag:
refs/heads/main - Owner: https://github.com/sdague
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@0f0c94df6b6883b22a983890ad8ae0c303daf83e -
Trigger Event:
push
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1956aee0b1d0221abbe62f13c588bdd7e35d2de0c5ae162962a4e92e4a1582b2
|
|
| MD5 |
17d00fa3154b6b6e6837488b007d7893
|
|
| BLAKE2b-256 |
6776366832dfff42b516de4874402753519eb84d872893f78149f443ffd09c89
|
Provenance
The following attestation bundles were made for arwn_client-0.1.0-py3-none-any.whl:
Publisher:
release.yml on sdague/arwn-client
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
arwn_client-0.1.0-py3-none-any.whl -
Subject digest:
1956aee0b1d0221abbe62f13c588bdd7e35d2de0c5ae162962a4e92e4a1582b2 - Sigstore transparency entry: 1389836325
- Sigstore integration time:
-
Permalink:
sdague/arwn-client@0f0c94df6b6883b22a983890ad8ae0c303daf83e -
Branch / Tag:
refs/heads/main - Owner: https://github.com/sdague
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@0f0c94df6b6883b22a983890ad8ae0c303daf83e -
Trigger Event:
push
-
Statement type: