Fancontrol plugin

  • Moin!


    I think you are talking about FanControl 2.
    That does not make any sense for the DM7080 as the box has no temperature sensor. (this could also be the crash source; what does the crashlog say?)


    If you mean TempFanControl, i don’t think this has a status page to call up.

  • Ja es wird das Fancontrol2 sein,im neuen unstable gab es im e2 Änderungen für die oled Anzeigen und da fehlt jetzt hier im Plugin etwas.


    Screen <class 'Screens.Setup.SetupSummary'>((<class 'Plugins.Extensions.FanControl2.plugin.FanControl2Monitor'>,), {}): <type 'exceptions.AttributeError'>
    Traceback (most recent call last):
    File "/usr/lib/enigma2/python/mytest.py", line 345, in create
    return screen(self, *arguments, **kwargs)
    File "/usr/lib/enigma2/python/Screens/Setup.py", line 33, in __init__
    self["SetupTitle"] = StaticText(_(parent.setup_title) if parent.setup_title else parent["Title"].text)
    AttributeError: 'FanControl2Monitor' object has no attribute 'setup_title'



    Aber wie schon geschrieben das Plugin bringt auf den aktuellen neuen Boxen nix da sie überhaupt keine Sensoren haben.
    Das normale TempFancontrol geht aber und ist auch ans neue System angepasst.

  • The root cause for the crash is the ConfigListScreen in the class definition although there is no ConfigListScreen used.

    Gruss
    Dre


    Boxen (im Einsatz): DM920, DM900, DMOne
    Developer Project Merlin - we are OpenSource

  • i think this is the log for fancontrol fail



    Screen <class 'Screens.Setup.SetupSummary'>((<class 'Plugins.Extensions.FanControl2.plugin.FanControl2Test'>,), {}): <type 'exceptions.AttributeError'>
    Traceback (most recent call last):
    File "/usr/lib/enigma2/python/mytest.py", line 345, in create
    return screen(self, *arguments, **kwargs)
    File "/usr/lib/enigma2/python/Screens/Setup.py", line 33, in __init__
    self["SetupTitle"] = StaticText(_(parent.setup_title) if parent.setup_title else parent["Title"].text)
    AttributeError: 'FanControl2Test' object has no attribute 'setup_title'
    create buffer for widget 630 x 350
    create buffer for widget 600 x 500
    create buffer for widget 300 x 350
    stopService




    Then if there is no sensor how it works the fan on dm7080 is controlled wihtout plugin?

  • This is a simple error caused by the recent skin changes.


    Just add a setup title to the code like this:


    Python
    def __init__(self, session): 
                	self.skin = xxxxxx.skin
                	self.setup_title=(_("xxxxxx"))
  • I think the proper fix is to remove the not needed ConfligListScreen. I'll fix it in github this weekend.

    Gruss
    Dre


    Boxen (im Einsatz): DM920, DM900, DMOne
    Developer Project Merlin - we are OpenSource

  • dre ich hab das schon gefixt und auch noch Skinanpassungen für den neuen Systemdefault gemacht.
    Hab das Reichi auch schon geschickt zum einchecken ,weiß aber noch nicht wann er es eincheckt.
    Wenn du es einchecken möchtest ,bitte hier ist die py.


    Edit. Anhang entfernt ,ist jetzt im git.

    • Offizieller Beitrag

    Hätte man den ConfigListScreen in dem Fall nicht aufgrund völliger "Überflüssigkeit" entfernen können wäre der Fix hier das vergessene

    Code
    ConfigListScreen.__init__(self)


    im __init__ von FanControl2Test aufzurufen, dann klappt's auch mit self.setup_title :winking_face:

    mfg ,
    Reichi

  • Ja, das ist genau das, was ich oben geschrieben hatte. In der class ist definiert, dass ein ConfigListScreen benötigt wird. Dieser wird aber gar nicht verwendet und daher gibt es auch kein __init__. Das muss zweimal entfernt werden und dann ist das sauber. SetupTitle ist nur ein Workaround. Dank euren Anpassungen können nun solche Unsauberkeiten gefunden und behoben werden.

    Gruss
    Dre


    Boxen (im Einsatz): DM920, DM900, DMOne
    Developer Project Merlin - we are OpenSource

  • this is th correct crahs log



    Screen <class 'Screens.Setup.SetupSummary'>((<class 'Plugins.Extensions.FanControl2.plugin.FanControl2Monitor'>,), {}): <type 'exceptions.AttributeError'>
    Traceback (most recent call last):
    File "/usr/lib/enigma2/python/mytest.py", line 345, in create
    return screen(self, *arguments, **kwargs)
    File "/usr/lib/enigma2/python/Screens/Setup.py", line 33, in __init__
    self["SetupTitle"] = StaticText(_(parent.setup_title) if parent.setup_title else parent["Title"].text)
    AttributeError: 'FanControl2Monitor' object has no attribute 'setup_title'
    create buffer for widget 640 x 333
    create buffer for widget 340 x 373
    stopService
    [eDVBCAService] free slot 0 demux 7 for service 1:0:19:EF15:421:1:C00000:0:0:0:
    [eDVBCAService] free service 1:0:19:EF15:421:1:C00000:0:0:0:
    [eFileMonitor] 1 events queued
    [TeleText] service stopped
    [TeleText] send array('B', [1, 0, 0, 0])
    decoder state: play, vpid=-1, apid=-1
    DEMUX_STOP - pcr - ok
    DEMUX_STOP - video - ok
    VIDEO_STOP - ok
    AUDIO_STOP - ok
    DEMUX_STOP - audio - ok
    AUDIO_CONTINUE - ok
    DEMUX_STOP - ttx - ok
    start release channel timer
    [CrashlogAutoSubmit] - autostart
    stopping hotplug handler
    I/ [NetworkAgent.shutdown] :: cancelling any pending request
    [HbbTV] disconnecting callbacks
    [SPLITSCEEN] resetting
    [TeleText] autostart(1, {})
    [MP EPGImport] autostart (1) occured at 1473328894.55
    [MP EPGImport] Stop
    [EPGRefresh] Stopping Timer
    (exit code 5)
    ]]>
    </enigma2crashlog>