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 hashes)
Built Distribution
spymarine-0.2-py3-none-any.whl
(10.9 kB
view hashes)