Jump to content


LoveMyDish

Member Since 4 Nov 2019
Offline Last Active 12 Jun 2020 12:43
-----

Topics I've Started

NameError: global name 'Diseqc' is not defined

10 November 2019 - 15:19

I am attempting to write a plugin that will issue a diseqc command.  I am trying to make a plugin that will include moving the dish west / east.  I want to do this based off the active service/tuner.

 

I got much of my ideas by studying the positionersetup.py, however i don't want to ask what tuner to use, i want to use the active one.  The error tells me it has no idea what the Diseqc command is.  Where/How does the Diseqc get declared?  I thought i have all the imports.   Can someone give me a clue as to why i have hit a dead end.

 

Ps.  On another note, I might be wrong, but from me working with this a few days, I have come to believe the feid is the Tuner card that is active??  Yes No?  I hardcoded the value to 1 assuming that is tuner 1.  Am i correct ? and how might i grab the active tuner feid rather than hardcoding.

 

Here is a snippet of my code :

        self.feid = 1
        feInfo = service and service.frontendInfo()
        cur = feInfo.getTransponderData(True)
            if self.openFrontend():
                diseqcpos = 999
            self.frontendStatus = { }
            self.diseqc = Diseqc(self.frontend)    <-- Crash on this line.

 

The error I am receiving : NameError: global name 'Diseqc' is not defined

 

 


Plugin - Ability to retrieve NIB tuner configuration settings?

4 November 2019 - 15:00

I would like to make modifications to the diseqc position plugin.  I would like it to default to the Diseqc store position as setup in the Tuner configuration settings for the current signal. I would basically like to personalize the plugin allowing me to quickly nudge the satellite dish east / west, and then store the position.  The current plugin doesn't know the store position, you have to enter it.  That is not very user friendly.

 

 


Plugin Option to start when a remote key is pressed

4 November 2019 - 14:53

I'm working on a plugin.  I would like to know if there is a way to tell the plugin to start when you press a particular key on your remote.  A color key for example.

 

I would like to make a plugin that will store the satellite position to the dish mover at a push of a button. 

 

I tried this thinking it might launch when you press the red button, but it does not appear to work

 

PluginDescriptor(name="myplugin", description=_("myplugin"), where = PluginDescriptor.WHERE_CHANNEL_SELECTION_RED, fnc=main)