Jump to content


Photo

NameError: global name 'Diseqc' is not defined


  • Please log in to reply
1 reply to this topic

#1 LoveMyDish

  • Senior Member
  • 27 posts

0
Neutral

Posted 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

 

 



Re: NameError: global name 'Diseqc' is not defined #2 LoveMyDish

  • Senior Member
  • 27 posts

0
Neutral

Posted 10 November 2019 - 15:26

Sorry, feel like an idiot on the error.  It was a class declaration in the file.  For some reason, i missed it when i searched on 'Diseqc' 

 

However, i am still curious as to my question on the feid...

 

Thanks.


Edited by LoveMyDish, 10 November 2019 - 15:27.



1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users