View unanswered posts | View active topics It is currently Sat May 18, 2013 4:58 pm



Reply to topic  [ 3 posts ] 
 turn off logging in a script 
Author Message

Joined: Sep 10, 2009
Posts: 88
Location: East Hills, NY
Post turn off logging in a script
Hi,

I have an applescript (below) that adjusts my thermostats and it is creating a log every minute. Is there something I can add to the script that would turn off the logging?

Thanks,
Rob


-- Balance Thermostats to Cool

tell application "IndigoServer"
if value of variable "tempDownstairs" is greater than value of variable "tempSet" then
set cool setpoint of device "Thermostat - A/C" to value of variable "tempSetBal"
else if value of variable "tempDownstairs" is less than value of variable "tempSet" then
set cool setpoint of device "Thermostat - A/C" to value of variable "tempSet"
else if value of variable "tempDownstairs" is equal to value of variable "tempSet" then
set cool setpoint of device "Thermostat - A/C" to value of variable "tempSetBal"
end if
end tell

_________________
Rob Z


Wed May 30, 2012 6:24 pm
Profile
Site Admin
User avatar

Joined: Jan 27, 2003
Posts: 11679
Location: Texas
Post Re: turn off logging in a script
Try using the transaction 'suppress logging' like this:

Code: Select all
tell application "IndigoServer"
   with transaction
      transaction suppress logging
      if value of variable "tempDownstairs" is greater than value of variable "tempSet" then
         set cool setpoint of device "Thermostat - A/C" to value of variable "tempSetBal"
      else if value of variable "tempDownstairs" is less than value of variable "tempSet" then
         set cool setpoint of device "Thermostat - A/C" to value of variable "tempSet"
      else if value of variable "tempDownstairs" is equal to value of variable "tempSet" then
         set cool setpoint of device "Thermostat - A/C" to value of variable "tempSetBal"
      end if
   end transaction
end tell


Note, however, that if it really is sending out INSTEON commands every minute you might want to optimize it or increase the delay somehow. Depending on how many modules you have, that might be increasing the INSTEON traffic high enough that collisions will be more likely.

_________________
Image


Wed May 30, 2012 9:30 pm
Profile WWW

Joined: Sep 10, 2009
Posts: 88
Location: East Hills, NY
Post Re: turn off logging in a script
Thanks - works great. I changed the timing to every 5 minutes to hopefully eliminate any collisions.

Again, amazing product and even better support. Thanks.

Rob

_________________
Rob Z


Thu May 31, 2012 8:50 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 3 posts ] 

Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.   Template designed by STSoftware.