Momentary On/Off Switch with soft shutdown

Raspberry Pi related support

Re: Momentary Contact Switch

Postby hondagx35 » 13 Apr 2016, 20:03

User avatar
hondagx35
 
Posts: 3042
Joined: 11 Sep 2014, 22:06
Location: Germany

Re: Momentary Contact Switch

Postby ingohz » 13 Apr 2016, 20:47

ingohz
 
Posts: 45
Joined: 22 Feb 2016, 12:11

Re: Momentary Contact Switch

Postby PeteB » 14 Apr 2016, 00:19

PeteB
 
Posts: 421
Joined: 06 Feb 2016, 05:07

Re: Momentary Contact Switch

Postby PeteB » 14 Apr 2016, 01:06

Last edited by PeteB on 14 Apr 2016, 06:13, edited 1 time in total.
PeteB
 
Posts: 421
Joined: 06 Feb 2016, 05:07

Re: Momentary Contact Switch

Postby hondagx35 » 14 Apr 2016, 06:13

Hi Pete,

- Python2 is installed on the newer versions by default
- you should call "/var/www/command/rune_shutdown poweroff" or
"/var/www/command/rune_shutdown reboot" before systemctl shutdown or reboot.

Frank
User avatar
hondagx35
 
Posts: 3042
Joined: 11 Sep 2014, 22:06
Location: Germany

Re: Momentary Contact Switch

Postby PeteB » 14 Apr 2016, 06:19

@Frank:

I assumed I had the newer version, so perhaps I just installed it over or parallel to what I already had (?) I will look into that tomorrow.

Do you mean call both the Rune shutdown, AND systemctl shutdown, one after the other, or, instead of?

Thanks.
PeteB
 
Posts: 421
Joined: 06 Feb 2016, 05:07

Re: Momentary Contact Switch

Postby ingohz » 14 Apr 2016, 08:09

Looks good so far and RPi.GPIO seems to be fine. I'll install it and try it out. It also supports and has software debouncing integrated. Very useful to support more than one button for different tasks - e.g. FWD/BACK, PAUSE, MUTE etc.

Frank, is there a "rune way" to send commands to mpd or is it save to use e.g. ?
ingohz
 
Posts: 45
Joined: 22 Feb 2016, 12:11

Re: Momentary Contact Switch

Postby hondagx35 » 14 Apr 2016, 08:39

User avatar
hondagx35
 
Posts: 3042
Joined: 11 Sep 2014, 22:06
Location: Germany

Re: Momentary Contact Switch

Postby thedman! » 14 Apr 2016, 19:19

thedman!
 
Posts: 62
Joined: 24 Mar 2016, 15:45

Re: Momentary Contact Switch

Postby PeteB » 14 Apr 2016, 19:35

PeteB
 
Posts: 421
Joined: 06 Feb 2016, 05:07

support RuneAudio Donate with PayPal

PreviousNext

Return to Raspberry Pi

Who is online

Users browsing this forum: No registered users and 12 guests
cron