Sash
|
2010-11-15
, 17:20
|
Posts: 150 |
Thanked: 80 times |
Joined on Dec 2009
|
#931
|
The Following User Says Thank You to Sash For This Useful Post: | ||
|
2010-11-16
, 13:52
|
|
Posts: 2,050 |
Thanked: 1,425 times |
Joined on Dec 2009
@ Bucharest
|
#932
|
|
2010-11-16
, 14:03
|
Posts: 71 |
Thanked: 4 times |
Joined on Mar 2010
|
#933
|
|
2010-11-16
, 15:17
|
|
Posts: 700 |
Thanked: 846 times |
Joined on Nov 2009
|
#934
|
Hi.
Didn't read the whole thread, was this already requested before:
I'd like to have the option to pop an option menu on a widget instance. For example, an OC widget, when clicked, would pop up a menu that shows 600, 900 and 1000.
I realize it's not very easy, but if each option has its own command it shouldn't be impossible, methinks. For example, commands could be separated by a reserved sequence. An OC widget could have its command property set to OC600&OC900, and disallow ampersand in command title. Will need to allow command to be custom istead of a list.
The Following User Says Thank You to No!No!No!Yes! For This Useful Post: | ||
|
2010-11-17
, 00:28
|
|
Posts: 700 |
Thanked: 846 times |
Joined on Nov 2009
|
#935
|
updating what I said, by adding the gainroot>/dev/null that I added to the end of the 3 states commands created system instability and it didn't create an off state (or toggling between states or both) either.
Surely it must be possible using 2 kernel files? 1 which has been customised (an 'on' state) and one which is stock (an 'off' state)
the command:
if [ "$QBW_EXEC_REASON" == "QBW_STARTUP_UPDATE" ]; then /usr/sbin/kernel-load /home/user/MyDocs/kernel.txt | sudo gainroot
deffinately works at start up (if enabled) or when clicked after start up.
so maybe its not toggling between states because of the sudo gainroot command?
I tried replacing the on/off states commands with:
if [ "$QBW_CURRENT_RESULTS_TEXT" == "ON" ]; then
rootsh /usr/sbin/kernel-load /home/user/MyDocs/originalkernel.txt
echo "OFF";
exit 0;
else
rootsh /usr/sbin/kernel-load /home/user/MyDocs/kernel.txt
echo "ON";
exit 1;
helppp
The Following User Says Thank You to No!No!No!Yes! For This Useful Post: | ||
|
2010-11-17
, 00:38
|
|
Posts: 700 |
Thanked: 846 times |
Joined on Nov 2009
|
#936
|
The Following User Says Thank You to No!No!No!Yes! For This Useful Post: | ||
|
2010-11-17
, 01:02
|
|
Posts: 700 |
Thanked: 846 times |
Joined on Nov 2009
|
#937
|
|
2010-11-17
, 12:28
|
Posts: 71 |
Thanked: 4 times |
Joined on Mar 2010
|
#938
|
|
2010-11-18
, 19:45
|
Posts: 277 |
Thanked: 319 times |
Joined on Jan 2010
|
#940
|
Here's another way to have a "2 States Button" which is "ON" on widget/system startup and toggles at every press.
wget ´http://ipaddress:port/ZwaveCommand?command=device&id=21&level=100´
DEVICE~Eteinen~7~50~Controller DEVICE~Iso taso~9~0~BinaryPowerSwitch DEVICE~Jääkaappi~14~99~MultilevelPowerSwitch DEVICE~Lamppu~15~0~MultilevelSwitch DEVICE~Lastenhuone~19~0~MultilevelPowerSwitch DEVICE~Makuuhuone~20~0~MultilevelPowerSwitch DEVICE~Olohuone~8~99~MultilevelPowerSwitch DEVICE~Pieni Taso~16~255~BinaryPowerSwitch DEVICE~Ruokapöytä~22~99~MultilevelPowerSwitch DEVICE~Spotit~12~0~BinarySwitch DEVICE~Taustavalo~18~0~BinarySwitch DEVICE~Tiskipöytä~11~0~BinaryPowerSwitch DEVICE~Toimisto~21~99~MultilevelPowerSwitch