Here are my notes on getting this running on Raspberry Pi.
I’m not an expert and this involved a fair amount of fiddling and head scratching.
This may be of use to others.
PV Output Integration Service Installation notes:
- I used a Raspberry Pi 2 B which has wired ethernet port.
- Install latest Raspbian image (full image)
- Boot and use raspi-config to enable SSH and change password
I installed the files in /home/pi/pvoutput (subdirectories: bin, conf, data, doc, lib, logs, src)
Installation
- Extract or upload the following directories from the installation -
logs
conf
data
lib
bin
- Execute chmod 755 bin/pvoutput.sh
Patch librxtx library
You need to patch the librxtx library with a newer version.
https://www.raspberrypi.org/forums/viewtopic.php?t=12452#p287206
Install Lib:
sudo apt-get install librxtx-java
Copy the file librxtxSerial.so from /usr/lib/jni/
to: /home/pi/pvoutput/lib/Linux/i686/librxtxSerial.so
(or create a symbolic link as in the forum post)
(On startup you will get a version mismatch error but it seems to work anyway.)
API Setup
sudo nano conf\pvoutput.ini and replace the values shown in red below
Request an API key from the pvoutput.org ‘Settings’ menu option
key=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Your System Id is shown in the pvoutput.org ‘Settings’ menu option
sid=0
CurrentCost Configuration
Open conf\currentcost.ini and replace the port, rate and channels properties with your current cost device settings. (these were OK)
Example 1 - monitor whole house consumption
sensor=0
direction=in
Running
The install instructions say:
Run bin/pvoutput.sh to start the process. (but this didn’t work… I needed to:
cd ~/pvoutput/bin
./pvoutput.sh (or bash pvoutput.sh)
(sudo nano /etc/rc.local #add these lines to start automatically)
(may need to Alt-F3 to get a new shell)
startx (to start desktop)
localhost:8888 to view config page
change Log file location to …/logs
My CurrentCost meter is in F so I needed to change this:
In currentcost.ini add / uncomment
temperature-unit=F
This means temperature is recorded in fahrenheit on the device, this converted to C and uploaded. Set your temperature as F in PVOutput account settings to display temperature in F.
Reboot system