Page 1 of 1

could not create variable

PostPosted: Sun Dec 13, 2015 11:03 am
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

Re: could not create variable

PostPosted: Sun Dec 13, 2015 11:09 am
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

Re: could not create variable

PostPosted: Sun Dec 13, 2015 3:57 pm
by kw123
Yes you are right. Will check when I am home this afternoon.


Sent from my iPhone using Tapatalk

Re: could not create variable

PostPosted: Sun Dec 13, 2015 5:05 pm
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

Re: could not create variable

PostPosted: Sun Dec 13, 2015 5:39 pm
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

Re: could not create variable

PostPosted: Sun Dec 13, 2015 6:05 pm
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