maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   python help plz (https://talk.maemo.org/showthread.php?t=52319)

BrentDC 2010-05-13 04:12

Re: python help plz
 
Quote:

Originally Posted by bonkel (Post 656354)
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')

GreatGonzo 2010-05-13 04:50

Re: python help plz
 
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))


helex 2010-05-13 08:15

Re: python help plz
 
Quote:

Originally Posted by bonkel (Post 656159)
after some reading, ive finish my python, not nice, but my first :D

http://i42.tinypic.com/63vwh3.jpg

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

rohanhole 2010-05-13 08:39

Re: python help plz
 
First Learn python , i bet u wont ask such questions again !!
Basics of python is enugg .. and for GUI. use pygtk.

bonkel 2010-05-13 13:48

Re: python help plz
 
Quote:

Originally Posted by helex (Post 656501)

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 :D
sh4 duckbox git (e2,neutrino-HD and vdr)

bonkel 2010-05-13 16:25

Re: python help plz
 
now i play with images:

normal:
http://i40.tinypic.com/2hqa4nd.jpg

pressed arrow button:
http://i41.tinypic.com/9u6s7a.jpg

pressed ok button:
http://i39.tinypic.com/11qipoh.jpg


follow: volume up,down buttons .
play,stop,rec usw.

helex 2010-05-13 17:23

Re: python help plz
 
Quote:

Originally Posted by bonkel (Post 656832)
yeah its for dbox or coolstream, or the sh4 receivers with neutrino-hd.
i can change the links ,then it works with enigma2 too :D
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. :o)

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! ;)

bonkel 2010-05-14 18:33

Re: python help plz
 
i think i'm done....looks cool for me.. ..
if someone wants to test


http://rapidshare.com/files/38733251...rinoRemote.zip

aspidites 2010-05-14 18:45

Re: python help plz
 
Quote:

Originally Posted by bonkel (Post 658727)
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)

bonkel 2010-05-14 19:02

Re: python help plz
 
Quote:

Originally Posted by aspidites (Post 658734)
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.


All times are GMT. The time now is 10:35.

vBulletin® Version 3.8.8