Skip to main content

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)

Uploaded Source

Built Distribution

spymarine-0.2-py3-none-any.whl (10.9 kB view details)

Uploaded Python 3

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

Hashes for spymarine-0.2.tar.gz
Algorithm Hash digest
SHA256 542158311212d46a570c496e3c518ede7483e7004979f469e02fe5133a91a9c9
MD5 ac930289903f26c9940636bc92c1546a
BLAKE2b-256 6be190592166fd2bd945c5f3d933e1eca9dceefef805b552d03c17bed3cba56d

See more details on using hashes here.

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

Hashes for spymarine-0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 d34f501928ce74456799b5fc9eb3e4bd69a86395d62e0dabc8b018a0f4f853f7
MD5 1c9549c84b9f4690a79bebd4453a26a9
BLAKE2b-256 889053bb37a84c632123873c3bb1cbd243899280110ca380e0cf726b0d8f1d0f

See more details on using hashes here.

Supported by

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