Image for raspberry Pi ?

Asked by steffen gassmann

Hello,
I have a raspberry Pi and a smal 7" Monitor.
And I will use it to Monitoring the thz403.
Have anybody Installation this monitoring software on a raspberry Pi?
Or can anybody send me a Image for the raspberry Pi?
br
Steffen

Question information

Language:
English Edit question
Status:
Answered
For:
heatpumpMonitor Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:

This question was reopened

Revision history for this message
Robert Penz (robert-penz-name) said :
#1

Just install Debian or Ubuntu, install python 2.x from the repositories and copy the software over, install it and it should work. I don't see a differnce between a normal PC and the Raspberry Pi. You just need an USB-to-Serial converter as I believe the raspberry Pi does not have a serial interface, but I can be wrong on that point.

Revision history for this message
steffen gassmann (sgassi) said :
#2

Thanks Robert Penz, that solved my question.

Revision history for this message
steffen gassmann (sgassi) said :
#3

I have a Debian Wheezy image on the raspberry pi.
And I install (apt-get install phyton2.6) and install:
apt-get install python-serial python-rrdtool python-rrd python-setuptools rrdtool

But the package "pyrrd.rrb" are unable to install.
It is an the Image also python2.7 and python 3.
Please can you help me?
BR
Steffen Gaßmann

Revision history for this message
Robert Penz (robert-penz-name) said :
#4

do you have the error message? did you search Internet for the error message. if the error occurs during installing a Debian package you need to contact the Debian guys.

Revision history for this message
Launchpad Janitor (janitor) said :
#5

This question was expired because it remained in the 'Needs information' state without activity for the last 15 days.

Revision history for this message
Jens (jens-vnwhi) said :
#6

Hello Steffen,

any news? Have been able to solve this? I had the same Idear for my Tecalor

Thanks Jens

Revision history for this message
steffen gassmann (sgassi) said :
#7

Hello Jens,
no I haven't solve the problem.
I would like to install a gentoo in the raspberry pi.
So i can emerge the package.

But if you have a Image for the sd card, please inform me.
Tanks.
BR
Steffen

Revision history for this message
steffen gassmann (sgassi) said :
#8

I install the heatpumpMonitor on the debian wheezy Image.
When i start the heatpumpMonitor.py i become the follow error
---

pi@raspberrypi ~ $ heatpumpMonitor.py start

started with pid 2350
Traceback (most recent call last):
  File "/usr/local/sbin/heatpumpMonitor.py", line 142, in <module>
    main()
  File "/usr/local/sbin/heatpumpMonitor.py", line 138, in main
    deamon.startstop(config.getLogFile(), pidfile=config.getPidFile())
  File "/usr/local/sbin/deamon.py", line 109, in startstop
    deamonize(stdout,stderr,stdin,pidfile,startmsg)
  File "/usr/local/sbin/deamon.py", line 65, in deamonize
    if pidfile: file(pidfile,'w+').write("%s\n" % pid)
IOError: [Errno 13] Permission denied: '/var/run/heatpumpMonitor.pid'
---

This are the pid:
---
pi 2333 0.1 0.8 10892 1680 ? S 22:13 0:00 sshd: pi@pts/0
pi 2334 1.5 1.7 6180 3320 pts/0 Ss 22:13 0:01 -bash
pi 2351 0.0 0.5 4444 1112 pts/0 R+ 22:14 0:00 ps aux
---

Can anybody help me?
BR
Steffen

Revision history for this message
Robert Penz (robert-penz-name) said :
#9

Start the software as root.

Revision history for this message
steffen gassmann (sgassi) said :
#10

Sorry I can not test at the thz403.
Because we have them delivered until next year.
Is it so ok?
---

i@raspberrypi ~ $ sudo heatpumpMonitor.py start

started with pid 2359
---
pi@raspberrypi ~ $ ps aux
---

pi 2336 0.0 0.8 10012 1688 ? S 22:44 0:00 sshd: pi@pts/0
pi 2337 0.4 1.8 6180 3412 pts/0 Ss 22:44 0:01 -bash
root 2360 0.1 0.0 0 0 ? S 22:49 0:00 [kworker/0:0]
pi 2361 0.0 0.5 4444 1112 pts/0 R+ 22:50 0:00 ps aux
---
BR
Steffen

Revision history for this message
Robert Penz (robert-penz-name) said :
#11

You need to get root privileges .. As long as you have $ at prompt that's not the case.

Revision history for this message
Jens (jens-vnwhi) said :
#12

HI Steffen,
Hi Robert,

my THZ403 is already running.
I have been able to start the heatpumpMonitor.py
But I~M not sure how I get a connection via my USB-RS232 adapter. Hardware is described very well from Robert. No Problem wit h that. But:

I'm quite new with Debian and of cause Unix .. it took me a while to get it running .. same as you did now.

Could my someone help me with the USB-RS232 adapter please?
A hint where I can get informations from would be ok for me ..

Thanks Jens

Revision history for this message
steffen gassmann (sgassi) said :
#13

root@raspberrypi:/home/pi# heatpumpMonitor.py start

started with pid 2375
---
ps aux
---
pi 2348 0.3 0.8 10012 1676 ? S 23:14 0:00 sshd: pi@pts/0
pi 2349 4.7 1.7 6180 3320 pts/0 Ss 23:14 0:01 -bash
root 2364 0.3 0.8 5320 1656 pts/0 S 23:14 0:00 sudo su
root 2365 0.2 0.8 5140 1556 pts/0 S 23:14 0:00 su
root 2372 0.3 0.9 4720 1772 pts/0 S 23:14 0:00 bash
root 2376 0.0 0.5 4444 1112 pts/0 R+ 23:14 0:00 ps aux
root@raspberrypi:/home/pi#
---

Revision history for this message
Robert Penz (robert-penz-name) said :
#14

That's an other question, so please create a new entry

Revision history for this message
Robert Penz (robert-penz-name) said :
#15

What's the error message now?

Revision history for this message
Jens (jens-vnwhi) said :
#16

@Steffen
have you try to open http;//localhost

when I do an:
root@raspberrypi:/home/pi/heatpumpMonitor-0.6# python heatpumpMonitor.py start

started with pid 2403
I can't start a 2 session:
root@raspberrypi:/home/pi/heatpumpMonitor-0.6# python heatpumpMonitor.py start
Start aborded since pid file '/var/run/heatpumpMonitor.pid' exists.
even if I can't see the pid with
ps aux:

pi 2367 0.3 4.5 86092 10760 ? S 23:26 0:02 leafpad /etc/heatpumpMonitor.ini
root 2396 0.0 0.0 0 0 ? S 23:37 0:00 [kworker/0:0]
root 2405 0.0 0.4 6136 1128 pts/0 R+ 23:38 0:00 ps aux

BR Jens

Revision history for this message
steffen gassmann (sgassi) said :
#17

I haven't a erröte Message.
When I reboot there are the following Message:

pi@raspberrypi ~ $ sudo su
root@raspberrypi:/home/pi# heatpumpMonitor.py start

started with pid 2368
root@raspberrypi:/home/pi# ps aux
...

pi 2342 0.1 0.8 10012 1676 ? S 23:33 0:00 sshd: pi@pts/0
pi 2343 1.8 1.7 6180 3320 pts/0 Ss 23:33 0:01 -bash
root 2357 0.1 0.8 5320 1656 pts/0 S 23:34 0:00 sudo su
root 2358 0.1 0.8 5140 1556 pts/0 S 23:34 0:00 su
root 2365 0.1 0.9 4720 1800 pts/0 S 23:34 0:00 bash
root 2369 0.0 0.5 4444 1112 pts/0 R+ 23:34 0:00 ps aux
root@raspberrypi:/home/pi#

(If I now Start the heatpumpMonitor came the following Message:)

root@raspberrypi:/home/pi# heatpumpMonitor.py start
Start aborded since pid file '/var/run/heatpumpMonitor.pid' exists.
root@raspberrypi:/home/pi#

Revision history for this message
Jens (jens-vnwhi) said :
#18

ok same on my Raspi ..
so try to start the webbrowser and use
http://localhost

Revision history for this message
steffen gassmann (sgassi) said :
#19

Sorry Jens,
but when the applications heatpumpMonitor.py don't have a pid, I thing the application crashed after start?
I don't have a Display at the raspberry pi. I'm per SSH on the console.
So I don't can test it on the browser.
Please Robert help us.
BR Steffen

Revision history for this message
steffen gassmann (sgassi) said :
#20

When the raspberry boot.
You Must Login as pi and Passwort.
The you must be Root --> sudo su
Please waite 1 Minute.

root@raspberrypi:/home/pi# heatpumpMonitor.py start

started with pid 2385
root@raspberrypi:/home/pi# ps aux
...

root 2372 0.1 0.8 5320 1656 pts/0 S 01:01 0:00 sudo su
root 2373 0.1 0.8 5140 1556 pts/0 S 01:01 0:00 su
root 2380 0.1 0.9 4728 1808 pts/0 S 01:01 0:00 bash
root 2385 3.6 2.8 12196 5308 ? S 01:02 0:00 python /usr/local/sbin/heatpumpMonitor.py start
root 2386 0.0 0.5 4444 1112 pts/0 R+ 01:02 0:00 ps aux
root@raspberrypi:/home/pi#

Now are the pid 2385 startend.
BR Steffen

Revision history for this message
steffen gassmann (sgassi) said :
#21

If you don't have the pid @ ps aux
please Type:
heatpumpMonitor.py restart
It is a problem of the raspberry and the ftdi Chip.
BR Steffen

Revision history for this message
Jens (jens-vnwhi) said :
#22

@Steffen,

Of cause you are right! I Need to have the process running to See a Chart.

I Used your description and finally I got it running a minute ago.

Finally I only got it running after really plug the Raspi with my Tecalor heatpump.
Thanks for you help on this. I did learn a lot during try to get it running.

Thanks BR Jens

Revision history for this message
Robert Penz (robert-penz-name) said :
#23

How long does it take on a raspi to render the images?

Revision history for this message
Jens (jens-vnwhi) said :
#25

HI Robert,
how do we count this? Have you add a counter somewhere in your scripts, which we need to change? Or do you just need a 'feeling' value?
Thanks
Jens

Revision history for this message
Wilfried Bauer (wilfriedbauer-stgt) said :
#26

Meanwhile it works on my RasPi too. Rendering all images was not always managed within a minute, so sometimes I got warning messages in the log file. I changed the setup a bit (added humidity, no. of errors, graphs for 6 hours, 2 days, 3 days, error table, log file, error help section to the browser UI, switched to german lnguage, ...), and during these actions I removed the small graphs completely. This saves enough time to almost never reach the 60 seconds border. Meanwhile I additionally copy all data to a web server every 15 minutes, and still rendering works within 60 seconds always.
Next plan is to avoid rendering unnecessarily: e.g.in case of yearly view it's enough to build the png's once per day. This will give me enough free ressources to monitor my photovoltaic energy with RasPi as well.

Can you help with this problem?

Provide an answer of your own, or ask steffen gassmann for more information if necessary.

To post a message you must log in.