Giter Club home page Giter Club logo

signalk-calypso-ultrasonic's People

Contributors

fabdrol avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

signalk-calypso-ultrasonic's Issues

Errors and crashes with latest Signal K Server

On Raspberry Pi 3, Signal K Server 1.40.0
I am getting the following message:
Calypso Ultrasonic plugin for Signal K is using deprecated setProviderStatus/Error https://github.com/SignalK/signalk-server/blob/master/SERVERPLUGINS.md#appsetproviderstatusmsg

Then when it tries to process the BLE data from the Calypso Ultrasonic Wind sensor:
RangeError [ERR_BUFFER_OUT_OF_BOUNDS]: Attempt to write outside buffer bounds at boundsError (internal/buffer.js:47:11) at Buffer.readFloatForwards [as readFloatLE] (internal/buffer.js:487:5) at /home/pi/.signalk/node_modules/signalk-calypso-ultrasonic/lib/calypso-ultrasonic.js:399:43 at Characteristic.onRead (/home/pi/.signalk/node_modules/@abandonware/noble/lib/characteristic.js:45:9) at Characteristic.emit (events.js:198:13) at Noble.onRead (/home/pi/.signalk/node_modules/@abandonware/noble/lib/noble.js:439:20) at NobleBindings.emit (events.js:198:13) at NobleBindings.onRead (/home/pi/.signalk/node_modules/@abandonware/noble/lib/hci-socket/bindings.js:411:8) at Gatt.emit (events.js:198:13) at Object.callback (/home/pi/.signalk/node_modules/@abandonware/noble/lib/hci-socket/gatt.js:538:14) at Gatt.onAclStreamData (/home/pi/.signalk/node_modules/@abandonware/noble/lib/hci-socket/gatt.js:133:26) at AclStream.emit (events.js:203:15) at AclStream.push (/home/pi/.signalk/node_modules/@abandonware/noble/lib/hci-socket/acl-stream.js:33:10) at NobleBindings.onAclDataPkt (/home/pi/.signalk/node_modules/@abandonware/noble/lib/hci-socket/bindings.js:308:15) at Hci.emit (events.js:198:13) at Hci.onSocketData (/home/pi/.signalk/node_modules/@abandonware/noble/lib/hci-socket/hci.js:634:14)

signalk-calypso-ultrasonic plugin not turning on compass option

Hi,

I am using the calypso-ultrasonic-portable plugin with with a raspberry pi4 running buster os with openplotter on the signalk node server.

The server scans, connects and returns data with my ULTRASONIC, it adjusts the select data rate accordingly, ie 1, 4, or 8 Hz (so it is writing to the ULTRASONIC to adjust the options) however, I cannot get it to turn the Compass ON by selecting “1” in the plugin options.

I have written a rudimentary python script with no error correction using bluepy (I am not a programmer by any means) to connect to and write to the ULTRASONIC in a terminal window outside of the signal node server and it does turn ON the Compass so the ULTRASONIC is working fine.

Can you offer any suggestions as to how to fix this and has anybody else had difficulty?

Also the connection to the ULTRASONIC in the plugin only seems to run for several minutes then drops out, it works continuously from the terminal.
Regards
Ken Hawes

Hello from `calypso-anemometer` Python implementation ❤️

Dear Fabian,

thank you so much for sharing this implementation with the community. We just wanted to let you know we conceived a corresponding implementation in Python 12, which may also spark your interest. At 3, we added credits to the core decoding routine, because we found your decoding sheet 4 invaluable 💯.

With kind regards,
Andreas.

Footnotes

  1. https://github.com/maritime-labs/calypso-anemometer

  2. https://pypi.org/project/calypso-anemometer/

  3. https://github.com/maritime-labs/calypso-anemometer/blob/ba00ad9/calypso_anemometer/model.py#L92-L149

  4. https://github.com/decipherindustries/signalk-calypso-ultrasonic/blob/master/DECODE

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.