Page 1 of 1
Calibration values
Posted: Fri Dec 24, 2010 11:31 am
by richard naninck
Sorry if this has been asked before. Couldn't find it..
Since the plugwise order is still underway and I am already setting up I have a question about the calibration values.
Do the values change or are they steady as per Circle. I ask this because I saw in the .py code that the calibration value is polled every time a power request is done whereas I would expect to poll the cal values only once and keep them global for next Power info polls.
Thnx
Re: Calibration values
Posted: Fri Dec 24, 2010 12:16 pm
by LostDreamer
I remember reading about that.
I believe the values are steady, but it was in the script the way it is because of 'lazyness'
Regards,
LostDreamer
Re: Calibration values
Posted: Fri Dec 24, 2010 12:52 pm
by Bwired
I'm not sure also, need to test this still.
But you need to make the function anyway so you can check if the values chnage over a period and adjust accordingly the call of the function.
Re: Calibration values
Posted: Fri Dec 24, 2010 5:24 pm
by richard naninck
OK, I will see it for myself once I got the order (which is not going to happen before X-Mas anymore I guess

)
In my current setup I get the values once and store them into a HouseBot property and get them from HouseBot each time I do a Power calc. I don't have a clue how fast all of the serial traffic is going to be so I created a continuous loop which addresses one Circle each six seconds. Circle 1 will be addressed again 9 times (9 Circles) 6 seconds after the first poll. I don't want to send Decice Info requests if they are not necessary.
Now working on the .py pow() function. Don't know what it is yet and I need a similar thing in vbscript. Will figure it out though however it is kind of hard without the actual hardware..
OK pow() is to the power or ^. Easy
Now the number 468.9385193 is up. I think I will dry test this on know values from this forum.
Re: Calibration values
Posted: Fri Dec 24, 2010 6:03 pm
by Mdamen
The calibration settings are steady. They don't change after you get them out the factory.
Please note that pol was merely a prove of concept code, and that's not a realistic script/use scenario for your own software.
Re: Calibration values
Posted: Fri Dec 24, 2010 6:17 pm
by richard naninck
Funny how I was just reading that in an earlier post by you.
http://www.domoticaforum.eu/viewtopic.p ... 247#p36610
Thanks anyhow!