i-have-a-dreambox.com | Dreambox - Support

Register Calendar Members List Team Members Galerie to Portal Go to the Main Page

Boardrules Frequently Asked Questions Statistik Statistik Search Pinwand Dreambox Blog Ihad/Gemini Fan-Shop
i-have-a-dreambox.com | Dreambox - Support » ...::: Dreambox Software :::... » Dreambox Plugins (Enigma2) » [v0.3] NEW Plug-in: DialogMaster (dialog filter / controller / logger) » Hello Guest [Login|Register]
Last Post | First Unread Post Print Page | Add Thread to Favorites
Post New Thread Post Reply
Go to the bottom of this page [v0.3] NEW Plug-in: DialogMaster (dialog filter / controller / logger)
Author
Post « Previous Thread | Next Thread »
suomipoeka
User


Registration Date: 14.10.2007
Posts: 298
Which box: DM 500C; DM 7025CC; DM 7025CT
External Storage: CF; NFS; CIFS
Which Image: Sonstige

NEW [v0.3] NEW Plug-in: DialogMaster (dialog filter / controller / logger) Reply to this Post Post Reply with Quote Edit/Delete Posts Report Post to a Moderator       Go to the top of this page

This very small plug-in is designed for controlling the MessageBox flow that is coming from Enigma2. Dialogs can be filtered and modified as they are being opened. If there is a popup dialog that you really don't want to see, this is your plug-in.. MessageBox events can also be logged so the user can check out what has actually happened on the Dreambox during a time period.

Usage
- When you see an annoying MessageBox -> press menu while it's still open
- You will be greeted with a tiny config window with filtering and other options
- Edit the filter string to remove any service specific text
- Set the other options to your liking and press Save
- The general configuration options can accessed via the plug-ins menu

This is how the log file looks like:
code:
1:
2:
3:
4:
5:
20090422 00:39 If you see this, something is wrong with your scart connection. Press OK to return.
20090422 01:03 A record has been started: Willard (K15) 
20090422 01:03 Stop ongoing recording? 20090422 0103 - TV2 - Willard (K15)
20090422 01:03 Delete?  20090422 0103 - TV2 - Willard (K15) 
20090422 04:05 Suomipoeka Enigma2 auto-restart launching, continue? Select no to postpone by one hour.
TODO
- Show the menu button icon below the message button icon, anybody got any ideas how to do this? smile

NOTE: This plugin does not overwrite any Enigma2 files.

DOWNLOAD



Thank the author for this topic

22 Users have thanked for this topic (pasurimi, titovich, franzjuve, subsilver, Ryu, prontator, kinski, mfgeg, rimas, woggy, Teilekind, Piatnik, sin, friday13, elgeneral, Raitsa3, souzakias, syntax888, magala, Joachim_Ernst, silviogesell2).


Attachments:
jpg screenshot1.jpg (23 KB, 2,416 downloads)
jpg screenshot2.jpg (39 KB, 2,443 downloads)
jpg screenshot3.jpg (43.32 KB, 2,346 downloads)
jpg screenshot4.jpg (37.39 KB, 2,254 downloads)
jpg screenshot5.jpg (55 KB, 2,372 downloads)


__________________
2 x DM7025C (Nn2), DM500C (Enigma2), PH-A110, Linux NAS
Enigma2 for DM500 (non-plus)

This post has been edited 9 time(s), it was last edited by suomipoeka: 22.01.2010 00:01.

22.04.2009 00:38 suomipoeka is offline Send an Email to suomipoeka Homepage of suomipoeka Search for Posts by suomipoeka Add suomipoeka to your Buddy List
suomipoeka
User


Registration Date: 14.10.2007
Posts: 298
Which box: DM 500C; DM 7025CC; DM 7025CT
External Storage: CF; NFS; CIFS
Which Image: Sonstige

Thread Starter Thread Started by suomipoeka
Reply to this Post Post Reply with Quote Edit/Delete Posts Report Post to a Moderator       Go to the top of this page

Just noticed that pressing menu on a dialog that contains e.g. scandinavian letters (ä,ö,å) causes Enigma2 to crash since the whole string is set into the title field of the filter config window.

So try to avoid configuring dialogs with exotic characters in the string... I'll post a fixed release at some point.

__________________
2 x DM7025C (Nn2), DM500C (Enigma2), PH-A110, Linux NAS
Enigma2 for DM500 (non-plus)

This post has been edited 1 time(s), it was last edited by suomipoeka: 22.04.2009 16:28.

22.04.2009 16:27 suomipoeka is offline Send an Email to suomipoeka Homepage of suomipoeka Search for Posts by suomipoeka Add suomipoeka to your Buddy List
artman_hacker artman_hacker is a male
Stammuser


images/avatars/avatar-10342.gif

Registration Date: 07.07.2008
Posts: 388
Which box: DM 800S
External Storage: USB-Stick; HDD
Which Image: Sonstige
Origin: Iran

großes Grinsen Reply to this Post Post Reply with Quote Edit/Delete Posts Report Post to a Moderator       Go to the top of this page

great job HURRA
22.04.2009 18:11 artman_hacker is offline Send an Email to artman_hacker Homepage of artman_hacker Search for Posts by artman_hacker Add artman_hacker to your Buddy List YIM Account Name of artman_hacker: artman_hacker
suomipoeka
User


Registration Date: 14.10.2007
Posts: 298
Which box: DM 500C; DM 7025CC; DM 7025CT
External Storage: CF; NFS; CIFS
Which Image: Sonstige

Thread Starter Thread Started by suomipoeka
Reply to this Post Post Reply with Quote Edit/Delete Posts Report Post to a Moderator       Go to the top of this page

Ok.. Fixed the Enigma2 crash by setting a static title for the New Filter -editor.. Added support for viewing the logged messages and creating filters from the log view.

Attachments:
jpg screenshot1.jpg (64.40 KB, 1,737 downloads)
jpg screenshot2.jpg (112.32 KB, 1,768 downloads)


__________________
2 x DM7025C (Nn2), DM500C (Enigma2), PH-A110, Linux NAS
Enigma2 for DM500 (non-plus)
22.04.2009 20:20 suomipoeka is offline Send an Email to suomipoeka Homepage of suomipoeka Search for Posts by suomipoeka Add suomipoeka to your Buddy List
suomipoeka
User


Registration Date: 14.10.2007
Posts: 298
Which box: DM 500C; DM 7025CC; DM 7025CT
External Storage: CF; NFS; CIFS
Which Image: Sonstige

Thread Starter Thread Started by suomipoeka
v0.3 available Reply to this Post Post Reply with Quote Edit/Delete Posts Report Post to a Moderator       Go to the top of this page

This version allows closing YES/NO dialogs with chosen selection. There are now also two different methods of hiding dialogs. A dialog can be either hidden or blocked. Hidden dialogs will remain "open" until closed by the timeout (or remote control action EXIT/OK/RED/GREEN). Blocked dialogs will be closed immediately with the given selection.

WARNING:
The "A record has been started" -dialog cannot be blocked or hidden with a timeout less than 2 seconds. This is because of a possible Enigma2 bug that causes a modal crash when selecting "Add recordind (enter recording duration)". For this you should use Hide and a 2 seconds timeout.



I tried adding the menu button icon to the captured MessageBox instance but it seemed quite impossible to do.. At least with ePicload it just didn't seem to be possible to change the layout of the screen. If anyone has a good idea how to do this I'd like to hear it.

__________________
2 x DM7025C (Nn2), DM500C (Enigma2), PH-A110, Linux NAS
Enigma2 for DM500 (non-plus)

This post has been edited 1 time(s), it was last edited by suomipoeka: 27.04.2009 19:16.

27.04.2009 19:12 suomipoeka is offline Send an Email to suomipoeka Homepage of suomipoeka Search for Posts by suomipoeka Add suomipoeka to your Buddy List
tomde
User


images/avatars/avatar-16046.gif

Registration Date: 04.02.2010
Posts: 154
Which box: DM 8000HD
External Storage: HDD
Which accessories: DVB-C, DVB-T, 4-PIN-Fan
Which Image: CVS

verrückt keine Reaktion beim Ausschalttimer Reply to this Post Post Reply with Quote Edit/Delete Posts Report Post to a Moderator       Go to the top of this page

Der Ausschalttimer fährt die Box mit aktuelem Oozoon nicht herunter. Gleiches hatte ich nach Aufnahmen (die Box herunterfahren als Aktion haben) bemerkt. Auch das Schalten in den Standby Modus funktioniert nicht: Das Hinweis-Fenster erscheint, doch keine Reaktion nach Ablauf der 20 Sekunden, ob wohl als default Ja angegeben ist.

Hatte den dialogmaster installiert, aber noch keine Aktionen konfiguriert. Nach Deinstallation funktioniert der Ausschalttimer wieder.

Hat jemand ähnliche Erfahrungen?

__________________
Wir haben alle den gleichen Himmel, aber nicht alle den gleichen Horizont. *** DM8000 - OE2.0+GP3.2
24.02.2010 20:03 tomde is offline Send an Email to tomde Search for Posts by tomde Add tomde to your Buddy List
ub75 ub75 is a male
User


Registration Date: 13.11.2006
Posts: 236
Which box: DM 8000HD; D-Box
External Storage: HDD; CF; CIFS
Which accessories: Samsung LE-52M86BD LCD,Sony VPL-HW10 HD-Beamer,WSS-Spalut o 110" Leinwand,Dreambox 8000SSSS,Nokia dbox2,Pioneer VSX-808RDS AC3 Receiver
Which Image: Gemini
Welcher Bildschirm: 52" LCD / 110" 16:9 Leinwand

Reply to this Post Post Reply with Quote Edit/Delete Posts Report Post to a Moderator       Go to the top of this page

thema sleeptimer ist im gp4.7 bei mir genauso...
05.04.2010 17:55 ub75 is offline Search for Posts by ub75 Add ub75 to your Buddy List
Tode Tode is a male
Dreamer


Registration Date: 20.07.2005
Posts: 937
Which box: DM7080HD; DM8000
External Storage: CF-Card; HDD; NFS
Which accessories: DM8000: Farbiges Display von Buck, Denon AVR X1000
Which Image: OoZooN
Welcher Bildschirm: SAMSUNG UE55H6270

Reply to this Post Post Reply with Quote Edit/Delete Posts Report Post to a Moderator       Go to the top of this page

I found out that DialogMaster has a very bad bug:

By default when you have a Messagebox of TYPE_YESNO with a timeout, then after timeout it gives you the result passed in as default.

If default is True, then after the timeout Tue should be returned.
If default is False, then after the timeout False should be returned.

This Plugin always returns "False" as it calls the Cancel- Method of Messagebox after the Timeout instead of returning the default- value.

The error is in line 237, where selc.close is set as timeoutCallback instead of using "ok"...

By the way: The line 236 will cause unexpected results as well...

The plugin assumes, that Messagebox will return "True", when self.ok is called and return "False" when self.cancel is called.

The first assumption is false: ok does NOT always return TRUE, but it returns "False", if default = False

The second assumption is right, as cancel always returns false, but it nevertheless does something wrong:
If there is no configuration for a special Dialog, a User would assume, that the dialog behaves as if DialogMaster was not installed.
But DialogMaster instead changes the behaviour from calling the OK- method and checking what to deliver back (the default value) to calling the Cancel- method...

Please fix this bugs


Best regards
Tode

P.S.: I attached a Version of plugin.py (untested), that should fix this problem:
It sets self.yesclose to None in line 215 and adds a
if self.yesclose != None:
before the self.yesclose:
And it changes the self.ok to self.alwaysOK in line 237 to get the expected alyways True.

Now if there is no configuration for a specific Messagebox, then the default- behaviour is maintained...

HTH
Tode

EDIT: I attached a diff- file... This is my first try for a diff- file (created with GnuWin32 Diff- utils), hope it has the correct format...
EDIT2: I attached a diff- file in unified- format as well, as this looks more like the ones I know from enigma2- Sources

Attachments:
unknown plugin.py (12 KB, 6 downloads)
unknown dialogmaster.patch (441 Byte, 5 downloads)
unknown dialogmasterUnified.patch (1.01 KB, 2 downloads)

This post has been edited 6 time(s), it was last edited by Tode: 04.05.2010 14:18.

04.05.2010 13:04 Tode is offline Send an Email to Tode Search for Posts by Tode Add Tode to your Buddy List
Tode Tode is a male
Dreamer


Registration Date: 20.07.2005
Posts: 937
Which box: DM7080HD; DM8000
External Storage: CF-Card; HDD; NFS
Which accessories: DM8000: Farbiges Display von Buck, Denon AVR X1000
Which Image: OoZooN
Welcher Bildschirm: SAMSUNG UE55H6270

Reply to this Post Post Reply with Quote Edit/Delete Posts Report Post to a Moderator       Go to the top of this page

FYI: I tested my patch, it works for me...

KiddyTimer now does what it should again, when timeout is over...

Regards
Tode
05.05.2010 22:33 Tode is offline Send an Email to Tode Search for Posts by Tode Add Tode to your Buddy List
allow2010
User


images/avatars/avatar-14414.jpg

Registration Date: 14.05.2010
Posts: 277
Which box: DM920
External Storage: NAS
Which Image: OE 2.5; Merlin; OoZooN; Sonstige
Welcher Bildschirm: 46" Sony

Reply to this Post Post Reply with Quote Edit/Delete Posts Report Post to a Moderator       Go to the top of this page

Thanks for the patch, seems to work fine...

I also did some cosmetic changes (the gui always looked wrong in german) and combined both in the attached file...

For User: just replace the plugin.py in

/usr/lib/enigma2/python/Plugins/Extensions/DialogMaster/plugin.py

by ftp (or dcc) with the attached one and reboot

For suomipoeka: please update the ipk file on your homepage if you like

Attachments:
unknown plugin.py (12 KB, 13 downloads)
jpg screenshot.jpg (20.21 KB, 918 downloads)
07.06.2010 16:25 allow2010 is offline Send an Email to allow2010 Search for Posts by allow2010 Add allow2010 to your Buddy List
allow2010
User


images/avatars/avatar-14414.jpg

Registration Date: 14.05.2010
Posts: 277
Which box: DM920
External Storage: NAS
Which Image: OE 2.5; Merlin; OoZooN; Sonstige
Welcher Bildschirm: 46" Sony

Reply to this Post Post Reply with Quote Edit/Delete Posts Report Post to a Moderator       Go to the top of this page

english:
As i did not get an reply from suomipoeka (not by mail or PM) i decided to make an updated ipk.

Just install it as usual and the fixes should be inkluded...

german: weil ich keine antwort von suomipoeka bekommen habe habe ich mich dazu entschieden selbst ein aktualisiertes ipk file zu erstellen...

Einfach auf dem üblichen weg installieren und die erwähnten korrekturen sollten eingespielt werden....

Attachment:
unknown enigma2-plugin-extensions-dialogmaster_0 .3-r1_all.ipk (13 KB, 61 downloads)
08.06.2010 12:56 allow2010 is offline Send an Email to allow2010 Search for Posts by allow2010 Add allow2010 to your Buddy List
Erim
V.I.P.*


images/avatars/avatar-14774.png

Registration Date: 01.01.2007
Posts: 4,281
Which box: DM8000
External Storage: USB-Stick; HDD; NFS
Which Image: DMM original

Reply to this Post Post Reply with Quote Edit/Delete Posts Report Post to a Moderator       Go to the top of this page

Push

es ist ein altes plugin, aber es funktioniert immer noch.

Ihr könnt damit popups z.b. tune failed usw. "blocken"
http://koti.mbnet.fi/devnull/suomipoeka/dialogmaster/
07.07.2012 21:14 Erim is offline Send an Email to Erim Search for Posts by Erim Add Erim to your Buddy List
Benq2705 Benq2705 is a male
gesperrter User

Registration Date: 09.10.2009
Posts: 2,165
Which box: andere
External Storage: HDD; NFS
Origin: Germany

Reply to this Post Post Reply with Quote Edit/Delete Posts Report Post to a Moderator       Go to the top of this page

cool Danke Erim Zunge raus

__________________
Wenn du die Welt verändern willst, beginne mit dem Menschen, den du jeden Morgen im Spiegel siehst.
07.07.2012 21:19 Benq2705 is offline Search for Posts by Benq2705 Add Benq2705 to your Buddy List
willwaswissen willwaswissen is a male
User


images/avatars/avatar-12019.jpg

Registration Date: 17.05.2009
Posts: 161
Which box: DM8000
External Storage: CF-Card
Which accessories: NAS-Server QNAP TS 219/ 439/ 859 + 2xLightpack
Which Image: Gemini
Welcher Bildschirm: LCD, Samsung UE65HU8590
Origin: München

Reply to this Post Post Reply with Quote Edit/Delete Posts Report Post to a Moderator       Go to the top of this page

Falls dieses Plugin "enigma2-plugin-extensions-dialogmaster_0.3-r1_all.ipk" bei OE2 installiert wird, dann startet meine DM8000 nur noch mit einem Greenscreen in einer Dauerschleife. Abhilfe nur wenn man sich per telnet verbindet und dieses plugn wieder manuell deinstalliert.

Der andere Download-Link funktioniert nicht mehr mit:
http://koti.mbnet.fi/devnull/suomipoeka/dialogmaster/

Existiert etwas lauffähiges für OE2?

__________________
Gruss aus München
(aktuelles CVS OE2.0-Image mit GP3.2 + 2xLightpack leider bei der DM8000 mit Bildfreezern ca. 10s - VU+® Duo² mit VTi freezerfrei)

This post has been edited 3 time(s), it was last edited by willwaswissen: 10.09.2014 21:44.

10.09.2014 21:36 willwaswissen is offline Send an Email to willwaswissen Search for Posts by willwaswissen Add willwaswissen to your Buddy List
joe128
Stammuser


Registration Date: 29.07.2009
Posts: 335
Which box: DM800se
External Storage: HDD
Which Image: OoZooN

Reply to this Post Post Reply with Quote Edit/Delete Posts Report Post to a Moderator       Go to the top of this page

Ich arbeite gerade an einem thematisch ähnlichem Plugin (für Notifications). Möglicherweise würde ich die sourcen inkludieren.
Könntest du den crashlog posten, damit ich abschätzen kann wieviel Aufwand eine Korrektur wäre?
12.09.2014 08:41 joe128 is offline Send an Email to joe128 Search for Posts by joe128 Add joe128 to your Buddy List
willwaswissen willwaswissen is a male
User


images/avatars/avatar-12019.jpg

Registration Date: 17.05.2009
Posts: 161
Which box: DM8000
External Storage: CF-Card
Which accessories: NAS-Server QNAP TS 219/ 439/ 859 + 2xLightpack
Which Image: Gemini
Welcher Bildschirm: LCD, Samsung UE65HU8590
Origin: München

Reply to this Post Post Reply with Quote Edit/Delete Posts Report Post to a Moderator       Go to the top of this page

Ich hab mal alle Crash-Logs von diesem Tag angehängt!

Attachments:
unknown enigma2_crash_1410376731.log (91 KB, 0 downloads)
unknown enigma2_crash_1410376810.log (91 KB, 0 downloads)
unknown enigma2_crash_1410376933.log (91 KB, 0 downloads)


__________________
Gruss aus München
(aktuelles CVS OE2.0-Image mit GP3.2 + 2xLightpack leider bei der DM8000 mit Bildfreezern ca. 10s - VU+® Duo² mit VTi freezerfrei)

This post has been edited 1 time(s), it was last edited by willwaswissen: 13.09.2014 04:12.

13.09.2014 04:11 willwaswissen is offline Send an Email to willwaswissen Search for Posts by willwaswissen Add willwaswissen to your Buddy List
Tree Structure | Board Structure
Jump to:
Post New Thread Post Reply
i-have-a-dreambox.com | Dreambox - Support » ...::: Dreambox Software :::... » Dreambox Plugins (Enigma2) » [v0.3] NEW Plug-in: DialogMaster (dialog filter / controller / logger)

Privacy policy | Team | Suchen | Hilfe


Powered by Burning Board 2.3.6 © 2001-2003 WoltLab GbR