GithubHelp home page GithubHelp logo

iobroker / iobroker.nmea Goto Github PK

View Code? Open in Web Editor NEW
2.0 3.0 1.0 4.74 MB

Connects NMEA2000 boat network to ioBroker

License: MIT License

JavaScript 99.62% HTML 0.38%
boat iobroker nautical nmea nmea2000 yacht

iobroker.nmea's Introduction

Logo

ioBroker.nmea

This adapter allows connecting ioBroker to NMEA-2000 yacht bus.

This adapter uses Sentry libraries to automatically report exceptions and code errors to the developers. For more details and for information how to disable the error reporting see Sentry-Plugin Documentation! Sentry reporting is used starting with js-controller 3.0.

To use this adapter, you need a hardware that can read NMEA-2000 bus and convert it to the serial port:

  • Actisense NGT-1 (USB)
  • or Raspberry PI with PiCAN-M

Widgets

YouTube explanation

How to use it on Raspberry PI with PiCAN-M

The PiCAN M is a compact add-on board designed for the Raspberry Pi 3/4. It enables the connection of both NMEA2000 and NMEA0183 networks to a Raspberry Pi. The board can be powered through an external 12V source. Additionally, it offers the option to power the Raspberry Pi directly via the NMEA2000 bus when used with the PiCAN-M board.

The PiCAN-M lacks appropriate protection against reverse polarity for the 12V supply voltage. When operated externally at 12V, it is necessary to include a 1A fuse in the power supply line.

Because of the high requirements of Raspberry Pi to power supply, we suggest powering the Raspberry PI from the external power source (at least 3A). Power over NMEA2000 and over USB could function in parallel without a problem.

Installation

See chapter 3 in PiCAN-M User Guide for more details, but here is a short summary:

Edit file /boot/config.txt (with sudo nano /boot/config.txt) and add the following lines to the end of the file:

enable_uart=1
dtparam=i2c_arm=on
dtparam=spi=on
dtoverlay=mcp2515-can0,oscillator=16000000,interrupt=25 

Disable outputs on UART console:

  • start in CLI sudo raspi-config
  • go to 3 Interface Options
  • go ot I5 Serial Port
  • Disable shell accessible over serial and serial port hardware enabled
  • Exit from raspi-config and reboot

Install can-utils

sudo apt-get install can-utils

Actisense NGT-1

Actisense NGT-1 is visible on Windows or Linux without any additional drivers. It is visible as a serial port 'COMn' (Windows) or ttyN(on linux).

Todo

Data simulation

You can feed the data from external sensors to the NMEA2000 bus. Actually, you can only simulate environmental data, like temperature, humidity, pressure.

With the flag Combined environment you can define the PGN number which will be used for temperature, humidity and pressure:

  • If you unselect the flag Combined environment, so for the temperature will be used PGN 130314, for humidity PGN 130313 and for pressure PGN 130314.
  • If you select the flag Combined environment, so all three values will be sent in PGN 130311 together with other possible environmental values.

Changelog

0.1.8 (2024-03-20)

  • (bluefox) Corrected vis-2 widgets

0.1.1 (2024-03-19)

  • (bluefox) Corrected vis-2 widgets

0.0.4 (2024-03-12)

  • (bluefox) Fixed CI tests

0.0.3 (2024-03-12)

  • (bluefox) Initial commit

License

The MIT License (MIT)

Copyright (c) 2024 bluefox [email protected]

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

iobroker.nmea's People

Contributors

dependabot[bot] avatar germanbluefox avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

iobroker.nmea's Issues

Please consider fixing review remarks :-)

@GermanBluefox
Da du den Adapter schon selbst ins LATEST gemerged hast nachträglich noch mein Anmerkungen lt. Standardliste. Bitte einfach bei Gelegenheit anschaun...

Und lass mich wissen was ich alles Wichtiges übersehen habe :-)


First of all - THANK YOU for the time and effort you spend to maintain this adapter.

I would like to give some feedback based on my personal oppinion. @Apollon77 might have additional suggestions or even a different oppinion to one or the other statement. Please feel free to contact him if you cannot follow my suggestions or want to discuss some special aspects.

  • adapt testing to supported node releases

    Testing has been limioted to node 18 / 20. Thats fine as node 16 is outdated. Please adapt engines claude to require node 18 minimum as node 16 is not tested any more.

  • This adapter seems to use sentry, but no sentry info is added to Readme.md

    This adapter seems to use sentry for error logging. Please add the suggested sentry information at the top of Readme.md

    **This adapter uses Sentry libraries to automatically report exceptions and code errors to the developers.** For more details and for information how to disable the error reporting see [Sentry-Plugin Documentation](https://github.com/ioBroker/plugin-sentry#plugin-sentry)! Sentry reporting is used starting with js-controller 3.0.

Thanks for reading and evaluating this suggestions.
McM1957

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.