|
|
@ -1,11 +1,10 @@
|
|
|
|
#!/bin/bash
|
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
|
|
|
|
SID=0
|
|
|
|
SID=0
|
|
|
|
FB_IP=fritz.box
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#
|
|
|
|
#
|
|
|
|
# define FB_USER and FB_PASS in file fbconfig.config the user must have access to the SmartHome
|
|
|
|
# define FB_USER and FB_PASS in file fbconfig.config the user must have access to the SmartHome
|
|
|
|
source fbconfig.config
|
|
|
|
source $HOME/.fbsh.config
|
|
|
|
|
|
|
|
|
|
|
|
#
|
|
|
|
#
|
|
|
|
# login into the FB, grabbing a valid Session Key into variable SID
|
|
|
|
# login into the FB, grabbing a valid Session Key into variable SID
|
|
|
@ -35,7 +34,7 @@ function getdevices () {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
login $FB_IP $FB_USER $FB_PASS
|
|
|
|
login $FBSH_HOSTNAME $FBSH_USER $FBSH_PASS
|
|
|
|
getdevices $FB_IP
|
|
|
|
getdevices $FBSH_HOSTNAME
|
|
|
|
|
|
|
|
|
|
|
|
echo $LIST
|
|
|
|
echo $LIST
|
|
|
|