You are not logged in.

Dear visitor, welcome to Dreamboard. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

1

Friday, February 12th 2010, 9:07pm

enigma2 Webinterface API Documentation

Hi,

Today i took a little time to write a small python-script for creating a basic enigma2 WebInterface API-Documenation (like pydoc does in a very sophisticated way for python).
Here's the result: http://e2devel.com/apidoc/webif/

It is (yet) not perfect when it comes to formatting but i hope this may be useful for some of you.
I'm planning to create a cronjob for automated daily update.

Small Update:
Addes some more Information to make e.g. repeating content more obvious.
Comments, e.g. welcome!
mfg ,
Reichi

"Die Deutsche Rechtschreibung ist Freeware, sprich, du kannst sie kostenlos nutzen.
Allerdings ist sie nicht Open Source, d.h. du darfst sie nicht verändern oder in veränderter Form veröffentlichen."

This post has been edited 2 times, last edit by "Reichi" (Feb 24th 2011, 1:38am)


2

Thursday, February 24th 2011, 1:39am

The script has been updated (has a TOC with links now, plus some minor additional improvements).
I've finally configured a cronjob to generate the documentation on a daily basis.

If you discover any flaws, go ahead an tell me!
mfg ,
Reichi

"Die Deutsche Rechtschreibung ist Freeware, sprich, du kannst sie kostenlos nutzen.
Allerdings ist sie nicht Open Source, d.h. du darfst sie nicht verändern oder in veränderter Form veröffentlichen."

This post has been edited 2 times, last edit by "Reichi" (Feb 24th 2011, 1:47am)


3

Thursday, February 24th 2011, 1:28pm

Thanks for providing this info, I was looking for something like this since some time.

It would be nice if you could add a description to the API commands, e.g. explaining/describing the input and the return values.
Dreambox 7020 HD
Dreambox 800 HD SE

4

Thursday, February 24th 2011, 1:30pm

Hi,

true, that would be nice. But it's not so easy to automatically generate that ;)
But a already thought about ways to make that possible...
mfg ,
Reichi

"Die Deutsche Rechtschreibung ist Freeware, sprich, du kannst sie kostenlos nutzen.
Allerdings ist sie nicht Open Source, d.h. du darfst sie nicht verändern oder in veränderter Form veröffentlichen."


humsat

Dreamer

    Denmark

Posts: 42

Location: Denmark

Occupation: Selfmade

  • Send private message

5

Tuesday, March 1st 2011, 8:27am

hi :)

Thanks :thumbup:

What happend to id="SENDcurrent" ?

boxip/upload
regards humsat


6

Tuesday, March 1st 2011, 8:41am

hi, /upload & Co. are still there, there is just no automated documentation for that parts (only for the /web/* part).
mfg ,
Reichi

"Die Deutsche Rechtschreibung ist Freeware, sprich, du kannst sie kostenlos nutzen.
Allerdings ist sie nicht Open Source, d.h. du darfst sie nicht verändern oder in veränderter Form veröffentlichen."


humsat

Dreamer

    Denmark

Posts: 42

Location: Denmark

Occupation: Selfmade

  • Send private message

7

Tuesday, March 1st 2011, 9:41am

I think it's a shame you removed this option.

It's smart to be able to send pictures and videos home that way
you get back space on your mobile device
your family can see where you are and what you do when you travel
or if your wife is shopping in Ikea, she can send at picture home and ask you if you think you can assemble this rack. :D

Forgot to ask if there is any chance that you planted it again ?
regards humsat

This post has been edited 1 times, last edit by "humsat" (Mar 1st 2011, 10:04am)


8

Tuesday, March 1st 2011, 1:09pm

nevermind... shame on me...
mfg ,
Reichi

"Die Deutsche Rechtschreibung ist Freeware, sprich, du kannst sie kostenlos nutzen.
Allerdings ist sie nicht Open Source, d.h. du darfst sie nicht verändern oder in veränderter Form veröffentlichen."

This post has been edited 1 times, last edit by "Reichi" (Mar 1st 2011, 1:42pm)


9

Tuesday, March 1st 2011, 1:38pm

Well, /upload was actually disabled since the rewrite using twisted.web – you should know it given that you initially disabled the child :)

But I have re-enabled it about 90 minutes ago since I removed the last blocker that was left in the code.

10

Tuesday, March 1st 2011, 1:42pm

oh, hmm shame on me!
Thx ritzMo!
mfg ,
Reichi

"Die Deutsche Rechtschreibung ist Freeware, sprich, du kannst sie kostenlos nutzen.
Allerdings ist sie nicht Open Source, d.h. du darfst sie nicht verändern oder in veränderter Form veröffentlichen."


humsat

Dreamer

    Denmark

Posts: 42

Location: Denmark

Occupation: Selfmade

  • Send private message

11

Tuesday, March 1st 2011, 6:34pm

Thanks :)

For you who cant wait.

You need these files:
overwrite Uploader.py and Toplevel.py in /usr/lib/enigma2/python/Plugins/Extensions/WebInterface/WebChilds/
humsat has attached the following files:
  • Uploader.py (2.48 kB - 105 times downloaded - latest: May 11th 2013, 3:45pm)
  • Toplevel.py (1.95 kB - 95 times downloaded - latest: Yesterday, 7:45am)
regards humsat


humsat

Dreamer

    Denmark

Posts: 42

Location: Denmark

Occupation: Selfmade

  • Send private message

12

Tuesday, March 8th 2011, 12:06pm

hi :)

In the remote files you got to set new codes on Pause and Exit

Exit = 1 and Pause =119
119 can be used as pause/play using MediaPlayer and as start TimeShift watching TV
regards humsat


13

Tuesday, May 17th 2011, 7:16am

Hi,

I want to disable background scanning that enigma2 performs when a channel is selected. I don't until now grap the logic of the python code to do that. Can you please advise about the python functions involved in this background scanning process.

Many thanks

Arachaz

14

Tuesday, May 17th 2011, 8:36am

It's not python it's in the c++ core and it's not "simple to disable".
mfg ,
Reichi

"Die Deutsche Rechtschreibung ist Freeware, sprich, du kannst sie kostenlos nutzen.
Allerdings ist sie nicht Open Source, d.h. du darfst sie nicht verändern oder in veränderter Form veröffentlichen."


15

Tuesday, May 17th 2011, 5:15pm

Thanks Reichi

With patience and assistance all things are possible. I have patience, but need assistance on how to modify C++ code.

Arachaz

16

Tuesday, May 17th 2011, 6:07pm

maybe but:

1. It has NOTHING to with the API Doc for the webinterface, so please open a new thread
2. My c++ sucks, i can't help you there
mfg ,
Reichi

"Die Deutsche Rechtschreibung ist Freeware, sprich, du kannst sie kostenlos nutzen.
Allerdings ist sie nicht Open Source, d.h. du darfst sie nicht verändern oder in veränderter Form veröffentlichen."


17

Monday, October 10th 2011, 2:16am

Small Request

Hi guys !

I'm desperately looking for a HTTP command to display the screen I can get by pressing the "record" button on my DM8000 remote (the one at the bottom right with a red point) ...

It usually displays a menu with some options for instant recording ...

I hope you see what I mean ...

Thanks in advance for your replies ...

LePouSAT