How do you test in a python script ?
Condition If any change
Then in action you have to convert to an integer then do the if
Sent from my iPhone using Tapatalk
clRPi= int(indigo.devices["b-xy-orange-beep"].states["closestRPI"])
if clRPi > 2:
indigo.server.log(" 2 fired")
kw123 wrote:How do you test in a python script ?
Condition If any change
Then in action you have to convert to an integer then do the if
Sent from my iPhone using Tapatalk
if int(indigo.devices[1234567].states["closestRPI"]) >2:
indigo.server.log(" 2 fired for 123456")
if int(indigo.devices[2345678].states["closestRPI"]) >2:
indigo.server.log(" 2 fired for 2345678")
if int(indigo.devices[4567890].states["closestRPI"]) >2:
indigo.server.log(" 2 fired for 4567890")
roquej wrote:Two of my RPs keep going down. They won't respond to reboot from the menu or accept direct ssh connections. All I can do it turn them off and back on. This happens several times a day or after a couple of days.
Mar 22, 2017, 6:43:47 AM
piBeacon rPi#: 3 >>169.254.67.160<< ip number has changed, please fix in menue/pibeacon/setup pi or changed Ip number or send restart to rPi; old= 10.0.1.196 received from pi: 169.254.67.160
benip wrote:roquej wrote:Two of my RPs keep going down. They won't respond to reboot from the menu or accept direct ssh connections. All I can do it turn them off and back on. This happens several times a day or after a couple of days.
I get this if the wifi AP goes down or is rebooted. The RPis appear connected in Indigo, but do not update and cannot be pinged or sshd into. Every time I think about putting them on a LAN connection, but never get round to it
kw123 wrote:Some things to look at.
How did you setup the network on the rpi
Do you have wifi and Ethernet
Could you check the file ipAddress on the rpi
Do ifconfig in the rpi
I also have this when I have the roter thinks that it should have one ip and the rpi uses a different one
Sent from my iPhone using Tapatalk
pi@RPiReceiver3:~ $ ifconfig
eth0 Link encap:Ethernet HWaddr b8:27:eb:13:11:1e
inet addr:10.0.1.196 Bcast:10.0.1.255 Mask:255.255.255.0
inet6 addr: fe80::91b:670d:9932:68cb/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:142994 errors:0 dropped:11749 overruns:0 frame:0
TX packets:15297 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:22410466 (21.3 MiB) TX bytes:2493325 (2.3 MiB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:200 errors:0 dropped:0 overruns:0 frame:0
TX packets:200 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1
RX bytes:16656 (16.2 KiB) TX bytes:16656 (16.2 KiB)
wlan0 Link encap:Ethernet HWaddr b8:27:eb:46:44:4b
inet6 addr: fe80::2f91:529a:e8fd:28f2/64 Scope:Link
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:20254 errors:0 dropped:20254 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:7200894 (6.8 MiB) TX bytes:0 (0.0 B)
Users browsing this forum: No registered users and 4 guests