projects
/
svn42.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
update and display button/light state
[svn42.git]
/
router_gpio_relay_licht
/
mswitch.cgi
diff --git
a/router_gpio_relay_licht/mswitch.cgi
b/router_gpio_relay_licht/mswitch.cgi
index
94176ce
..
c389c38
100755
(executable)
--- a/
router_gpio_relay_licht/mswitch.cgi
+++ b/
router_gpio_relay_licht/mswitch.cgi
@@
-46,11
+46,11
@@
for CHECKID in $VALID_ONOFF_IDS; do
if [ $VAL == 1 -o $VAL == 0 ]; then
echo "$VAL" > "${GPIOPATH}${CHECKID}/value"
fi
if [ $VAL == 1 -o $VAL == 0 ]; then
echo "$VAL" > "${GPIOPATH}${CHECKID}/value"
fi
- echo -n "$CHECKID:"
+ echo -n "\"$CHECKID\":"
print_gpio_state $CHECKID
echo ","
done
print_gpio_state $CHECKID
echo ","
done
-echo "-1:false}"
+echo "\"-1\":false}"
# echo "<html>"
# echo "<head>"
# echo "<title>Realraum Relay Switch</title>"
# echo "<html>"
# echo "<head>"
# echo "<title>Realraum Relay Switch</title>"