Comfort  Automation/ Security System Forums Home
Home Search search Menu menu Not logged in - Login | Register

Displaying SCS temp readings on CWM
 Moderated by: admin
 New Topic   Reply   Printer Friendly 
 Rate Topic 
AuthorPost
 Posted: Tuesday Jun 28th, 2011 09:14 am
   PM  Quote  Reply 
1st Post
wexfordman
UCM Pi Users
 

Joined: Monday Jan 1st, 2007
Location: Cork, Ireland
Posts: 546
Status: 
Offline

  back to top

Displaying SCS temp value in cwm.
 
Hi, having mainly been someone who gets information from this forum, rather than contributing to it, I thought it was about time I did a bit of contributing (more like, I finally managed to do something cool that works, so want to show it off :D )
 
I have recently managed to get cwm to display temp sensor readings on by comfort page (see below image).






 
I have 4 scs’s distributed in the Kitchen, Hall, Living Room and Master Bedroom. You can see the red numbers in the image above, which is actually my cwm page displaying the temp values for these sensors in each room.
 
This is what I did to get the values to display. (I am not saying this is the best method, but this is what I managed to do and get it working).
I will split the process into two stages, comfort and CWM, giving an example for the Kitchen SCS seonsor (sensor 8).
 
Comfort:-
As an example, for the kitchen SCS sensor (sensor 8)
1)      Create Counter SCSKITCHENTEMP
2)      Create response SCSKITCHENTEMP
3)      Sensor Register 8 (First scs sensor, which is the kitchen SCS) activates response SCSKITCHENTEMP
4)      Response SCSKITCHENTEMP does the following
                a.       Get SCSKITCEHNTEMP sensor value
                b.      Convert from deg F to deg C
                c.      Set counter SCSKITCHENTEMP with lastactionvalue
 
Thats it from comforts perspective, all thats left is the cwm element, which is a bit more tricky.
 
 
 
CWM Configuration
 
 
CWM uses a counter element to display the value of the relevent counter in comfort.  The config of the counter element which I used  can be seen below:-
 



 
 
The highlighted elements are as folllows
1)      Number (Counter number in comfort which you want to display, in my case kitchentemp counter)
2)      Divisor:- Convert counter value by dividing by 10 (perhaps cytech can explain this one in a bit more detail, I must admit I figured it out via trial and error)
3)      Display Value:- Quotient (option is quotient or remainder)
4)      Values:- click on box to enter value list


Displaying the Value (Value list)
This one took a bit of time. Basically cwm displays images based on the value of the counter. So if you have a value list of 1 to 38 for example (as I did with deg celcius), you must have 38 different images to reflect the value (in my case, each image was a number from 1 to 38)
This is done by clicking the values button and entering the relevent values and images required to display for each value. Fairly straight forward but a bit time consuming.
 


I hav'nt figured out how to, or what happens when the value drops below 0, and how the counter represents a negative value yet however. Will find out next winter :shock:



My next objective, if I can manage to do it are as follows:-

1) Via CWM be able to set thermostat settings (via a counter) for each scs sensor
2) Select which scs tem sensor will be master sensor for control of zone heating via cwm.
3) Be able to record min and max scs temp readings with a timestamp and display it on cwm page.


Anyway, hope this has been of interest. If anyone has any suggestions on how I could improve the above setup would appreciate it, and also if anyone would be able to clarify the divisor and quotient settings on the cwm element would be helpful, as I said, I got this via a trial and error process rather than any form of logic on my part.

Regards,
Eamon

Last edited on Tuesday Jun 28th, 2011 12:36 pm by wexfordman



 Posted: Wednesday Jun 29th, 2011 03:16 am
   PM  Quote  Reply 
2nd Post
leonchue
Cytech
 

Joined: Monday Aug 7th, 2006
Location: Singapore
Posts: 71
Status: 
Offline

  back to top

Hi,

Have you read the CWM manual already?

You can get a copy from http://www.cytech.biz/comfort_webserver_manual.html?category_id=107 . Click on the "Downloadable Files" tab and then the pdf file.

Counter section is on page 45. There is "Divisor" explanation in it. Also, Example 1 is another way to display your temperature counter, but you may have to modify some values to suit your application. ;)

Hope this helps.

Last edited on Wednesday Jun 29th, 2011 03:31 am by leonchue



 Current time is 12:29 pm
Top




UltraBB 1.172 Copyright © 2007-2014 Data 1 Systems