Documentation about H50

Discuss Raspberry Pi / Linux development using the H1-Interface

Moderator: Peter

Documentation about H50

Postby filifjonkan » Wed Nov 05, 2014 18:54

Hi there,
This is the first post in the Raspberry subforum. I hope there will be many to come!

Just received my PI and has it connected. Most of the stuff works OK.

Now I want to start fiddling with it, settings, extra code etc. Where do I start? Is there any documentation about it?

Anxiously waiting!!
------------------------------
IVT G-line 7, Rego637, Husdata Raspberry PI H50
filifjonkan
 
Posts: 1
Joined: Tue Nov 04, 2014 07:53

Re: Documentation about H50

Postby Peter » Tue Jan 13, 2015 21:36

Hi
All people that want to login to the RPI and start looking around and customize can send me an email and I give you the login credentials.
What you will find is the Python program StatLink in the home folder. This is a quite simple program that is fetching updates from the heatpump via the built in H1 interface.
It will store data in memory every minute and upload it to Husdata every 5 minute.
At upload it will ask if some parameter such as indoor temperature should be changed and carry out the Heatpump controller update (if user has requested change via web portal)
Also if any new version is to be downloaded, an upgrade proceess will start.
Then there is some error logging and debug functions, that for example is sending Husdata a log file every midnight if errors has occured during the day.
This is to be able to fix bugs and to help users if they have problems.

We are working on an upgrade to give the users the posibility to use the internal Webserver to view datalogs.
This is based on RRDTool datalogging and graphs.

/Peter
Driver detta forum samt www.husdata.se med produkter.
Husdata onlinelogg: http://www2.husdata.se/UserInfo.asp?ID_ ... View=Pulse
Stalink logg: http://www2.husdata.se/demo
User avatar
Peter
Site Admin
 
Posts: 364
Joined: Tue Mar 14, 2006 15:30
Location: Piteå

Re: Documentation about H50

Postby rogerthn » Fri May 06, 2016 18:34

Working great :D
Peter wrote:We are working on an upgrade to give the users the posibility to use the internal Webserver to view datalogs.
This is based on RRDTool datalogging and graphs.

This would be even greater :lol:

One minor issue and one for the wish list.

Failed to update Heat curve, might not be supported on my model?

Since I now and then change my heat stop it would be nice to see the current values without the need to leave the keyboard.
If it also would be possible to update 8) 8) 8)
rogerthn
Junior
 
Posts: 11
Joined: Sat Mar 01, 2008 09:19

Re: Documentation about H50

Postby rogerthn » Thu Sep 22, 2016 18:14

Getting there slowly :lol:

Addition of lines as below on line 351 i.e. after self.sendbuf = self.sendbuf + s
Code: Select all
        ########## Custom CODE start ##########
        f = "/home/pi/data.txt"
        # Open a file
        fo = open(f, "w")
        fo.write(s)
        # Close opend file
        fo.close()
        ########## Custom CODE end ############

Credits to CirruZZ in forum.m.nu

Connect to my MySQL using
Code: Select all
mysql --local-infile -h aaa.bbb.ccc.ddd -u StatLink -p husdata


Create table test01 and load data.txt, SID = 50 for all my lines so we skip it.
Code: Select all
create table test01 ( ID text, Value text, created TIMESTAMP);
LOAD XML LOCAL INFILE 'data.txt' INTO TABLE test01 ROWS IDENTIFIED BY '<StatItem>';


select * from test01; :D
Code: Select all
+------+-------+---------------------+
| ID   | Value | created             |
+------+-------+---------------------+
| 0001 | 320   | 2016-09-22 19:11:54 |
| 0002 | 420   | 2016-09-22 19:11:54 |
| 0005 | 260   | 2016-09-22 19:11:54 |
| 0006 | 220   | 2016-09-22 19:11:54 |
| 0007 | 180   | 2016-09-22 19:11:54 |
| 0008 | 200   | 2016-09-22 19:11:54 |
| 0009 | 470   | 2016-09-22 19:11:54 |
| 0012 | 0     | 2016-09-22 19:11:54 |
| 3104 | 0     | 2016-09-22 19:11:54 |
| 8105 | 0     | 2016-09-22 19:11:54 |
| 0107 | 0     | 2016-09-22 19:11:54 |
| 3109 | 100   | 2016-09-22 19:11:54 |
| 3110 | 0     | 2016-09-22 19:11:54 |
| 0111 | 440   | 2016-09-22 19:11:54 |
| 2201 | 10    | 2016-09-22 19:11:54 |
| 0203 | 200   | 2016-09-22 19:11:54 |
| 2204 | 20    | 2016-09-22 19:11:54 |
| 0205 | 380   | 2016-09-22 19:11:54 |
| 0208 | 600   | 2016-09-22 19:11:54 |
| 1A01 | 0     | 2016-09-22 19:11:54 |
| 1A02 | 0     | 2016-09-22 19:11:54 |
| 1A03 | 0     | 2016-09-22 19:11:54 |
| 1A04 | 0     | 2016-09-22 19:11:54 |
| 1A06 | 0     | 2016-09-22 19:11:54 |
| 1A07 | 60    | 2016-09-22 19:11:54 |
| 1A20 | 0     | 2016-09-22 19:11:54 |
+------+-------+---------------------+
26 rows in set (0.01 sec)


I've been able to identify some IDs but not all.
Can you please help me Peter?
rogerthn
Junior
 
Posts: 11
Joined: Sat Mar 01, 2008 09:19

Re: Documentation about H50

Postby Husdata » Tue Nov 22, 2016 18:53

All info about ID:s can be found in the H1 development manual in our download section.
Husdata
Site Admin
 
Posts: 22
Joined: Tue Mar 14, 2006 11:38


Return to H1 and Raspberry Pi

Who is online

Users browsing this forum: No registered users and 1 guest

cron