Husdata is developing solutions for heating system owners looking for advanced functionality in data collection, presentation and monitoring .
We supply gateways for you heat pump for it to communicate with home automation system, Husdata’s online services or the StatLink Windows software.
Access Husdata.se and download the latest StatLink setup file. Run the Setup file on your computer.
The standard installation directory is C: \StatLink but you can choose another if you want.
General about settings in StatLink
Storing historical data
There are numerous ways to store information about how your heating system is performing.
This chapter is describing how this can be achived in different ways.
Flat file DB, Stor e detail data to local disc
The logging format called Flatfile DB is a simple file based database that is used by StatLink to present its line chart diagrams.
The Flatfile DB is enabled by default when Statlink is installed.
Here are some options described.
Modify DB settings
Enter the setup menu and select the ”DB / Logging” section.
Here you can change how often you want to write data. Default is every 2 minutes. Notice that a higher resolution will take more disk space.
If you logg all temperatures every 2 minutes the DB size will increase aprox. 100kB per day or 36Mb per year
Enable / Disable sensors and objects
You can choosewitch object’s informationto stor ein this log in the Monitored objects tab.
Select witch sensors you want to log.
Storing daily summary to local disc
In different views of StatLink you can view information collected since midnight. (See the ”sensor table” chapter)
StatLink has a flexible way to log this information and both the intervals, contents and formats are customisable using the Actions and Templatesfeatures .
StatLink is preconfigured with an “Action” that is storing Intraday information at 00: 00every night for longterm reporting/calculation of historical informatino . A new row of data is added in the tab separated file “DayRpt.csv” witch can be opened and worked with in MS Excel.
In the StatLink directory there is a template file called “tDayRpt.txt”. The output file is generated from this template. Edit this file to change the contents and layout of the report. Please note that all stored information is in Integers and has to be devided by ten to get the correct information. For example, the temperature 22.7 degrees is stored as the number 227.
Runtime is stored in seconds and electri cal consumption i watt hours.
StatLink has the possibility to schedule sending of emails containing reports. With use of a template-file you configure the layout and conten ts of the report. To make this work you must configure your email account settings in StatLink and also configure “Actions” for an email sending event
To setup the layout and content ts of the reports you have to configure report templates. The way this is working is that you enter ”Tags”in the report template in positions where you want to present the information. When the template I processed by StatLink the tag is replaced by the actual
data for output in the report. Reports are generated when StatLink I running an ”Action” of type”Make Report”.
Please see the chapter about Actionsfor more information.
In theStatLink program directory there are someexamples of report templates that youcan view and customize for your own needs .
A HTML template suitable to use for email reports or presentation on
your homepage .
A TAB separated template suitable to store data that is importable into
This is a list of available Tags to use in the report templates.
%Time% Time now (eg. 10:35:55)
%Date% Date now (eg. 2005 -01- 01)
%YesterDate% Yesterdays date (2005-05-04)
%TotalkWh% Summaryof theintraday electrical consumption.
%NewRow% Inserts LF andCR to generate row change .
%SysID_X _Name% Shows the name of an Monitored Object
X=SysID. The table of all SysID’s is found in appendix B.
%SysID_X _Value% Current value in text. (eg. 10.2c, On/Off)
%SysID_X _Stat1% Intrad aystatisti cs, see chapter about the Objects table .
%SysID_X _Stat2% Intraday statistics, see chapter about the Objects table .
%SysID_X _Stat3% Intraday statistics, see chapter about the Objects table .
%SysID_X _tValue% Sam e as above but is presenting numeric values. (102, 1/0)
Example of how you can build an templete…
Report generated %Date% %Time%
The Radiator temperature is: %SysID_1 _Value%.
The outdoor temperature is: %SysID_2_Value% and the Max temp today is:
The generated report will then look likt this …
The Radiator temperature is: 33.4c.
The outdoor temperature is: -2.3c and theMax temptoday are:1.2c.
There is a functionality in StatLink to schedule events called Actions.
StatLink users manual
Things that can be automated is Sending emails, Take pictures and producing reports. You set up the Actions under the section [Actions] in the statlink.ini file.
Up to 9 Actions can be configured (1 -9).
Example of how to use Actions
Action to send an email containing an report of the yesterday data.
This event will generate a report based on the template ”tWebRpt.html” and send it by email at the
time 00:00 every day.
Act1-Name=Send Email report every day
If you have a Web server and want to publish a page with info.
This event will generate a report based on the template ”tWebRpt.html” and wrie the result in the file
”WebInfo.html” every minute.
”Mode=Replace” means that the result fle is overwritten every time.
Act2-Name=Generate a web-page every minute
If you have a Web server and want to publish a picture of StatLink.
This event will generate a screenshot of StatLink and write it into the file ScreenShot.jpg every minute. Note that the screen shot function has some limitations. For the screen shot to work, the StatLink software cannot be minimized and no other windows should block the StatLink windows
Act3-Name=Make screenshot every minute
Action to log historical data in Excel importable format.
This event wil generate a report based on the file ”tCsv.txt” and write the result into the file ”Minutelogg.csv” every minute.
”Mode=Append” means that the result file will not overwritten. Instead it will be appended with new
Act4-Name=Save data to CSV file every minute
StatLink users manual
This selecion will launch the setup dialogue. Select setup-section by clicking an entry int the list at the right. If you placethe mouse pointer over an option text you get additional information of how to use the
Here is an overview of available setup options.
Select the Volt and Fuse to get correct calculation och power consumption.
Select options for outgoing email used in actions for report sendings.
Normally you don´t have to fill i n the username and password
o Interface 1
Select thetype of interface and assign it to a Com-port.
H10 Rego6xx, H14 Thermia.
o Interface 2
Select the type of interface and assign it to a Com-port.
S0 can be assigned to the same Com-port as H10 or H14 interfaces.
- Log / DB
o Flat file DB
See Flat file DB chapter . DB Used for line diagrams.
- Husdata Online
o If you have an active account on the Husdata Online system you can enable it here.
Enter the username and password you got from Husdata.
- Automated Actions
o See chapter ”Automated Actions” for more info
- Sensor Settings
o See chapter ”Automated Actions” for more info
- Pulse Views
o Pulse view 1
A Pulse view is a realtime view of your heating system or other environment.
You can design your own Pulse view or modify the current.
See the the “Pulse view designer” chapter formore info
o Pulse view 2
Up to two views can be configured
Every midnight the Intraday statistics is automatically reset.
Here you can manually reset the statistics for the day.
Exit from StatLink
In this menu you can manually run your configured actions.
This is useful to verify that your emails are sent or reports are generated as expected.
This is a view showing all the enabled objects. The view is showing both current status and accumulated intraday information.
Descrition of the columns.
ID The SysID of the sensor or object.
Source The source of the data
Name The n ame of the object (Changeble under the [Sensors] section of statlink.ini)
Type Type of object / data
Value Current value / status of the object
Changed The time the object has changed value orstate
Stat1-3 Accumulated intraday statistics. See table below
Type of object Stat1 Stat2 Stat3
Temp Average temp Max temp Min temp
Status El consumpt. in kWh Run time Status changes
EL- Meter Acc. kWh – –
This view is showing the time and info of the last 30 status changes of all objects.
To view the stored data in line chartsselect the menu Reports and option Line diagram. Now a selector dialog i shown. Please select all objects to include and the period of time.
Click on ”Generate” and then chart will be displayed.
For zoom, hold the Right mouse button while moving the mouse right or left. For movein time , hold the Left mouse button while moving the mouse right or left.
The Pulse view gives you a real-time picture with information from different objects. It is fully editable with the possibility to Add, Remove, Rename and change properties of all the displayed objects. You can even replace the background picture and create your complete personalized view from scratch.
If you put the mouse pointer over an object it will show additional information with intraday statistics.
To show a line diagram with the last 24 hours of historical data, click on an object. If nothing happens while clicking an object it is because the object is not enabled for logging to the Flat file DB. See the Appendix A for more information.
To enter the editor you just double click anywhere on the Pulse picture.
Now a blow dot is shown at every editabl e object.
To change properties of an object, click on the blue dot.
To add a new object youright-click anywhere in the picture.
Button –Move Click on this and place the object with the left mosue-button.
When you are done you exit the move mode with the right bouse button
Button -Delete this Will delete the selected object
Button -Delete all Will delete all objects from the view
Button -Ok Confirm changes
Button -Cancel Cancel changes
Field 1 Enter the name / display text for the object
Field 2 Select type of object (se table below)
Field 3 Option 1 for the object (se table below)
Field 4 Option 2 for the object (se table below)
Field 5 Option 3 for the object (se table below)
Bind to SysID Enter SysID number to bind this object to (see Monitored Objects table vies)
Table of object types and properties
Name Descript Option1 Option2 Option3
Temperature Small box showing temp. Show text Trend arrow
Pump Animated pump symbol Show text Flow dir.
Compressor Animated compressor symbol Show text
Heater Animated additional heater symbol Show text Step 1, 2
Switch valve Animated switch valve symbol Show text
Label Text label Font size Style Text colour
Info display Special inform display for Rego
Power display Intraday kWh, Watt and Amp disp
Led LED Status indicator Text colour
To exit the Edit mode, just double click on the picture again.