Moved to: http://www.enerserve.eu/en/service/smartpi.htmlhttp://www.enerserve.eu/en/service/smartpi.html
Umgezogen nach: http://www.enerserve.eu/de/service/smartpi.html
The following manual is only for the old SmartPi version 1. If you have a SmartPi 2.0 or higher, please use the link above.
Connect the SmartPi following scheme in order to transform your Raspberry Pi into a full functional smart meter:
Please note: The arrow on the current sensor shows the current flow in production direction. If the sensor is applied conversely, consumption appears negative. Turn the sensor or change the value of change_current_direction
in the configuration file from 0 to 1.

Connection for split core current sensors

Connection for voltage measurement
Danger. Please note that only persons with the appropriate training and expertise are allowed to connect the voltage measurement. Work on mains voltage is very dangerous.
All other can change the value of measure_voltage
to 0 and set the value voltage
manually.
After installation type http://<ipaddress:1080>
in your web browser.
You see the startpage with actual values and a linechart of power distribution.
Configuration file:
The configuration of the SmartPi is stored in the file /etc/smartpi and looks like the following:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 |
[base] serial="smartpi160812345" name="House" [location] lat=52.3667 lng=9.7167 [database] dir="/var/smartpi/db" file="smartpi.rrd" [device] i2c_device="/dev/i2c-1" shared_dir="/var/tmp/smartpi" shared_file="values" power_frequency=50 measure_voltage_1=1 measure_voltage_2=1 measure_voltage_3=1 voltage_1=230 voltage_2=230 voltage_3=230 change_current_direction_1=0 change_current_direction_2=0 change_current_direction_3=0 [ftp] ftp_upload=1 ftp_server="ftp.enerserve.eu" ftp_user="test" ftp_pass="test" ftp_path=smartpi/ [csv] decimalpoint=, timeformat=2006-01-02 15:04:05 [webserver] port=1080 docroot="/var/smartpi/www" [umts] umts=0 umts_apn="" umts_pin="" umts_username="" umts_password="" |
Description:
serial | Serial number of SmartPi (will be send in JSON-File) |
name | Name of SmartPi (will be send in JSON-File) |
lat, lng | Location (will be send in JSON-File) |
[database] dir, file |
Path and location of the integrated rrd database |
i2c_device | Device of the I2C |
shared_dir, shared_file | Location of the file for sharing actual values to other processes |
power_frequency | Frequency of the grid (important for right values) |
measure_voltage | If it is 1 the voltage will be measured. If it is 0 the SmartPi uses the listed voltage in [voltage] |
change_current_direction | If the value is 1 the power measurement will be inverted |
ftp_upload | If value is 1 ftp upload of csv-file is enabled. If value is 0 the program will do nothing. |
ftp_server, ftp_user, ftp_pass | Login details from the ftp-server. (for later use) |
ftp_path | Directory path for the SmartPi csv files. The last directory is the serial number. |
[csv] decimalpoint, timeformat |
Set the decimal separator and timeformat for the csv file. |
port | Port of the integrated webserver |
docroot | Document root of the integrated webserver |
[umts] | Huawei E3131 supported |
umts | 1=active |
umts_apn | APN |
umts_pin | Your PIN |
umts_username | APN username |
umts_password | APN password |