Communicate with Simarine devices using asyncio and Python
Project description
spymarine
A library for spying on Simarine devices and their sensor values using asyncio and Python
Based on the fantastic reverse engineering work of https://github.com/htool/pico2signalk
Only tested with Simarine Pico rev2
Library Installation
pip install spymarine
Getting Started
Run the following code on the same network that the Simarine device is connected to:
import asyncio
import spymarine
async def main():
# Print all devices and their latest sensor values every second
async with spymarine.DeviceReader() as reader:
while True:
await reader.read_sensors()
print(reader.devices)
await asyncio.sleep(1)
if __name__ == "__main__":
asyncio.run(main())
Author
Christopher Strack
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
spymarine-0.2.1.tar.gz
(9.1 kB
view details)
Built Distribution
spymarine-0.2.1-py3-none-any.whl
(11.1 kB
view details)
File details
Details for the file spymarine-0.2.1.tar.gz
.
File metadata
- Download URL: spymarine-0.2.1.tar.gz
- Upload date:
- Size: 9.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.12.2 Darwin/23.3.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | eab3bf848c1d4d11ac841a8848a261f90f9a80b49f0aeef43c1b1da2c70ac3c3 |
|
MD5 | 2d609d4ac0815436de9348a6f0be266e |
|
BLAKE2b-256 | 688c97b542febfb3abaf06459e9867ff85dd82682834433495c2f2d6665583b2 |
File details
Details for the file spymarine-0.2.1-py3-none-any.whl
.
File metadata
- Download URL: spymarine-0.2.1-py3-none-any.whl
- Upload date:
- Size: 11.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.12.2 Darwin/23.3.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 03888c3fd9b4a80ba9146a633ae633ed83abd074e42a65d8f62fddf3bd163755 |
|
MD5 | c405f8949f0586992c4d23c3f85a4e78 |
|
BLAKE2b-256 | a3d5a5760fba11183f3c0b5e2fbca10a1a029e75a14d97f4da1094e11f55cc20 |