[Addon] RuneUI GPIO: power on / off audio equipments

Raspberry Pi related support

[Addon] RuneUI GPIO: power on / off audio equipments

Postby rern » 23 Dec 2016, 13:17

Attachments
gpio.gif
gpio.gif (91.76 KiB) Viewed 1662 times
relay.jpg
relay.jpg (39.2 KiB) Viewed 1662 times
Last edited by rern on 24 Jan 2020, 13:40, edited 46 times in total.
rAudio @ https://github.com/rern/rAudio
Raspberry Pi 4B
Raspberry Pi 3B+ > SMSL M8 DAC
Raspberry Pi 3B
Raspberry Pi Zero 2
Raspberry Pi Zero W
User avatar
rern
 
Posts: 723
Joined: 14 Jul 2016, 08:15

Re: RuneUI GPIO for power on / off audio equipments

Postby Stefan3v » 25 Dec 2016, 10:57

When you try to install will receive this error.: "./install.sh: line 211: syntax error: unexpected end of file"
I can see the missing one "fi"

if ! grep -qs 'RuneUIe' /srv/http/app/templates/header.php; then
echo
echo '========================================================='
echo '"RuneUI Enhancement" not found.'
echo '========================================================='
echo
echo 'It must be installed first.'
echo
(( $disk == 1 )) && echo 'And disk space less than 300MB. Expand partition before install.'
echo
echo '---------------------------------------------------------'
echo
rm install.sh
exit
HERE is mising "fi"
if (( $disk == 1 )); then
Stefan3v
 
Posts: 1
Joined: 25 Dec 2016, 10:48

Re: RuneUI GPIO for power on / off audio equipments

Postby ColinT » 25 Jan 2017, 20:33

Hello rern,

The GPIO's are HI when off and LO when on, is it possible to revers it?
I want HI is on and LO is off.

I have tried editing the python file but no succes :(

Thank for you help.

ColinT
ColinT
 
Posts: 8
Joined: 20 Jan 2017, 10:27

Re: RuneUI GPIO for power on / off audio equipments

Postby rern » 28 Jan 2017, 08:03

rAudio @ https://github.com/rern/rAudio
Raspberry Pi 4B
Raspberry Pi 3B+ > SMSL M8 DAC
Raspberry Pi 3B
Raspberry Pi Zero 2
Raspberry Pi Zero W
User avatar
rern
 
Posts: 723
Joined: 14 Jul 2016, 08:15

Re: RuneUI GPIO for power on / off audio equipments

Postby rpt007 » 01 Feb 2017, 16:11

Hi,

just found out, that the installation of the enhanced interface breaks the setup menu on my 7" waveshare tft.
Any suggestions?
User avatar
rpt007
 
Posts: 25
Joined: 23 Jan 2017, 16:53
Location: Germany

Re: RuneUI GPIO for power on / off audio equipments

Postby rern » 02 Feb 2017, 01:22

rAudio @ https://github.com/rern/rAudio
Raspberry Pi 4B
Raspberry Pi 3B+ > SMSL M8 DAC
Raspberry Pi 3B
Raspberry Pi Zero 2
Raspberry Pi Zero W
User avatar
rern
 
Posts: 723
Joined: 14 Jul 2016, 08:15

Re: RuneUI GPIO for power on / off audio equipments

Postby rpt007 » 02 Feb 2017, 22:03

"Broken setup menu" might not be the right expression.
What happens:
1. using a browser on my PC -> the setup menu icon reacts like a charm and all setup menu items are shown and are responsive
2. using my waveshare 7" tft all "active" touch and slide areas work as expected, but the menu icon shows no reaction when clicking on it. The display comes with a very high resolution. I reduced the resolution down to 800x600 or so and added some overscan pixels at the top and bottom screen to have a safe hit zone.
With the non-enhanced GUI everything works with that screen setup and, as said, your enhanced GUI works besides of the menu icon.

So I think my description gives you more information than a screenshot with a non-responsive menu icon :)

Edit as of Feb 05:
Discussion continues here:
User avatar
rpt007
 
Posts: 25
Joined: 23 Jan 2017, 16:53
Location: Germany

Re: RuneUI GPIO for power on / off audio equipments

Postby rpt007 » 06 Feb 2017, 10:14

@rern:
Just re-installed GPIO enhancement.
The menu-item is still responding on my TFT display and GPIO is shown as submenu item.
But: when trying to use the GPIO setup submenu by clicking on the GPIO item -> no reaction on my TFT screen.

I repeated the action on my iPad: works flawlessly and I can switch GPIO on/off, modify values etc.
What I saw on the iPad: it opens a new tab, independend from the main screen.

This might be the problem with the waveshare 7" TFT -> it stays on the same screen. I think that the built in browser either has no tabs or it has to be activated in your script?

Raimund
User avatar
rpt007
 
Posts: 25
Joined: 23 Jan 2017, 16:53
Location: Germany

Re: RuneUI GPIO for power on / off audio equipments

Postby rern » 07 Feb 2017, 08:16

rAudio @ https://github.com/rern/rAudio
Raspberry Pi 4B
Raspberry Pi 3B+ > SMSL M8 DAC
Raspberry Pi 3B
Raspberry Pi Zero 2
Raspberry Pi Zero W
User avatar
rern
 
Posts: 723
Joined: 14 Jul 2016, 08:15

Re: RuneUI GPIO for power on / off audio equipments

Postby rpt007 » 07 Feb 2017, 09:26

Yeah, I know the price and I own already a dozen of those relays (singles, doubles and quadros) -> mainly for some Arduino based projects.
But in my given case for RuneAudio I only need to switch the amp and the TFT screen which I want to power separately from the Raspi (this will stay powered all time to wake it up). Will see if I find some time today to get it done and feedback what happens.
User avatar
rpt007
 
Posts: 25
Joined: 23 Jan 2017, 16:53
Location: Germany

support RuneAudio Donate with PayPal

Next

Return to Raspberry Pi

Who is online

Users browsing this forum: Bing [Bot] and 14 guests