Cruisers Forum
 

Go Back   Cruisers & Sailing Forums > Seamanship, Navigation & Boat Handling > OpenCPN
Cruiser Wiki Click Here to Login
Register Vendors FAQ Community Calendar Today's Posts Log in

Reply
  This discussion is proudly sponsored by:
Please support our sponsors and let them know you heard about their products on Cruisers Forums. Advertise Here
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 18-02-2020, 17:47   #1
Registered User

Join Date: Jan 2020
Location: Tarbert
Boat: Westerly Centaur 26
Posts: 13
Open CPN 433->node-red->nmea 0183 generator not working... am I doing something wrong

Hello Folks


Been playing about with a weather station for a poor mans to use as a poor mans wind instrument (to save looking up )


Great news is that it talks over rtl_433 and have it cherping away and implemented into OP internal node-red... can see the values changing in debug window, and represented on the signalk instruments.


Tried to use the NMEA 0183 generator to push out the VWT string, it grabbed the first values when initially added but doesn't update on change of direction or wind speed.


Am I doing something wrong ?


Thanks


Craig B
ensaymist is offline   Reply With Quote
Old 19-02-2020, 09:05   #2
Registered User

Join Date: Sep 2019
Posts: 17
re: Open CPN 433->node-red->nmea 0183 generator not working... am I doing something wrong

Hi Craig,
I have the same idea to use a wether device as a poor man's sailing device. Can you tell us which device you are using?
How did you manage to get the data to signal k?
Maybe your problem is, that the 433mhz device only sends data every minute or so. So there is no data between these sendings.
Would be great to hear from you soon.
Greetings Harald
Harry99 is offline   Reply With Quote
Old 19-02-2020, 09:27   #3
Registered User

Join Date: Jan 2020
Location: Tarbert
Boat: Westerly Centaur 26
Posts: 13
re: Open CPN 433->node-red->nmea 0183 generator not working... am I doing something wrong

Hi Harald


It's the £60 Bresser 5-1 weather center.


It polls every 10 seconds... and easily captured with RTL_433... this is then pushed over MTQQ to node-red, then manipulated a little bit and dropped onto signalk.

Just struggling to get the OpenCPN bit working now.

I am thinking of spoofing the nmea string pushing it via UDP onto 10110 (kplex ??)
ensaymist is offline   Reply With Quote
Old 19-02-2020, 09:30   #4
Registered User

Join Date: Jan 2020
Location: Tarbert
Boat: Westerly Centaur 26
Posts: 13
re: Open CPN 433->node-red->nmea 0183 generator not working... am I doing something wrong

Quote:
Originally Posted by ensaymist View Post

It polls every 10 seconds...

{"time" : "2020-02-17 17:11:42", "model" : "Bresser-5in1", "id" : 216, "temperature_C" : 18.800, "humidity" : 50, "wind_max_m_s" : 2.800, "wind_avg_m_s" : 1.600, "wind_dir_deg" : 247.500, "rain_mm" : 12.000, "mic" : "CHECKSUM"}
ensaymist is offline   Reply With Quote
Old 20-02-2020, 01:50   #5
Registered User

Join Date: Jan 2020
Location: Tarbert
Boat: Westerly Centaur 26
Posts: 13
re: Open CPN 433->node-red->nmea 0183 generator not working... am I doing something wrong

finally getting somewhere....

had to convert the direction into radians... now one of the pins on sailgauge is working, from the data received from the weather station.

off to the boat this afternoon to plug into gps and see if we get the rest of it working (and the dashboard on OpenCPN)

Attached Thumbnails
Click image for larger version

Name:	sailgauge.jpg
Views:	91
Size:	86.0 KB
ID:	209097  
ensaymist is offline   Reply With Quote
Old 20-02-2020, 08:51   #6
Registered User

Join Date: Sep 2019
Posts: 17
Re: Open CPN 433->node-red->nmea 0183 generator not working... am I doing something w

Great news! Can you tell us, how you did the job?

Congratulations, Harald
Harry99 is offline   Reply With Quote
Old 20-02-2020, 11:55   #7
Registered User

Join Date: Jan 2020
Location: Tarbert
Boat: Westerly Centaur 26
Posts: 13
Re: Open CPN 433->node-red->nmea 0183 generator not working... am I doing something w

Here it is up and running on opencpn (openplotter) on a pi. Write up to follow after tea
Attached Thumbnails
Click image for larger version

Name:	IMG_20200220_181501.jpg
Views:	87
Size:	387.5 KB
ID:	209127   Click image for larger version

Name:	Screenshot_20200220-174238.png
Views:	88
Size:	70.2 KB
ID:	209128  

ensaymist is offline   Reply With Quote
Old 20-02-2020, 17:39   #8
Registered User

Join Date: Jan 2020
Location: Tarbert
Boat: Westerly Centaur 26
Posts: 13
Re: Open CPN 433->node-red->nmea 0183 generator not working... am I doing something w

Some quick notes for replicating...


Equipment;
* raspberry pi 3, berrygps-imu hat, mounted in a spartipi case with 7" touchscreen- openplotter v1.2 (on raspian stretch)
* nooelec sdr usb fob with aerial
* Bresser 5-1 weather center


Software;

https://github.com/merbanan/rtl_433, compiled and installed
https://github.com/mverleun/RTL433-to-mqtt, compiled and installed
signalk -
* signalk-node-red, installed and enabled
* signalk-mqtt-gw, installed and enabled
* signalk-to-nmea0183, installed and enabled




Instructions;
ensure that signalk mtqq local server is running


configure RTL433-to-mqtt to connect to mtqq server and run '/usr/local/bin/rtl_433 -f 868300000 -Y classic -s 250k -F json', execute and background process


configure signalk-node-red (nodered-flow attached), please note the wind-dir has logic added to show negative values for angles above 180, then is converted into radians... then presented as number... then the topic changed to match the appropriate environment.wind token.


once that is deployed you should be able to see the values populated in node-red (and displayed in debug screen), systemk instrument panel should also be showing values.


systemk diagnostics should be showing every 10 seconds.



configure signalk-to-nmea0183 to send the appropriate wind strings (or enable all of them ), submit and restart signalk.


now in opencpn ensure has connections to TCP localhost 10110 and 30330, nmea debug should now be showing all the nmea lines coming in.


add the apparent wind speed and angle to the dashboard, it should populate shortly with the data fed through signalk from the weather station.


signalk sailgauge is also worth a look.



enjoy !
Attached Thumbnails
Click image for larger version

Name:	nodered-flow.jpg
Views:	200
Size:	207.8 KB
ID:	209149  
Attached Files
File Type: pdf nodered-flow.pdf (85.5 KB, 71 views)
ensaymist is offline   Reply With Quote
Old 21-02-2020, 00:17   #9
Registered User

Join Date: Sep 2019
Posts: 17
Re: Open CPN 433->node-red->nmea 0183 generator not working... am I doing something w

Wow, thanks a lot for all the information.
Great work!

Yours Harald
Harry99 is offline   Reply With Quote
Old 07-03-2020, 05:01   #10
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,632
Images: 2
Re: Open CPN 433->node-red->nmea 0183 generator not working... am I doing something w

For all you node-red Victron users.
Venus OS with node red
https://github.com/victronenergy/venus/issues/378
rgleason is offline   Reply With Quote
Reply

Tags
generator, nmea, nmea 0183, work


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Android/Node-red for boat monitoring conachair Marine Electronics 3 31-01-2017 22:34
Doing something to save money and it goes wrong mikefp60 Seamanship & Boat Handling 4 23-08-2016 14:04
Open cpn 4.4 Grib2 not working for me. Aupalukii OpenCPN 5 24-06-2016 12:43
Android Tab 4 - OpenCPN -ENC am I doing something wrong Maine_bill OpenCPN 5 12-11-2015 15:21
For Sale: Comar NMEA-2-WIFI NMEA 0183 Converter $230 4arch Classifieds Archive 1 02-11-2015 03:02

Advertise Here


All times are GMT -7. The time now is 19:27.


Google+
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Social Knowledge Networks
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2024, vBulletin Solutions, Inc.

ShowCase vBulletin Plugins by Drive Thru Online, Inc.