Hello Paul,

if you think it is of general interest to the group, I am posting our messages here:


Hello Ziuras (assuming its your first name),

here are three scripts, that I use for controlling parts of my heating system.

datacollect - nomen est omen: collects sensor data and writes it in a rrd-file. If the rrd-file does not exist, it creates it

fbh_ctrl - runs the control loop for the floor-heating. It reads values from the rrd, such as outside-temp, buffer-temp and VL-temp (process temp after the mixer e.g. mixed temp) and calculates the value in seconds the mixer has to be opened or closed.

hk_ctrl - runs the control loop for the wallmounted radiant heaters. Again reads temps from rrd and controls the mixer.

I suggest you go through the code and come back with questions.

This was my first perl script project, so there might be room for improvement. E.g. there is nothing in modules, like subroutines used by all three scripts, so those are just copied and pasted between the scripts.

Currently I am working on a new version in python, but this is Swip (SLOW! work in progress)

Greetings,

Martin

P.S. I have also scripts to display the rrds, so you can see what the software is doing in a graphical manner. Let me know if you are interested.

P.P.S. I have also an overview diagram of the system. If you are interested, I will translate it into English

Attachment: fbh_ctrl_01.pl
Description: Perl program

Attachment: hk_ctrl_02.pl
Description: Perl program

Attachment: datacollect13.pl
Description: Perl program

------------------------------------------------------------------------------
Learn Windows Azure Live!  Tuesday, Dec 13, 2011
Microsoft is holding a special Learn Windows Azure training event for 
developers. It will provide a great way to learn Windows Azure and what it 
provides. You can attend the event by watching it streamed LIVE online.  
Learn more at http://p.sf.net/sfu/ms-windowsazure
_______________________________________________
Owfs-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/owfs-developers

Reply via email to