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.

Welcome, Guest
You have to register before you can post on our site.

Username/Email:
  

Password
  





Search Forums



(Advanced Search)

Forum Statistics
» Members: 2,131
» Latest member: Stanky
» Forum threads: 1,022
» Forum posts: 6,797

Full Statistics

Online Users
There are currently 58 online users.
» 4 Member(s) | 53 Guest(s)
Google, craig, perri, radames, Werner_K

Latest Threads
Moitessier HAT firmware u...
Forum: Bug Reports
Last Post: craig
25 minutes ago
» Replies: 0
» Views: 2
On openplotter 1.2 SMS ta...
Forum: Bug Reports
Last Post: e-sailing
Yesterday, 02:26 PM
» Replies: 1
» Views: 6
ASUS 17 Inch Touch Screen
Forum: General discussion
Last Post: Luckbert
10-18-2018, 05:36 PM
» Replies: 11
» Views: 1,430
segmentation fault
Forum: How do I...?
Last Post: seandepagnier
10-18-2018, 01:09 PM
» Replies: 1
» Views: 3
OpenCPN Chart Downloader ...
Forum: Bug Reports
Last Post: JKitchens
10-18-2018, 10:13 AM
» Replies: 0
» Views: 4
How to configure a LTE us...
Forum: How do I...?
Last Post: kste
10-18-2018, 04:04 AM
» Replies: 1
» Views: 9
Logging battery amps
Forum: How I did it
Last Post: gypsylyon
10-17-2018, 05:31 PM
» Replies: 9
» Views: 500
Implementing /digitalyach...
Forum: How do I...?
Last Post: cepicscepics
10-17-2018, 07:45 AM
» Replies: 23
» Views: 5,290
Error when updating openP...
Forum: Bug Reports
Last Post: cepicscepics
10-17-2018, 06:42 AM
» Replies: 7
» Views: 134
Radar
Forum: How do I...?
Last Post: jim321
10-17-2018, 02:58 AM
» Replies: 1
» Views: 16

 
  Upgrading Node-RED - Should I?
Posted by: abarrow - 06-30-2017, 12:28 PM - Forum: General discussion - Replies (1)

I just noticed on the Node-RED website that a new version of Node-RED came out on June 27. 

I also saw on the Raspberry PI Upgrade instructions that custom nodes would be lost. https://nodered.org/docs/hardware/raspberrypi

Am I right in assuming that I should NOT do this upgrade?


  Node red resource hungry after update
Posted by: PaddyB - 06-29-2017, 03:04 PM - Forum: Bug Reports - Replies (1)

Anyone else having trouble with node-red eating up lots of resources?  I did a system update earlier and now node-red is awfully greedy...

[Image: X0Hm7cT.png]


Not sure what' going on here - any ideas?

[Image: jhaO3DF.png]


  getting nmea0183 data for dummies!
Posted by: Pkarl45 - 06-28-2017, 09:51 AM - Forum: How do I...? - Replies (19)

Operplotter seems to be a great tool, but I'm not sure about how to set up everythin, especially with nmea0183. I have tried to read the documentation but feel that it does not answer my questions regarding nmea0183 connections.
Today I have a pretty old Raymarine system consisting of: plotter (c80), gps, radar, wind sensor, echo sounder, vhf and autopilot. Everything is connected to a box, besides GPS, which goes directly to the plotter (c80). What I can understand is that the GPS is using nmea0183 and goes directly to the plotter,  while other equipment communicates via seatalk and goes thrue the box. The nmea connection is left empty in the box.


The box I have, also Raymarine, looks like this: [Image: view] https://drive.google.com/file/d/18HpL8rW...nMYEQ/view

Now to my question: First of all, I want to connect GPS and the autopilot to openplotter. I have a separate navigation software on a laptop and want to retrieve the information from Openplotter. I have purchased a NMEA 0183 two USB converter from openmarine. However, can I connect both gps and autopilot to the same usb converter? Or do I need to purchase several "NMEA 0183 to USB converter"? Huh 


As you notice, I am a real beginner of this and I feel realy stupid!  But, I would be grateful if someone could easily describe, alternatively, suggest a link, how to get the nmea0183 information into openplotter and then use it on a navigation program on a laptop, for example. I did figured out how to connect the AIS but nmea is harder to understand.
//Patrik


  Checksums on incoming NMEA strings
Posted by: abarrow - 06-27-2017, 03:49 PM - Forum: How do I...? - Replies (6)

There has been a little discussion on NMEA checksums over the past few months, but I don't think this one has been discussed in detail:

I have an old AutoHelm ST-60 with an NMEA output. It puts out DBT and HDM strings. I have trouble integrating it with other stuff. Depth randomly shows up and I don't think HDM ever does. I can actually see the strings coming in to OpenPlotter, but they don't seem to get used anywhere.

I think this may be due to the lack of checksums, and in the case of DBT strings, the presence of ONLY feet measurement. My thought was that I could create a couple of named pipes in the filesystem, pass the strings into one, manipulate them to add checksum and the other depth measurements, then pass the result to another named pipe that goes into KPLEX/OpenPlotter.

I've written the python code to do the string manipulation and it works great on a stored file of NMEA data that I received from the ST-60. It will happily take the strings, add the appropriate depth measurements to the DBT strings, then output both the DBT and HDM strings with checksums. Where I get stuck is how to get this data from KPLEX, and how to pass the data back to KPEX. I can't seem to get the named pipes to work as expected. The only other way I can think to do it is to perhaps create a small ramdisk and read from a file there, and write to another file, occasionally flushing the data stored there so as not to overrun the disk.

Have I taken myself down a rabbit hole here? Is there some other magic that I'm missing in Node-RED or KPLEX configuration that will do what I need to do? Am I wrong about the need for checksums and the other depth metrics in the strings I'm getting?

Your thoughts would be most appreciated.


  change eth0 to static
Posted by: benjamingotke - 06-27-2017, 03:39 PM - Forum: How do I...? - Replies (18)

Hi
I want to change my eth0 to static ip 192.168.1.5 and netmask 255.255.255.0
Either it is change, but then i have no internetaccess thue wlan1(a wifi dongle)
or OpenPlotter changes the settings automatic...
Anybody who can help?


  Connecting JSON from Ethernet device
Posted by: benjamingotke - 06-26-2017, 04:35 PM - Forum: Node Red - Replies (2)

Hi all
i have a Ethernet device called DEAnetIP4 to control my relays in the boat.
I'm trying to control it with the freeboard. First i tryet in NodeRED, but i'm not good at coding. Then I found out that the relayboard send and recieve by JSON, so i tryet to connect with that. The board is connected with wire to the router where my PI is connected to with a wifidoungle named wlan1. OpenPlotter is transmitted by wlan0, and I think the problem lies here.

When I go to the browser and type this address: http://192.168.1.100/current_state.json?pw=admin

I get this:

Code:
{
 "CurrentState": {
   "DigitalInput": [
     {"Name": "DI1", "Value": "0", "Count": "0"},
     {"Name": "DI2", "Value": "0", "Count": "0"},
     {"Name": "DI3", "Value": "0", "Count": "0"},
     {"Name": "DI4", "Value": "0", "Count": "0"},
     {"Name": "DI5", "Value": "0", "Count": "0"},
     {"Name": "DI6", "Value": "0", "Count": "0"},
     {"Name": "DI7", "Value": "0", "Count": "0"},
     {"Name": "DI8", "Value": "0", "Count": "0"}
   ],
   "AnalogInput": [
     {"Name": "AI1", "Value": "0", "Measure": "0.0 mV"},
     {"Name": "AI2", "Value": "0", "Measure": "0.0 mV"},
     {"Name": "AI3", "Value": "0", "Measure": "0.0 mV"},
     {"Name": "AI4", "Value": "0", "Measure": "0.0 mV"},
     {"Name": "AI5", "Value": "0", "Measure": "0.0 mV"},
     {"Name": "AI6", "Value": "0", "Measure": "0.0 mV"},
     {"Name": "AI7", "Value": "0", "Measure": "0.0 mV"},
     {"Name": "AI8", "Value": "0", "Measure": "0.0 mV"}
   ],
   "Output": [
     {"Name": "Lights", "Value": "1"},
     {"Name": "VHF", "Value": "0"},
     {"Name": "Radar", "Value": "0"},
     {"Name": "Toilet", "Value": "0"},
     {"Name": "Fridge", "Value": "0"},
     {"Name": "Nav", "Value": "0"},
     {"Name": "Anchor", "Value": "0"},
     {"Name": "Steam", "Value": "0"},
     {"Name": "Electro", "Value": "0"},
     {"Name": "Bilge", "Value": "0"},
     {"Name": "Water", "Value": "0"},
     {"Name": "Engine", "Value": "1"},
     {"Name": "DO13", "Value": "0"},
     {"Name": "DO14", "Value": "0"},
     {"Name": "DO15", "Value": "0"},
     {"Name": "DO16", "Value": "0"}
   ],
   "PWM": [
     {"Name": "PWM1", "Value": "0"},
     {"Name": "PWM2", "Value": "0"}
   ]
 }
}
As you can see the lights in the boat and in the engineroom is now turn on.

I tryet to put the address line in freeboard->add sourse->JSON, but it would not update...

I would like it to be connected directly to the PI with eth0, but i cant change the address and netmask on eth0...
I have to change IP to 192.168.1.5 and netmask to 255.255.255.0 to control the relays....

Please... if anybody could help. I'm happy to give access thru VNC, if that is easier...

/Benjamin


  I2C sensors - doubleclick to assign Signal K key not working
Posted by: Alpenskipper - 06-25-2017, 03:33 PM - Forum: Bug Reports - Replies (13)

Hi,

I upgraded to 0.11.11 and re installed a BMP180 and a HTU21D. Now I can't assign a Signal K key, because the dubleclick does not work in this window (I2C).
Doubleclick in other places is working.

Martin


  Tank level monitoring
Posted by: olewsaa - 06-25-2017, 12:56 PM - Forum: Feature Requests - Replies (28)

I am working with induction water sensors to monitor the water (not clear if these sensors works for hydrocarbons, most probably not) level in tanks.
For background see my project page about Tank levels. The sensors produce a simple on/off signal, e.g. they fire when they sense water behind the pipe or tank wall, glass of metal works ok. A set of sensors are needed, using 4 one could have 0.0, 0.25, 0.5, 0.75 and 1.0. The exact numbers would depend on where the sensors are places. With clever measurement and math one might even manage to get correct numbers for a irregular shaped tank. Either by placing the sensors at the precalculated heights of via some math in the function. The latter is a bit hard as it might be that 3 of 4  sensors would fire at only 1/2 full tank. It should be best to place the sensors smart. 

As there are a limited set of on/off IO pins on the Pi itself I propose to use some external IO boards over the I2C bus which can bring the possible on/off IO pins up to 128. How this is done is documented on my project page. It's actually quite simple. 

Using a set of these sensors I plan to write a function that return a float number from 0.0 to 1.0 which correspond to a meter type widget in the Signal K web page. Hence the tank level would be mapped and displayed quite nicely. The only part I'm not really certain about is how to generate new Signal K names and exactly how I should integrate this function into the OpenPlotter structure, some help and cooperation with this would be nice.


  General Configuration GPS with Simrad RS12 Radio
Posted by: hokal - 06-25-2017, 10:57 AM - Forum: General discussion - Replies (4)

Greatings to you all! What a wonderful project I discovered! I really want to enjoy and get this OP with Raspberry running on my little boat.

To start, can please one of you experts confirm or deny, whether my thoughts in configuration are feasible, because I'm very new to all of this ?

I have a Simrad radio RS12 with NMEA 183 and 2000 interface. I also have a GPS antenna with NMEA 183 output which is
connected to my radio and works fine. I understand, to get the NMEA signals into OP (raspberry) I need an USB interface. Can I just connect 
the data wires in parallel in order to feed both the radio and the USB interface (signals only in one direction),
or do I need a NMEA splitter ? Can you recommend one ?

Or is it better to utilize/filter the NMEA 2000 port of the radio and feed all data into the NK2 CAN USB adapter, but just for GPS ?

I actually only want to avoid a 2nd GPS antenna, because the one I have works fine and is high up in the mast.
Of course I prefer the NMEA0183 solution, if feasible. Thanks in advance for any feedback.


  [SOLVED] The Openplotter window does not start
Posted by: kste - 06-23-2017, 01:24 AM - Forum: Bug Reports - Replies (4)

if I start openplotter from command line the output is:


pi@etta:~ $ openplotter
Traceback (most recent call last):
  File "/home/pi/.config/openplotter/openplotter", line 34, in <module>
    from classes.add_DS18B20 import addDS18B20
  File "/home/pi/.config/openplotter/classes/add_DS18B20.py", line 23, in <module>
    from w1thermsensor import W1ThermSensor
  File "/usr/lib/python2.7/dist-packages/w1thermsensor/__init__.py", line 7, in <module>
    from .core import W1ThermSensor  # noqa
  File "/usr/lib/python2.7/dist-packages/w1thermsensor/core.py", line 314, in <module>
    load_kernel_modules()
  File "/usr/lib/python2.7/dist-packages/w1thermsensor/core.py", line 308, in load_kernel_modules
    raise KernelModuleLoadError()
w1thermsensor.errors.KernelModuleLoadError: Cannot load w1 therm kernel modules


In the openplotter.conf I have:
[1W]
ds18b20 =