Quantcast
Channel: [EN] OpenPLi Third-Party Development
Viewing all articles
Browse latest Browse all 1688

NameError: global name 'Diseqc' is not defined

$
0
0

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

 

 


Viewing all articles
Browse latest Browse all 1688

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>