(2017-05-24, 01:07 PM)Littlechay Wrote: Thanks good idea to put it in a script; which I had thought about but not got around to.
I have done it now. Works every time from the command line but nothing happens when triggered from an action.
Permissions are set on the script. I put it on the same path as you have done.. nothing.
The trigger is working OK just nothing from this action. Anything different from default in your system that may be affecting things?
Hmm, can't think of anything wierd, it's actually a recent install from the latest alpha image updated and upgraded so should be pretty clean. I set permissions to 777 but that was trying, unsuccessfully, to get the script to run from node-red, think it ran OK before that on O. So close......... I'll have another play when I get back onboard.
Being single handed the MOB function isn't actually that useful... So I changed it to control-M to drop a mark at the boat position which will be handy anchoring, if I can get node-red working..
Thanks for that clue. Interesting I checked the conf file and for some reason the script name in my conf file had a newline character on the end "....../mob.sh\n'" I have no idea what put that there it wasn't me and wasn't showing in the command in the actions panel of OP.
Anyway I manually deleted the \n and everything now works as advertised.
In the attached image I have pushed the red button on the left, top, of my plotter; the MOB marker has appeared and the alarm switch (top right) has illuminated. Pushing the illuminated switch cancels the alarm.
Other actions will be configured to sound alarms too. Ideally AIS CP etc.. but that is another story.
Hi, Maybe I'm doing something wrong. But somehow I can't really figure out what I'm doing wrong. I
hope one of you has the answer!What I'm trying to do is to let my pi shutdown whenever I push a button. And for the time being I have just put in a message box in order to give me some sort of feedback, instead that it keeps booting down.
The button I'm attaching
How I set up the GPIO pull-up
How I set up my action
And I get the message if I put the value to 1, but then it also shows the message when I boot, which means that it would go immediately into shutdown (that happened already once to me)
Hopefully you guys can help. I have the latest version of Openplotter v1.0.0
Quote:If you want to trigger when a pin is connected to ground then the gpio pin needs to be configured as pull up, otherwise it's always connected to ground internally. In this example there are 3 pins being used, when pin 26 is connected to ground it turns the LED on pin 16 on, then if pin 19 is connected to ground it turns the LED off again.
On openplotter V0.11.7 alpha.
Quote:I've just recently realised that, in theory, OCPN should read-in a WPL sentance in the context of APRS, and generate a specific AIS target. If this is the case, the contextual menu (right click on the AIS target/target query) should offer the possibility of creating a waypoint.
Actually creating the nmea sentence might be a job better suited to node-red - quite easy to get at the signalk data, or anyone know how to do that as bash?
2018-07-15, 10:41 PM (This post was last modified: 2018-07-15, 11:00 PM by jim321.)
"And I get the message if I put the value to 1, but then it also shows the message when I boot, which means that it would go immediately into shutdown (that happened already once to me)"
be careful with that shutdown command or reboot for that matter it's no fun has happened to me lol..i had an inject once at start
i have alarms set to gpio pins sending emails "SK node red", when i reboot it always sends a message when the gpio pins are started, enabled on boot.
i dont think there's anything you can do about it..
So basically what you say is that I should configure it outside Openplotter?
Or send a request maybe to the openplotter community. Otherwise you will always have a shutdown after you boot up the machine. Not really wanted...
I hope somebody has a solution
(2018-07-15, 10:41 PM)jim321 Wrote: "And I get the message if I put the value to 1, but then it also shows the message when I boot, which means that it would go immediately into shutdown (that happened already once to me)"
be careful with that shutdown command or reboot for that matter it's no fun has happened to me lol..i had an inject once at start
i have alarms set to gpio pins sending emails "SK node red", when i reboot it always sends a message when the gpio pins are started, enabled on boot.
i dont think there's anything you can do about it..
2018-07-16, 11:38 AM (This post was last modified: 2018-07-16, 11:40 AM by JeroenAdam.)
(2018-07-16, 11:24 AM)vriezenaar Wrote: So basically what you say is that I should configure it outside Openplotter?
Or send a request maybe to the openplotter community. Otherwise you will always have a shutdown after you boot up the machine. Not really wanted...
I hope somebody has a solution
I do the following on my Win10 device: click on my Bash shortcut (I installed Windows Subsystem for Linux), Arrow up + enter (to launch ssh session), password input, Arrow up + enter (to launch sudo shutdown –h)