could not create variable

Posted on
Sun Dec 13, 2015 11:03 am
dnomode offline
Posts: 366
Joined: Apr 12, 2008
Location: North Georgia

could not create variable

Im started getting the following errors last night. Any ideas?

Thanks for the help

Edmond
Code: Select all
Dec 13, 2015 9:01:19 AM
  fingscan                        could not create variable  EDMONDIPHONEFREQ for iFind communication
  fingscan                        could not create variable  EDMONDIPHONEFREQ for iFind communication

Dec 13, 2015 9:02:19 AM
  fingscan                        could not create variable  EDMONDIPHONEFREQ for iFind communication

Dec 13, 2015 9:03:20 AM
  fingscan                        could not create variable  EDMONDIPHONEFREQ for iFind communication

Posted on
Sun Dec 13, 2015 11:09 am
Chameleon offline
Posts: 611
Joined: Oct 04, 2014

Re: could not create variable

Hmmm iFindstuff creates a variable with name and it looks like fingscan is trying to create the same variable without checking. We need Karl to give his opinion as to why...

Karl (kw123)?


Sent from my iPhone using Tapatalk

Posted on
Sun Dec 13, 2015 3:57 pm
kw123 offline
User avatar
Posts: 8333
Joined: May 12, 2013
Location: Dallas, TX

Re: could not create variable

Yes you are right. Will check when I am home this afternoon.


Sent from my iPhone using Tapatalk

Posted on
Sun Dec 13, 2015 5:05 pm
kw123 offline
User avatar
Posts: 8333
Joined: May 12, 2013
Location: Dallas, TX

Re: could not create variable

Actually the error is a bit more complicated:
first it tries to read the variable, if it does not succeed (try: except:) tries to create the variable, if that fails it prints the error message. and continues = ignores the iFind communication.
Code: Select all
                            try:
                                varname=  idevD.name.replace(" ","").replace("'","").encode('ascii', 'ignore').upper()+'FREQ'
                                xx= indigo.variables[varname].value
                            except Exception, e:
                                try:
                                    indigo.variable.create(varname,"99","iFindStuff" )
                                except:   
                                    self.myLog(255,"could not create variable  "+varname+" for iFind communication")
                                    continue

so the variable neither exists nor can it be created....

may be: does your original variable have special characters, or does the folder iFindStuff not exist?


Karl

Posted on
Sun Dec 13, 2015 5:39 pm
dnomode offline
Posts: 366
Joined: Apr 12, 2008
Location: North Georgia

Re: could not create variable

Ugh

Ok, I changed the name of the devices in iFindStuff and reassociated the names in Fing. IFindStuff re-created the new variables and all seems ok now. However I've had other problems with iFindStuff and Fing not identifying phones as away correctly. Im still playing with my setting and will post under a new subject if i cant figure it out.

Thanks guys.
Edmond


Sent from my iPhone using Tapatalk

Posted on
Sun Dec 13, 2015 6:05 pm
kw123 offline
User avatar
Posts: 8333
Joined: May 12, 2013
Location: Dallas, TX

Re: could not create variable

good that we clear this one up.
will add some more text to the error statement to make sure that the source is clear.


away status can become complicated: 2+ sources and with different timeouts.. It takes a while to tune this


Karl

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 0 guests