This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
M5Stack
#11
(2020-03-25, 03:07 PM)mgrouch Wrote: Here is my version of M5Stack Boat Display. I looked at abarrow's code (it was very useful) but ended up with quite different.

GPS/Wind displays so far.
I might add AIS in future. This display connects via TCP to SignalK NMEA stream or to KPlex. (without need for MQTT)

This is how it looks: https://bareboat-necessities.github.io/m...tt_m5stack

The code is here: https://github.com/bareboat-necessities/...at-display

Thanks,
--MG

Great piece of work!
I tried it out last night and got it to work quite easily. I only had to change the name_sources from "openplotter" to "192.168.[....]" in order to get a connection.
My setup is an RPi4 which runs openplotter, hooked to a separate Wifi router.
Would there be another way to get the connection without using the IP-address of the RPi. The reason is that this will change when I'm on the boat (currently testing things at home)

Another feature would be to use Signal-K data without nmea. That way all data in Signal-K would become available. I guess that's the set-up that abarrow has used, but I haven't figured out his software.

(2020-03-27, 07:40 PM)abarrow Wrote: It looks great! I spent some time getting mine to work with websockets and SignalK. I used it recently on a trip down the coast.

It works, but I still need to spend some time cleaning up the code and adding some error checking.

Github is here: https://github.com/andyrbarrow/SignalKM5StackInstrument

Looking forward to that!
I tried to understand the code and run it, but struggled with the WebSocketClient. Which library do you use for this?

Basically I'm trying to understand how I would need to get a single Signal-K path into a variable in Arduino (including all the connecting and handshaking, etc). From that I can expand and incorporate it in any Arduino code, e.g. mgrouch's.
Reply
#12
Changed it from openplotter to openplotter.local on my RPI4 works great. Used OP as a local access point since that is the way it will work on the boat.

Thanks to all for posting all you good works!
Reply
#13
It works in my set up with just 'openplotter'. My DNS server is on the router though.
I'd like to add more screens to that project for completeness. I think depth/speed/heading would be easy.
Its just same as first screen.
And I'd like to add a screen to show 5 nearest ships from AIS.
I think it's easier to parse AIS stream on pi4 and just write custom (proprietary NMEA sentense for M5Stack) to display it via same
code on M5Stack display.

Thanks,
--MG
Reply
#14
(2020-03-29, 10:50 PM)mgrouch Wrote: And I'd like to add a screen to show 5 nearest ships from AIS.
I think it's easier to parse AIS stream on pi4 and just write custom (proprietary NMEA sentense for M5Stack) to display it via same
code on M5Stack display.

Using SignalK keys like  "/vessels/<RegExp>/navigation/closestApproach" would work for that, but you'd have to have something doing the calculations for you. OpenPlotter in it's basic configuration won't do that, but I did notice a couple of AIS-related apps in the SignalK App Store that might help.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)