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,677
» Latest member: svPassages
» Forum threads: 1,194
» Forum posts: 7,994

Full Statistics

Online Users
There are currently 66 online users.
» 3 Member(s) | 61 Guest(s)
Bing, Google, abarrow, AliceJ21, e-sailing

Latest Threads
Timeserver
Forum: Feature Requests
Last Post: abarrow
17 minutes ago
» Replies: 2
» Views: 8
openplotter 1.2.0 SPI tab
Forum: Bug Reports
Last Post: jim321
1 hour ago
» Replies: 3
» Views: 10
Configuring SPI MCP3008
Forum: How do I...?
Last Post: sapers
1 hour ago
» Replies: 12
» Views: 771
ST1000 embedded TinyPilot...
Forum: General discussion
Last Post: FMJ
3 hours ago
» Replies: 11
» Views: 32
... pipe a NMEA Script fr...
Forum: How do I...?
Last Post: first317
6 hours ago
» Replies: 6
» Views: 3,029
MCP2515
Forum: General discussion
Last Post: jim321
04-20-2019, 05:11 PM
» Replies: 0
» Views: 9
4000Mk2 drive?
Forum: General discussion
Last Post: seandepagnier
04-20-2019, 11:17 AM
» Replies: 20
» Views: 52
how to change timeout
Forum: How do I...?
Last Post: SkipperEarly
04-20-2019, 02:12 AM
» Replies: 0
» Views: 5
Update problem on RPi 3+
Forum: General discussion
Last Post: Luckbert
04-19-2019, 03:18 PM
» Replies: 22
» Views: 94
test v2
Forum: General discussion
Last Post: Sailoog
04-19-2019, 03:06 PM
» Replies: 2
» Views: 15

 
  actions, Execute Command, Displaying a message
Posted by: Luckbert - 04-10-2019, 04:42 AM - Forum: How do I...? - Replies (7)

Hello, everyone, 
I am currently trying to turn my HDMI screen off and on again with actions. 

Now to my procedure. 
I installed cec-utils first. 
This allows me to put the monitor into standby mode and back into on mode. 
This procedure also works wonderfully in the command line. 

Now I wanted to go one step further and automate it. I connected a motion detector to GPIO 05 which acts as a trigger. 
In SK Diagnose, the motion detector runs up, which means it does what it should. 

Now to my problems: 
I wanted to display a message (for testing) as an action. That doesn't work. But I think the problem has been known for some time because I read it in the search of this problem.

Additionally I wanted to execute a command. 
echo "on 0" | cec-client RPI -s -d 1

respectively

echo "standby 0" | cec-client RPI -s -d 1

But I get the following error when I start OP in debug mode..:

MySK_to_Action_Calc instance has no attribute 'currentpath'
"standby 0" | cec-client RPI -s -d 1

Hangs the problem of looking here see Threat?

Are there ways to solve this?

@jim321  I know that you like to work with node red. I tried it. But I am too stupid. It may be quite easy, but unfortunately not for me.  Confused  

Jürgen


  Web streaming radio
Posted by: PaddyB - 04-06-2019, 08:06 AM - Forum: How I did it - No Replies

I might be the only one using openplotter as an onboard music centre with a hifiberry amp board, but it's just great! And now instead of streaming web radio using chrome, which is a bit of a resource hog I've got it streaming web radio using MPD. https://mpd.fandom.com/wiki/Music_Player_Daemon_Wiki

Node red with some dropdown nodes sends the streaming URL to a tiny bash script through an exec node>

Quote:#!/bin/bash
mpc stop
mpc clear
mpc add $1
mpc play
The URL you can get by playing the web radio in chrome then right click>inspect. Select the network tab and look for the busy entry . Probably need to hit ctrl-r to restart the site[Image: LbY3FTU.png]

Click on that and it will give you the request URL which goes into a dropdown node.
[Image: KyygLNR.png]
Then an exec node pointing bash to the little script>
Quote:bash  ~/bash_scripts/mpc_radio_ssh_commands/radio4.sh

The flow <

Code:
[
   {
       "id": "f7eaa8bf.96f418",
       "type": "ui_button",
       "z": "346f9605.5900aa",
       "name": "",
       "group": "4b551f9e.88056",
       "order": 1,
       "width": "12",
       "height": "1",
       "passthru": false,
       "label": "Turn Off",
       "color": "",
       "bgcolor": "",
       "icon": "",
       "payload": "mpc stop",
       "payloadType": "str",
       "topic": "",
       "x": 100,
       "y": 60,
       "wires": [
           [
               "5e551062.b8a4c"
           ]
       ]
   },
   {
       "id": "5e551062.b8a4c",
       "type": "exec",
       "z": "346f9605.5900aa",
       "command": "mpc stop",
       "addpay": false,
       "append": "",
       "useSpawn": "false",
       "timer": "",
       "oldrc": false,
       "name": "",
       "x": 270,
       "y": 60,
       "wires": [
           [],
           [],
           []
       ]
   },
   {
       "id": "a2a03f7.2913ec",
       "type": "exec",
       "z": "346f9605.5900aa",
       "command": "bash  ~/bash_scripts/mpc_radio_ssh_commands/radio4.sh",
       "addpay": true,
       "append": "",
       "useSpawn": "false",
       "timer": "",
       "oldrc": false,
       "name": "",
       "x": 550,
       "y": 120,
       "wires": [
           [],
           [
               "3cc1db20.1463e4"
           ],
           []
       ]
   },
   {
       "id": "1c8ac35d.689cdd",
       "type": "ui_slider",
       "z": "346f9605.5900aa",
       "name": "",
       "label": "Volume",
       "group": "4b551f9e.88056",
       "order": 7,
       "width": "12",
       "height": "1",
       "passthru": true,
       "outs": "all",
       "topic": "",
       "min": "60",
       "max": "207",
       "step": 1,
       "x": 100,
       "y": 420,
       "wires": [
           [
               "f9176d59.fa6b2"
           ]
       ]
   },
   {
       "id": "f9176d59.fa6b2",
       "type": "exec",
       "z": "346f9605.5900aa",
       "command": " amixer -c 1 cset numid=1",
       "addpay": true,
       "append": "",
       "useSpawn": "false",
       "timer": "",
       "oldrc": false,
       "name": "",
       "x": 290,
       "y": 420,
       "wires": [
           [],
           [],
           []
       ]
   },
   {
       "id": "43834785.976608",
       "type": "ui_dropdown",
       "z": "346f9605.5900aa",
       "name": "",
       "label": "BBC radio",
       "place": "Select option",
       "group": "4b551f9e.88056",
       "order": 2,
       "width": "6",
       "height": "1",
       "passthru": true,
       "options": [
           {
               "label": "Radio 1",
               "value": "http://bbcmedia.ic.llnwd.net/stream/bbcmedia_radio1_mf_p",
               "type": "str"
           },
           {
               "label": "Radio 2",
               "value": "http://bbcmedia.ic.llnwd.net/stream/bbcmedia_radio2_mf_p",
               "type": "str"
           },
           {
               "label": "Radio 3",
               "value": "http://bbcmedia.ic.llnwd.net/stream/bbcmedia_radio3_mf_p",
               "type": "str"
           },
           {
               "label": "Radio 4",
               "value": "http://bbcmedia.ic.llnwd.net/stream/bbcmedia_radio4fm_mf_p",
               "type": "str"
           },
           {
               "label": "BBC 6",
               "value": "http://bbcmedia.ic.llnwd.net/stream/bbcmedia_6music_mf_p",
               "type": "str"
           }
       ],
       "payload": "",
       "topic": "",
       "x": 110,
       "y": 120,
       "wires": [
           [
               "a2a03f7.2913ec"
           ]
       ]
   },
   {
       "id": "ee830b84.891cd8",
       "type": "ui_dropdown",
       "z": "346f9605.5900aa",
       "name": "",
       "label": "Blues",
       "place": "Select option",
       "group": "4b551f9e.88056",
       "order": 2,
       "width": "6",
       "height": "1",
       "passthru": true,
       "options": [
           {
               "label": "Blues @",
               "value": "http://212.83.136.31:8000/_c",
               "type": "str"
           },
           {
               "label": "",
               "value": "tt",
               "type": "str"
           }
       ],
       "payload": "",
       "topic": "",
       "x": 90,
       "y": 160,
       "wires": [
           [
               "a2a03f7.2913ec"
           ]
       ]
   },
   {
       "id": "30b81447.8203bc",
       "type": "ui_dropdown",
       "z": "346f9605.5900aa",
       "name": "",
       "label": "Misc",
       "place": "Select option",
       "group": "4b551f9e.88056",
       "order": 2,
       "width": "6",
       "height": "1",
       "passthru": true,
       "options": [
           {
               "label": "LEDJAM",
               "value": "http://www.djamradio.com/sound",
               "type": "str"
           },
           {
               "label": "KCRW",
               "value": "https://kcrw.streamguys1.com/kcrw_192k_mp3_on_air",
               "type": "str"
           },
           {
               "label": "KUTX 2 Austin Uni",
               "value": "https://kut2.streamguys1.com/kut2",
               "type": "str"
           },
           {
               "label": "WFMU",
               "value": "http://stream0.wfmu.org/freeform-128k.mp3",
               "type": "str"
           },
           {
               "label": "Film/TV scores",
               "value": "http://158.69.38.195:20082///;",
               "type": "str"
           },
           {
               "label": "KUSV San Fran",
               "value": "http://104.236.145.45:8000/stream",
               "type": "str"
           }
       ],
       "payload": "",
       "topic": "",
       "x": 90,
       "y": 200,
       "wires": [
           [
               "a2a03f7.2913ec"
           ]
       ]
   },
   {
       "id": "c48fd8a6.fffe58",
       "type": "ui_dropdown",
       "z": "346f9605.5900aa",
       "name": "",
       "label": "Classical",
       "place": "Select option",
       "group": "4b551f9e.88056",
       "order": 2,
       "width": "6",
       "height": "1",
       "passthru": true,
       "options": [
           {
               "label": "Classic FM",
               "value": "http://media-ice.musicradio.com/ClassicFMMP3",
               "type": "str"
           },
           {
               "label": "vv",
               "value": "",
               "type": "str"
           }
       ],
       "payload": "",
       "topic": "",
       "x": 100,
       "y": 240,
       "wires": [
           [
               "a2a03f7.2913ec"
           ]
       ]
   },
   {
       "id": "b4690d83.f322a",
       "type": "ui_dropdown",
       "z": "346f9605.5900aa",
       "name": "",
       "label": "Jazz",
       "place": "Select option",
       "group": "4b551f9e.88056",
       "order": 2,
       "width": "6",
       "height": "1",
       "passthru": true,
       "options": [
           {
               "label": "Jazz FM (Ronnie Scotts)",
               "value": "http://edge-ads-02-gos1.sharp-stream.com/jazzfmmobile.mp3",
               "type": "str"
           },
           {
               "label": "Capital Jazz",
               "value": "http://stream.radio.co/s7c1ea5960/listen",
               "type": "str"
           },
           {
               "label": "1rad.mk",
               "value": "http://ams-2.1radio.mk/1radio_smoothjazz_128",
               "type": "str"
           },
           {
               "label": "QFM Canarias",
               "value": "http://51.255.235.165:5092/",
               "type": "str"
           }
       ],
       "payload": "",
       "topic": "",
       "x": 90,
       "y": 280,
       "wires": [
           [
               "a2a03f7.2913ec"
           ]
       ]
   },
   {
       "id": "10bd579e.7572e8",
       "type": "ui_dropdown",
       "z": "346f9605.5900aa",
       "name": "",
       "label": "World",
       "place": "Take your pick..",
       "group": "4b551f9e.88056",
       "order": 2,
       "width": "6",
       "height": "1",
       "passthru": true,
       "options": [
           {
               "label": "Tomorrowland One",
               "value": "http://streamingp.shoutcast.com/TomorrowlandOneWorldRadio",
               "type": "str"
           },
           {
               "label": "World Revolutions",
               "value": "http://192.99.8.192:3276/stream",
               "type": "str"
           },
           {
               "label": "Rua PT",
               "value": "http://centova.radio.com.pt:9536/;",
               "type": "str"
           }
       ],
       "payload": "",
       "topic": "",
       "x": 90,
       "y": 320,
       "wires": [
           [
               "a2a03f7.2913ec"
           ]
       ]
   },
   {
       "id": "4b551f9e.88056",
       "type": "ui_group",
       "z": "",
       "name": "Internet Streaming Radio Stations",
       "tab": "e93ef2b0.f7b94",
       "disp": true,
       "width": "12",
       "collapse": true
   },
   {
       "id": "e93ef2b0.f7b94",
       "type": "ui_tab",
       "z": "",
       "name": "Web Radio",
       "icon": "dashboard",
       "order": 1
   }
]
Works great so far, much less resources required than through chromium Cool 

Any favourite web radio stations?


  Pypilot working on my Nicholson 44
Posted by: xfactor99 - 04-03-2019, 01:19 PM - Forum: General discussion - Replies (4)

Hi,

just want to report my setup. We did the first testing at sea today ....... happy ....

Boat
Nicholson 44 from 1977,

Former Autopilot:
Robertson/Simrad x300, with two Controls/Displays. The LCD's where getting bad ....
(I guess before that there was a Neco-Autopilot/Curse-computer)


Drive:
Neco Marine 17DR8-24Volt
Spocket with chain to the cardanic stearing.
It is a brushed compound-wound DC-Motor with electromagnetic clutch, I guess from the 70's.
It changes diriection by reversing the polarity to the amature and keeping the polaity to the series- and shunt-coil.

Motor Driver
Chinese Arduino-Nano clone, close to the Raspberry Pi with Pypilot Motor.ino software and a Pololu G2 1367
Motor-Driver inside the Neco-Drive (former watertight Relay-Box on top of the drive). They are connected btw. eachother with a shielded cable (only) 3-wires (common GND, RC, Clutch).
The clutch is activated by a 5v/24V , (chinese/relay) the relay gets activeated by the Nano (Pin11) and the Relay is powerd by the Pololu 1367. (I will change this to an SSR-Relay later).
For safety reasons ther is a cable to the helm witch interupts/activates the clutch.
There are two Reed-Contacts (Normaly Open) to tel the limits of the stearing. They go to the Pololu Driver and worke fine.
I tried PWM  and for now I have the setting at Pypilot Min-Speed=50% Max-Speed=100%

Course Computer
Raspberry Pi with Openplotter/Pypilot,  GPS and IMU 9255. Later I will add the windsensor data. 
The system for now is headless. Access is via VNC-Viewer from the Mobile phone or tablet or laptopp.

Sea trials today:
Setting: "Simple Autopilot" and Compass, Gains: I=0.00690 D=0.16750 P=0.00330
On compass mode (under engine) it works good also I have do a lot of more testing on this ...



To thanks to Sean and all who have contributed to this Project.

Andreas


  Sometimes OpenCPN config file dissapears ?
Posted by: NahanniV - 04-02-2019, 06:07 PM - Forum: Bug Reports - Replies (5)

Sometimes after a crash, the Opencpn.ini file dissapears and I have to start from scratch.

After a few times I made a backup, so now I just copy from that when it dissapears and everything works again.

Anybody else have this problem ?


  How to increase CMA memory for OpenGL ?
Posted by: NahanniV - 04-02-2019, 04:42 PM - Forum: How do I...? - Replies (5)

I am using OpenPlotter on a Rpi3B+ with all the latest updates.
Kernal Version 4.19.30-v7+
OpenCPN V5.0
OpenPlotter is an access point for all on-board WiFi devices.

OpenGL driver with Fake KMS (real kms caused some problems with resolution if started headless).
I have the memory split set to it's lowest value since it makes no difference to the OpenGL driver.

Everything is working very well EXCEPT I get the occasional hang of the display system.

The system can run for days and then one user input like changing scale or changing to/from north/course up sometimes causes the display to hang up.
In this case the cursor still works, everything else is still running but the display is mostly frozen.
If I connect with VNC from another machine a window pops up saying a user is connected.
I can also use PUTTY to connect and view the log.
In every case there is an error from the VC4 driver stating that it can not allocate memory from CMA.

Quote:pi@openplotter:~ $ dmesg
[21965.710804] [drm:vc4_bo_create [vc4]] *ERROR* Failed to allocate from CMA:
[21965.710817] [drm]                            V3D: 176852kb BOs (345)
[21965.710821] [drm]                     V3D shader:    412kb BOs (100)
[21965.710824] [drm]                           dumb:   3088kb BOs (2)
[21965.710833] vc4_v3d 3fc00000.v3d: Failed to allocate memory for tile binning: -12. You may need to enable CMA or give it more memory.
pi@openplotter:~ $

It looks like OpenPlotter is configured with 256M of CMA memory.

I'd like to test this with a larger amount of CMA memory and see if it resolves the problem, but I am not sure how to configure that ?

There is a lot of conflicting information about this. Perhaps someone who knows can explain it to me.
Can I configure a dynamic memory split as described here:https://elinux.org/RPiconfig ?


  dingy geofence
Posted by: jim321 - 04-01-2019, 02:09 PM - Forum: How do I...? - Replies (1)

i am trying to set up a geofence for the dink.so that if it tries to get away it will trigger an alarm
dingy has orange pi zero gps signalk server.
i have it sending navigation.position with mqtt..to OP working..
i am trying to set a geofence switch node on OP i set the contexts to the uuid of the dingy and send it the navigation.position  and select use my position, but it says no position under the node .
am i doing this wrong.?

what i want it to do is use the boat's cords for center of fence and if dingy moves 8 or 10 meters away set an alarm in the boat and trigger a kill switch maybe flash a light, Siren on the dingy.


  Shop site down?
Posted by: mmcintosh - 03-31-2019, 10:26 PM - Forum: General discussion - Replies (2)

Went to the shop site and it seems to be down just post as an FYI.

Cheers,

Mark


  motor controller FWD_FAULT
Posted by: Marivent - 03-31-2019, 11:16 AM - Forum: General discussion - No Replies

Hi,

I wanted to have a quick test of the wiper motor in combination with pypilot. So I decided to use the vnh2sp30 instead of building my own h bridge.
But I get SYNC FWD_FAULT so the wiper motor can only turn in one direction. The only part for FWD_FAULT that I could find is reading the
fwd_fault_pin. I measured that pin...it's HIGH, so it souldn't show FWD_FAULT, right? Any ideas?
In servo.py I can see FWD_FAULT=4096*1 # overcurrent faults does that meen, that FWD_FAULT is shown on overcurrent too? I have not included a shunt sensor (waiting for delivery) so I tried to change the TakeAMPS to return always 0, but that didn't help.

Thanks
Patrick


  BUG OPENPLOTTER
Posted by: COOLDREAM - 03-27-2019, 04:25 PM - Forum: Bug Reports - Replies (3)

Bonjour
j'ai installé NOOBS v2 _8_1 et rencontre le problème suivant: aprés quelques utilisations et paramétrages sur signalK openplotter ne redémare plus. Il fonctionne en tache de fond car les variables sont présentes dans signalK mais je n'ai plus accés à openplotter.
J'ai essayé de mettre à jour openplotter sans succés. Est-ce un bug ou autre? Huh
Merci pour votre aide. Dodgy


  INA219
Posted by: AliceJ21 - 03-27-2019, 12:21 PM - Forum: How do I...? - Replies (2)

Hi,

I am at my wits end trying to manipulate this sensor to work in OP. I call myself a basic beginner at programming and was wondering if anyone can point me in a direction or talk me through how to add the INA219 sensor to OP through the tools section? I have tried countless times and every time it has not worked.

FYI: I am trying to measure the shunt voltage and current off my existing NASA Marine battery monitor and publish these in OP/SignalK. It’s more of an issue now because I am moving my yacht to a swinging mooring and wish to keep an eye on it remotely.

I’m have tried the ESP8266 approach but cannot get the data into SK/OP (I tried the Adafruit guide on this to no avail)

Can anyone help please? I’m sorry if it’s too basic an issue for some members to help with but I really am desperate now.

Thanks Very Much In Advance.

EDIT: I have also tried the INA3221 and it worked publishing into SignalK/OP but it published 0v/0a continually.