2013-04-11, 22:36
This script seems very promising. I previously used an external method to detect changes in the state of XBMC, but this plugin would improve and simplify what I'm trying to do.
I have a Raspberry Pi running Xbian. I have installed something called WiringPi that allows access to the GPIO pins without root or sudo. From the terminal I am able to call
to init the correct pins as outputs, turn them on and then off again.
There are no errors as far as I can see in the XBMC log. The content of the script files are very rudimentary;
Takes care of setting the pins while the following changes the state to on or off:
The strings shown to me in the settings for the plugin shows the exact same paths as used above, when manually running the scripts. I have set the init script to run at start and the other two when the screensaver stops or starts. I downloaded the latest available version from the homepage today (2013-04-11).
Am I doing something fundamentally wrong? The states of the pins just wont change...
I have a Raspberry Pi running Xbian. I have installed something called WiringPi that allows access to the GPIO pins without root or sudo. From the terminal I am able to call
Code:
>> /home/xbian/init.sh
>> /home/xbian/on.sh
>> /home/xbian/off.sh
to init the correct pins as outputs, turn them on and then off again.
There are no errors as far as I can see in the XBMC log. The content of the script files are very rudimentary;
Code:
#!/bin/bash
gpio export 22 out
gpio export 23 out
gpio export 24 out
gpio export 25 out
Takes care of setting the pins while the following changes the state to on or off:
Code:
#!/bin/bash
gpio -g write 22 0
gpio -g write 23 0
gpio -g write 24 0
gpio -g write 25 0
Code:
#!/bin/bash
gpio -g write 22 1
gpio -g write 23 1
gpio -g write 24 1
gpio -g write 25 1
The strings shown to me in the settings for the plugin shows the exact same paths as used above, when manually running the scripts. I have set the init script to run at start and the other two when the screensaver stops or starts. I downloaded the latest available version from the homepage today (2013-04-11).
Am I doing something fundamentally wrong? The states of the pins just wont change...