2020-03-28, 11:40 AM
(This post was last modified: 2020-03-28, 12:32 PM by DanielGoedhuis.)
(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.