Revision 161f4dac71ebe19e41a002f1f00814b0f7f9daad

HW/Misc/220LANRelays/EG-PM2-LAN/index

Changes from 161f4dac71ebe19e41a002f1f00814b0f7f9daad to 1f40c7cc5446775f77d9b2222effa36c74bffa1d

---
format:markdown
...

~~~ 
Aktivovace (neco jako login) z účtu golem@golem.fjfi.cvut.cz:
curl -sd 'pw=1' http://192.168.2.83/login.html >/dev/null
a pak ...
Zapnout
curl -sd "cte4=1" http://192.168.2.83/status.html >/dev/null
Vypnout
curl -sd "cte4=0" http://192.168.2.83/status.html >/dev/null 
~~~ 
 
# Codes:

~~~ 
curl -sd 'pw=1' http://192.168.2.77/login.html >/dev/null 
sleep 2s
for i in `seq 1 4`; do  curl -sd "cte"$i"=0" http://192.168.2.77/status.html >/dev/null;sleep 1s;done
sleep 2s
for i in `seq 1 4`; do  curl -sd "cte"$i"=1" http://192.168.2.77/status.html >/dev/null;sleep 1s;done
~~~ 

~~~ 
curl -sd 'cte3=1' http://EG-PM2-LAN-IP-Adresse | fgrep -q Status
~~~ 

logout:
~~~
curl -s http://192.168.2.61/login.html
~~~

~~~
curl -sd 'pw=1' http://SpinanaZasuvkaC/login.html;curl -sd 'cte2=0' http://SpinanaZasuvkaC/status.html;curl -s http://SpinanaZasuvkaC/login.html
~~~

Lze se divat i web prohlizecem, ale musi se odlogovat session: curl -s http://192.168.2.61/login.html


# Problemy:  

* kdyz ztrati adresu, nastavi se default, je potreba zresetovat tlacitkem u Eth portu. 
* default paswword is 1