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,388
» Latest member: partyvi
» Forum threads: 1,108
» Forum posts: 7,330

Full Statistics

Online Users
There are currently 53 online users.
» 2 Member(s) | 49 Guest(s)
Bing, Google, lawrence_craig, Werner_K

Latest Threads
Connecting mpu-9255 probl...
Forum: How do I...?
Last Post: partyvi
56 minutes ago
» Replies: 0
» Views: 0
5V Power Converters
Forum: General discussion
Last Post: abarrow
1 hour ago
» Replies: 9
» Views: 38
MPU9250 with ESP8266
Forum: General discussion
Last Post: seandepagnier
1 hour ago
» Replies: 2
» Views: 11
Limit switch
Forum: General discussion
Last Post: seandepagnier
1 hour ago
» Replies: 1
» Views: 3
Passive Radar.
Forum: General discussion
Last Post: seandepagnier
2 hours ago
» Replies: 1
» Views: 7
Problem with OpenCPN usin...
Forum: How do I...?
Last Post: Stucko65
6 hours ago
» Replies: 8
» Views: 3,394
Also send I2C sensor data...
Forum: Node Red
Last Post: ddelorme
6 hours ago
» Replies: 4
» Views: 28
problem with an usb-GPS d...
Forum: Bug Reports
Last Post: ddelorme
Today, 08:40 AM
» Replies: 1
» Views: 8
DIY 10" sunlight readable...
Forum: General discussion
Last Post: BellaX
Yesterday, 06:45 PM
» Replies: 11
» Views: 51
How do I send OpenCPN rou...
Forum: How do I...?
Last Post: jim321
Yesterday, 02:32 PM
» Replies: 5
» Views: 19

 
  [SOLVED] Update OP 0.13.0 -> 0.14.4 not possible
Posted by: SkipUli - 08-20-2017, 10:16 AM - Forum: Bug Reports - Replies (2)

Hi everybody,
I recently tried to update OP on Rasberry 3 from 0.13.0 alpha to 0.14.4 alpha.
When selecting "Update OpenPlotter stable", I get "OP 0.13.0 alpha ist aktuell"
I selected "Update OpenPlotter beta" and nothing happens.
Wireless connection is established and working ...

Any suggestions? Is it possible to trigger the update via terminal?

Thanks for your help
Uli


  SignalK address over AP?
Posted by: AftaHours - 08-20-2017, 07:13 AM - Forum: General discussion - Replies (2)

Hi All,

I installed the latest Alpha today and it is coming along well. I wanted to access the SignalK server data over the wireless ap and connect to it with the NMEARemote iOS app. (great sailing instrument app, no affiliation) Anyway, I can't work out what SignalK server address settings to use and get it to connect. I can connect the app via the NMEA over IP,  to the IP and Port shown in OpenPlotter, but want to use the SignalK data.

In the NMEARemote app under the Signal K source setup there are three fields I don't understand:

Service Type : _signalk-ws._tcp.
"Define the Bonjour network service type of the SignalK Service. The type must contain the service type and transport layer information like "_signalk-ws._tcp."

Path: /signalk/stream/v1?stream=delta&context=self
"Define the path of the SignalK service. The path is like /signalk/stream/v1?stream=delta&context=self"

Connect Command: {"context":"vessels.self"."subscribe":[{"path":"*"}]}
"Define the command which should be sent SignalK service is connected"

Can anyone assist with the correct entries for accessing the OpenPlotter SignalK AP please?


  button + led for wifi on/off
Posted by: Jonny - 08-19-2017, 03:24 PM - Forum: How do I...? - Replies (2)

Sorry, I don't mean to bombard folks with questions. I'm just trying to get everything setup.

To conserve power I am trying to create a button that will turn off and on the wifiAP.

Someone with python 3 knowledge showed me how to and created this code:

Code:
import subprocess
from gpiozero import LED, Button
from signal import pause

led1 = LED(18)
button1 = Button(23)

def wifionoff():
 retcode = subprocess.call([`sudo`, `systemctl`, `-q`, `is-active`, `hostap`])
 if retcode == 0:
   # switch LED off
   led1.off()
   # switch wifi off
   subprocess.call([`sudo`, `systemctl`, `stop`, `isc-dhcp-server`])
   subprocess.call([`sudo`, `systemctl`, `stop`, `hostap`])
   subprocess.call([`sudo`, `ifdown`, `wlan0`])
   subprocess.call([`sudo`, `rfkill`, `block`, `0`])
 else:
   # switch wifi on
   subprocess.call([`sudo`, `rfkill`, `unblock`, `0`])
   subprocess.call([`sudo`, `ifup`, `wlan0`])
   subprocess.call([`sudo`, `systemctl`, `start`, `hostap`])
   subprocess.call([`sudo`, `systemctl`, `start`, `isc-dhcp-server`])
   # switch LED on
   led1.on()

button1.when_pressed = wifionoff
pause()

However it seems to always think the AP is off and thus the button always tries to turn it on. I assume this is something to do with how OpenPlotter turns on AP. Though I am not ruling out a different error in the code. Any help to get this working would be great.


  Miniplex BT Won't Connect to bluetooth
Posted by: fishlakechampion - 08-19-2017, 06:59 AM - Forum: Bug Reports - No Replies

Hi Everyone,
I am new to both Raspberry Pi, Raspian & Openplotter
I have been running Open CPN on a windows machine connecting to NMEA via Bluetooth through my Miniplex BT for several years now.
A dear friend put me onto Raspberry and Open plotter.

Athough I have been able to pair my Miniplex via the Bluetooth GUI, I have been unable to connect  to it.with the original GUI I always receive the message  " Connection Failed -No usable Services on this Device".

I then installed Bluez Bluemon which again allows me to pair and temporarly connect but then wont connect again.
I also have tried command line with Bluetoothctl.
Sudo bluetoothctl
agent on
default-agent
pair xx:xx:xx:xx:xx:xx
trust xx:xx:xx:xx:xx:xx
still no Luck
then I found in a different forum
sudo rfcomm bind 0 xx:xx:xx:xx:xx:xx
which forced the Bluetooth to connect for 30 secs.
I created a new serial connection in Open CPN using the RFCOMM 0 port
and witnessed that Open CPN received data from the Miniplex during this brief period of 30 Seconds.

could anyone please help me overcome this issue.
thanks in advance


  USB Hubs
Posted by: seaspray - 08-18-2017, 10:31 AM - Forum: How do I...? - Replies (8)

I'm running OP on a Pi 3.  Openplotter is a superb system that (mostly) behaves as I expect.

However, I'm just adding a SDR for AIS and I acquired a USB hub

http://www.ebay.co.uk/itm/7-Port-USB-2-0...1113231746

plus a 12v -> 5v converter to power it.  However, the PI is only able to recognise devices attached to the hub if I feed the upstream USB through an unpowered USB2.0 hub before the pi.

i.e.  This works...

Quote:PI <---> USB2.0 hub <---> Powered USB hub <---> Device

But this doesn't

Quote:PI <---> Powered USB hub <---> Device

I've tried swapping the cable (A to B) that came with it but it'no better. 
dmesg shows errors along the lines of

Quote:device not accepting address 14, error -32
And it obviously fails to enumerate the device.  I'm suspicious that the supplied USBB <---> USBA cable is at fault and the Pi doesn;t like it for some reason, but I have swapped it for two other cable with the same results. What else can be wrong?


  How to install new nodes.is there a wrong installation of node red in Openplotter
Posted by: tocan - 08-18-2017, 04:48 AM - Forum: Node Red - Replies (22)

I allways have a problem to install something in nodered like new nodes. Where is my mistake?

npm install node-red-node-mysql

any solution or tip how to do?

pi@openplotter:~ $ cd .node-red/
pi@openplotter:~/.node-red $ sudo npm install node-red-node-mysql
npm ERR! Linux 4.9.35-v7+
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install" "node-red-node-mysql"
npm ERR! node v6.11.2
npm ERR! npm  v3.10.10
npm ERR! path /home/pi/.node-red/node_modules/node-red-contrib-freeboard
npm ERR! code EISGIT

npm ERR! git /home/pi/.node-red/node_modules/node-red-contrib-freeboard: Appears to be a git repo or submodule.
npm ERR! git     /home/pi/.node-red/node_modules/node-red-contrib-freeboard
npm ERR! git Refusing to remove it. Update manually,
npm ERR! git or move it out of the way first.

npm ERR! Please include the following file with any support request:
npm ERR!     /home/pi/.node-red/npm-debug.log
pi@openplotter:~/.node-red $


  Connection SeatalkNg to CAN-USB stick
Posted by: dione - 08-16-2017, 12:33 PM - Forum: General discussion - Replies (11)

Hello, I have openplotter running the latest version 14.4 and I want to input the data from my electronics through the Can-USB to openplotter converter. On my boat I have the raymarine plotter with seatalk ng. Wind, depth  with seatalk 1 connected to the seatalk converter 1 to seatalk ng. The AIS with nmea2000 output is connected via the Seatalk ng to Nmea2000 converter cable. The network is Seatalkng, how do I connect the network to the Can-USB converter? Do I have to convert the data to Nmea2000, with the seatalkng-nmea2000 cable? Or can I extract the CanH and CanL cable directly from the Seatalkng Network?

Saludos


  Had to replace mine
Posted by: joabakk - 08-15-2017, 05:56 PM - Forum: Bug Reports - No Replies

I bought one of these a while ago, and I tested it successfully with the rpi setup. Only when I added all other inputs, it stopped translating sentences. Paste from my slack #support message: 

Code:
I’m losing n2k sooner or later on every reboot. If I start canbus manually, I get
```signalk-server-node $ actisense-serial /dev/n2k
FATAL 2017-07-30T18:50:57.385Z [actisense-serial] Unable to read from NGT1 device
```
after 1, 10 or 100 lines. Is this normal? I’m using the can-usb from openplotter rather than the ngt-1. Any ideas anyone?

After replacing the dongle I bought from openplotter with an NGT-1, n2k works fine again


  My first Live demo of a Wifi solar- and battery monitor in OpenPlotter
Posted by: tocan - 08-15-2017, 05:12 PM - Forum: General discussion - Replies (10)

It took some time but i gotit to run. The Live Demo is available at

http://arztde.dynvpn.de/epsolar/

All description is in German but i let translate it with robots to 30 languages
To get the COM data of my EPsolar Tracer into the Raspberry Pi i did not use a RS485 USB UART cable. I did solder a Wifi connection desription here:

http://donau-grundel-schiff.de/2017/08/0...p8266.html

For the connection to the Raspberry Pi i use a virtual COM port.

The links go often to english resources including GIT.
How to do is a description here:
http://donau-grundel-schiff.de/2017/07/2...video.html

I did install at the raspberry a mysql database and a Nginx webserver. Scriptlanguage is php for now.

Ideas how to go on:
1. I use as switches Sonoff SV so the idea is to go on this way and install Alexa Echo at the raspberry.
2. Read about MQTT and Node Red to learn how to transfer the data from the database directely into Signal K

I hope the idea with the virtual COM Port is usefull for others. In general you an onect anything that way.

I hope also that in discussion someone help me for better integration. There exist a code for node red but i do not know how to handle it and how to work with it because never used node red. Maybee someone can guide me for the first steps. I do use now Openplotter 0.10.x alpha beause i fear the updates from last time.

Code:
[
   {
       "id": "540ef0ed.76002",
       "type": "mysql",
       "z": "41bc4e86.a2c73",
       "mydb": "4c3e4c8a.898584",
       "name": "Solardata",
       "x": 442,
       "y": 1418,
       "wires": [
           [
               "dab8ec4a.48d97"
           ]
       ]
   },
   {
       "id": "97a4a648.fd044",
       "type": "inject",
       "z": "41bc4e86.a2c73",
       "name": "",
       "topic": "SELECT SUM((SELECT `Battery voltage` FROM stats WHERE Controller = 1 ORDER BY `timestamp` DESC LIMIT 1) + (SELECT `Battery voltage` FROM stats WHERE Controller = 2 ORDER BY `timestamp` DESC LIMIT 1))/2 AS `Battery Voltage`, SUM((SELECT `Battery charging power` FROM stats WHERE Controller = 1 ORDER BY `timestamp` DESC LIMIT 1) + (SELECT `Battery charging power` FROM stats WHERE Controller = 2 ORDER BY `timestamp` DESC LIMIT 1)) AS `Battery Charging power`, SUM((SELECT `Load power` FROM stats WHERE Controller = 1 ORDER BY `timestamp` DESC LIMIT 1)) AS `Load power`",
       "payload": "",
       "payloadType": "str",
       "repeat": "60",
       "crontab": "",
       "once": true,
       "x": 209,
       "y": 1347,
       "wires": [
           [
               "540ef0ed.76002"
           ]
       ]
   },
   {
       "id": "8d0012a4.32f418",
       "type": "ui_gauge",
       "z": "41bc4e86.a2c73",
       "name": "Battery Voltage",
       "group": "9f358bc8.315728",
       "order": 1,
       "width": "6",
       "height": "6",
       "gtype": "gage",
       "title": "Battery Voltage",
       "label": "Volts",
       "format": "{{value}}",
       "min": "10",
       "max": "15",
       "colors": [
           "#b50012",
           "#00e606",
           "#ca3838"
       ],
       "seg1": "11",
       "seg2": "14.3",
       "x": 1100,
       "y": 1275,
       "wires": []
   },
   {
       "id": "143a1fa7.c76eb",
       "type": "debug",
       "z": "41bc4e86.a2c73",
       "name": "",
       "active": false,
       "console": "false",
       "complete": "false",
       "x": 1041,
       "y": 1476,
       "wires": []
   },
   {
       "id": "dab8ec4a.48d97",
       "type": "function",
       "z": "41bc4e86.a2c73",
       "name": "parse data",
       "func": "var voltage = msg.payload[0]['Battery Voltage'].toFixed(2);\nvar power = msg.payload[0]['Battery Charging power'].toFixed(2);\nvar loadpower = msg.payload[0]['Load power'].toFixed(2);\n\nmsg.topic = \"Voltage\";\nmsg.payload = voltage;\n\nvar msg1 = {topic:\"Charging Power\", payload: power};\nvar msg2 = {topic:\"Load Power\", payload: loadpower};\nvar msg3 = {topic:\"Voltage\", payload: voltage};\n\nreturn [msg, msg1, [msg1,msg2,msg3]];",
       "outputs": "3",
       "noerr": 0,
       "x": 625.9794921875,
       "y": 1332.0484619140625,
       "wires": [
           [
               "8d0012a4.32f418",
               "143a1fa7.c76eb"
           ],
           [
               "143a1fa7.c76eb",
               "b1566728.7253b"
           ],
           [
               "91e58ef9.5d602"
           ]
       ]
   },
   {
       "id": "91e58ef9.5d602",
       "type": "ui_chart",
       "z": "41bc4e86.a2c73",
       "name": "Performance",
       "group": "9f358bc8.315728",
       "order": 3,
       "width": "6",
       "height": "5",
       "label": "Recent Performance",
       "chartType": "line",
       "legend": "false",
       "xformat": "HH:mm",
       "interpolate": "linear",
       "nodata": "",
       "ymin": "0",
       "ymax": "",
       "removeOlder": "36",
       "removeOlderPoints": "",
       "removeOlderUnit": "3600",
       "cutout": 0,
       "colors": [
           "#1f77b4",
           "#aec7e8",
           "#ff7f0e",
           "#2ca02c",
           "#98df8a",
           "#d62728",
           "#ff9896",
           "#9467bd",
           "#c5b0d5"
       ],
       "x": 1120,
       "y": 1391,
       "wires": [
           [],
           []
       ]
   },
   {
       "id": "b1566728.7253b",
       "type": "ui_gauge",
       "z": "41bc4e86.a2c73",
       "name": "Charging Power",
       "group": "9f358bc8.315728",
       "order": 2,
       "width": "6",
       "height": "6",
       "gtype": "gage",
       "title": "Charging Power",
       "label": "Watts",
       "format": "{{value}}",
       "min": "0",
       "max": "750",
       "colors": [
           "#00e606",
           "#00e606",
           "#ca3838"
       ],
       "seg1": "",
       "seg2": "700",
       "x": 1105,
       "y": 1323,
       "wires": []
   },
   {
       "id": "4c3e4c8a.898584",
       "type": "MySQLdatabase",
       "z": "",
       "host": "192.168.123.10",
       "port": "3306",
       "db": "solardata",
       "tz": ""
   },
   {
       "id": "9f358bc8.315728",
       "type": "ui_group",
       "z": "",
       "name": "Solar Stuff",
       "tab": "ff53e552.1dc31",
       "order": 2,
       "disp": true,
       "width": "18"
   },
   {
       "id": "ff53e552.1dc31",
       "type": "ui_tab",
       "z": "",
       "name": "Home",
       "icon": "dashboard"
   }
]


  OpenCPN 4.8.0 won't start on OpenPlotter 14.4
Posted by: dorsetjon - 08-15-2017, 11:34 AM - Forum: Bug Reports - Replies (9)

Hi,

Just upgraded from 13.1 to 14.4 and also ran updates for OpenCPN and Raspbian. Everything seems to be working except OpenCPN. It won't start, or rather the process runs but the window doesn't appear. I tried to start it from the command line but there's no error. Looking at Task Manager I see the OpenCPN process running but there's also a "/sbin/init splash" process launched when I start OpenCPN and this process is consuming 25% CPU.

I don't know what to look at next to fix this so does anyone have any ideas?

Thanks,

Jon