Reply
Thread Tools
BrentDC's Avatar
Posts: 903 | Thanked: 632 times | Joined on Apr 2008
#11
Originally Posted by bonkel View Post
any idea to replate all ip's with only one?

like:

IP = 192.168.2.45

urllib2.urlopen('http://IP/control/rcem?KEY_HOME')
Is this what you mean?



IP = '192.168.2.45'

urllib2.urlopen('http://' + IP + '/control/rcem?KEY_HOME')
__________________
-Brent

Author of TouchSearch -- web searching software for Maemo 5.

Mobile Device lineage: Palm Z22 -> Palm TX -> Nokia N800 -> Nokia N900
 

The Following User Says Thank You to BrentDC For This Useful Post:
GreatGonzo's Avatar
Posts: 275 | Thanked: 389 times | Joined on Feb 2010 @ Sydney
#12
or

Code:
IP = '192.168.2.45'
url = "http://%s/control/rcmem?%s"
# redefine for each key
keycode = "KEY_HOME"
urlib2.urlopen(url % (IP, keycode))

Last edited by GreatGonzo; 2010-05-13 at 04:51. Reason: added line
 

The Following 2 Users Say Thank You to GreatGonzo For This Useful Post:
helex's Avatar
Posts: 543 | Thanked: 802 times | Joined on Apr 2010 @ Germany
#13
Originally Posted by bonkel View Post
after some reading, ive finish my python, not nice, but my first

Oh, nice. I've done something similar and finished just last sunday. Currently I'm waiting since 3 days for the maemo Extras approval to upload the first version to autobuilder. Today it is a official holiday day here in my country. So I have time for testing but still no answer from the garage guys... so, lets wait and see when I have again time for it.
When it is ready I'll post a link!

But mine is in contrast for the Dreambox Receivers. Is your software is for the tuxbox? German: GNU DBox2 Software Projekt
 

The Following User Says Thank You to helex For This Useful Post:
Posts: 42 | Thanked: 7 times | Joined on Feb 2010
#14
First Learn python , i bet u wont ask such questions again !!
Basics of python is enugg .. and for GUI. use pygtk.
 
Posts: 102 | Thanked: 17 times | Joined on Mar 2010 @ Herne,Germany
#15
Originally Posted by helex View Post

But mine is in contrast for the Dreambox Receivers. Is your software is for the tuxbox? German: GNU DBox2 Software Projekt
yeah its for dbox or coolstream, or the sh4 receivers with neutrino-hd.
i can change the links ,then it works with enigma2 too
sh4 duckbox git (e2,neutrino-HD and vdr)
 
Posts: 102 | Thanked: 17 times | Joined on Mar 2010 @ Herne,Germany
#16
now i play with images:

normal:


pressed arrow button:


pressed ok button:



follow: volume up,down buttons .
play,stop,rec usw.
 
helex's Avatar
Posts: 543 | Thanked: 802 times | Joined on Apr 2010 @ Germany
#17
Originally Posted by bonkel View Post
yeah its for dbox or coolstream, or the sh4 receivers with neutrino-hd.
i can change the links ,then it works with enigma2 too
sh4 duckbox git (e2,neutrino-HD and vdr)
Yes, thats true. Thanks for the offer.
I worked the last weeks on a remote (only) for the Dreambox (I don't know much about other linux based home entertainment systems), I answerd this morning in your app request thread. (Sorry, haven't seen it before this morning. Otherwise I had answered before. )

So it's not needed for me to change the links in your application. I finished mine already for my needs.
But if you wan't we can work together to get it for your neutrino-HD box working.

If you have more fun in learning and programming I wouldn't integrate the neutrino functionality in my application and let you enjoy what you're developing.

Get a working result out of hard work is very important. I know that!

Last edited by helex; 2010-05-13 at 17:26.
 
Posts: 102 | Thanked: 17 times | Joined on Mar 2010 @ Herne,Germany
#18
i think i'm done....looks cool for me.. ..
if someone wants to test


http://rapidshare.com/files/38733251...rinoRemote.zip
 
Posts: 402 | Thanked: 229 times | Joined on Nov 2009 @ Missouri, USA
#19
Originally Posted by bonkel View Post
i think i'm done....looks cool for me.. ..
if someone wants to test


http://rapidshare.com/files/38733251...rinoRemote.zip
Rapidshare is annoying. Just attach it to the thread directly (manage attachments button)
__________________
aspidites | blog | aspidites@inbox.com
 
Posts: 102 | Thanked: 17 times | Joined on Mar 2010 @ Herne,Germany
#20
Originally Posted by aspidites View Post
Rapidshare is annoying. Just attach it to the thread directly (manage attachments button)
Your file of 769.5 KB bytes exceeds the forum's limit of 488.3 KB for this filetype.
 
Reply


 
Forum Jump


All times are GMT. The time now is 02:32.