could not create variable

dnomode
Posts: 363
Joined: Sat Apr 12, 2008 11:48 pm
Location: North Georgia

could not create variable

Post by dnomode »

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
Chameleon
Posts: 611
Joined: Sat Oct 04, 2014 9:50 am

Re: could not create variable

Post by Chameleon »

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
User avatar
kw123
Posts: 8705
Joined: Sun May 12, 2013 4:44 pm
Location: Dallas, TX
Contact:

Re: could not create variable

Post by kw123 »

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


Sent from my iPhone using Tapatalk
User avatar
kw123
Posts: 8705
Joined: Sun May 12, 2013 4:44 pm
Location: Dallas, TX
Contact:

Re: could not create variable

Post by kw123 »

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
dnomode
Posts: 363
Joined: Sat Apr 12, 2008 11:48 pm
Location: North Georgia

Re: could not create variable

Post by dnomode »

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
User avatar
kw123
Posts: 8705
Joined: Sun May 12, 2013 4:44 pm
Location: Dallas, TX
Contact:

Re: could not create variable

Post by kw123 »

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
Post Reply

Return to “iFindStuff”