|
2010-05-10
, 15:05
|
|
Posts: 3,203 |
Thanked: 1,391 times |
Joined on Nov 2009
@ Worthing, England
|
#3
|
import os os.popen(command)
The Following User Says Thank You to noobmonkey For This Useful Post: | ||
|
2010-05-10
, 15:39
|
Posts: 324 |
Thanked: 371 times |
Joined on Dec 2009
@ Vancouver, BC
|
#4
|
import urllib2 f = urllib2.urlopen('http://192.168.2.45/control/rcem?KEY_HOME') data = f.read() f.close()
The Following User Says Thank You to Slocan For This Useful Post: | ||
|
2010-05-10
, 16:29
|
Posts: 102 |
Thanked: 17 times |
Joined on Mar 2010
@ Herne,Germany
|
#5
|
If you don't want to use a subprocess to start wget, you can use the urllib2 module ( http://docs.python.org/library/ ) :
Code:import urllib2 f = urllib2.urlopen('http://192.168.2.45/control/rcem?KEY_HOME') data = f.read() f.close()
|
2010-05-10
, 17:10
|
Posts: 324 |
Thanked: 371 times |
Joined on Dec 2009
@ Vancouver, BC
|
#6
|
|
2010-05-10
, 20:47
|
|
Posts: 1,366 |
Thanked: 1,185 times |
Joined on Jan 2006
|
#7
|
|
2010-05-13
, 03:31
|
Posts: 102 |
Thanked: 17 times |
Joined on Mar 2010
@ Herne,Germany
|
#10
|
wget -q http://192.168.2.45/control/rcem?KEY_HOME
but i don't know , how can i make it, i'm not fit in python,
I would like to make buttons to click. like:
1 (command: wget -q http://192.168.2.45/control/rcem?KEY_1)
2 (command: wget -q http://192.168.2.45/control/rcem?KEY_2)
..
10 (command: wget -q http://192.168.2.45/control/rcem?KEY_10)
Red (command: wget -q http://192.168.2.45/control/rcem?KEY_RED)
Exit (command: wget -q http://192.168.2.45/control/rcem?KEY_HOME)
etc.
how can i make that??
a little help start , would be nice..
Last edited by bonkel; 2010-05-14 at 18:34.