control4user007 Posted May 3, 2009 Share Posted May 3, 2009 How would i use the CURRENT_TEMP under the weather bug driver to trigger an event? e.g. While the CURRENT_TEMP is greater than 80 F then turn on attic fan. i have the weather bug driver working properly, but i am not sure how to program this in. thanks for any help in advance. Link to comment Share on other sites More sharing options...
henniae Posted May 3, 2009 Share Posted May 3, 2009 1. you would have to setup a scheduled event to get the weather bug current forecast.2. When the forecast was received you would use the CURRENT_TEMP event under weather bug to control the fan. Link to comment Share on other sites More sharing options...
control4user007 Posted May 3, 2009 Author Share Posted May 3, 2009 Thanks henniae. 1) What would the programming under the CURRENT_TEMP look like. I can see how to do a conditional event, but there is only an option to have the CURRENT_TEMP either (!=) or (=) a certain value. there is no (<) or (>) option. does this mean that i have to have a conditional event for every possible temperature? 2) also, when i program in the degree that i want the fan to kick on at i could not get it to work even when i had the temp set to (=) something. do i have to carry the number for the temperature out to 1 decimal place? e.g. 60.5 or just 60. thanks again. Link to comment Share on other sites More sharing options...
RyanE Posted May 3, 2009 Share Posted May 3, 2009 That's because the CURRENT_TEMP is a *string* variable.If you want to use it as a number, it (or an additional variable) would have to be created as a number, an then have that variable's value set when CURRENT_TEMP is set in the Lua code.RyanE Link to comment Share on other sites More sharing options...
control4user007 Posted May 3, 2009 Author Share Posted May 3, 2009 I am pretty new at composer. How would i do this?I know how to create a number variable, but how would i have the variables value set when the CURRENT_TEMP is received? and what is Lua code?thanks. Link to comment Share on other sites More sharing options...
dogdvr Posted May 3, 2009 Share Posted May 3, 2009 Just guessing from Ryan's post but he mentions LUA code which I take to mean, that you would have to edit the driver in driverworks to make this work.I don't think this can be done from composerHE Link to comment Share on other sites More sharing options...
RyanE Posted May 4, 2009 Share Posted May 4, 2009 Correct. The driver itself would need to be modified.RyanE Link to comment Share on other sites More sharing options...
control4user007 Posted May 4, 2009 Author Share Posted May 4, 2009 Could you give me an example of what the lua code would look like.I can see the .c4i files under the "composer" folder in the "program files" folder. can i open up the weatherbug one in a text editor and edit it that way?if not then i will send the example to my dealer and see if he can do it for me. thanks. Link to comment Share on other sites More sharing options...
dogdvr Posted May 4, 2009 Share Posted May 4, 2009 Edit*This might be the time for your dealer to step inBrent Link to comment Share on other sites More sharing options...
RyanE Posted May 4, 2009 Share Posted May 4, 2009 I don't provide end-user support for the Weatherbug driver.Writing DriverWorks drivers is beyond the scope of a forum post or two.If your dealer wants to post the question on Control4's Dealer Forums, I could possibly post an example, where many Control4 dealers would benefit from the post.Sorry.RyanE Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.