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.tar.gz
(15.2 kB
view details)
Built Distribution
spymarine-0.2-py3-none-any.whl
(10.9 kB
view details)
File details
Details for the file spymarine-0.2.tar.gz
.
File metadata
- Download URL: spymarine-0.2.tar.gz
- Upload date:
- Size: 15.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.31.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 542158311212d46a570c496e3c518ede7483e7004979f469e02fe5133a91a9c9 |
|
MD5 | ac930289903f26c9940636bc92c1546a |
|
BLAKE2b-256 | 6be190592166fd2bd945c5f3d933e1eca9dceefef805b552d03c17bed3cba56d |
File details
Details for the file spymarine-0.2-py3-none-any.whl
.
File metadata
- Download URL: spymarine-0.2-py3-none-any.whl
- Upload date:
- Size: 10.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.31.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d34f501928ce74456799b5fc9eb3e4bd69a86395d62e0dabc8b018a0f4f853f7 |
|
MD5 | 1c9549c84b9f4690a79bebd4453a26a9 |
|
BLAKE2b-256 | 889053bb37a84c632123873c3bb1cbd243899280110ca380e0cf726b0d8f1d0f |