Zitatfhem/fhem/FHEM/sbfspot/bin/Release
################################################################################
# ____ ____ _____ _
# / ___|| __ )| ___|__ _ __ ___ | |_
# \___ \| _ \| |_ / __| '_ \ / _ \| __|
# ___) | |_) | _|\__ \ |_) | (_) | |_
# |____/|____/|_| |___/ .__/ \___/ \__|
# |_|
#
# SBFspot.cfg - Configuration file for SBFspot.exe
# SBFspot - Yet another tool to read power production of SMA® solar inverters
# (c)2012-2014, SBF
#
# DISCLAIMER:
# A user of SBFspot software acknowledges that he or she is receiving this
# software on an "as is" basis and the user is not relying on the accuracy
# or functionality of the software for any purpose. The user further
# acknowledges that any use of this software will be at his own risk
# and the copyright owner accepts no responsibility whatsoever arising from
# the use or application of the software.
#
# SMA and Speedwire are registered trademarks of SMA Solar Technology AG
################################################################################
# SMA Inverter's Bluetooth address
# Windows: smaspot -scan
# Linux : hcitool scan
# IMPORTANT FOR SPEEDWIRE USERS: COMMENT OUT BTADDRESS (PUT # IN FRONT)
BTAddress=00:80:25:30:56:52
# SMA Inverter's Speedwire IP address
# If IP_Address is not set or is 0.0.0.0 SBFspot will try to detect the speedwire inverter by broadcast
# If IP_Address is set to a valid IP, SBFspot will try to connect directly to that IP without broadcast detection
IP_Address=0.0.0.0
# User password (default 0000)
Password=0000
# MIS_Enabled (Multi Inverter Support: Default=0 Disabled)
# +------------+-------+-------------+
# | #Inverters | NetID | MIS_Enabled |
# +------------+-------+-------------+
# | 1 | 1 | Don't Care |
# +------------+-------+-------------+
# | 1 | >1 | 0 |
# +------------+-------+-------------+
# | >1 | >1 | 1 |
# +------------+-------+-------------+
MIS_Enabled=0
# Plantname
Plantname=MyPlant
# OutputPath (Place to store CSV files)
#
# Windows: C:\Users\Public\SMAdata\%Y
# Linux : /home/pi/smadata/%Y
# %Y %m and %d will be expanded to Year Month and Day
OutputPath=/home/pi/smadata/%Y
# OutputPathEvents (Place to store CSV files for events)
# If omitted, OutputPath is used
OutputPathEvents=/home/pi/smadata/%Y/Events
# Position of pv-plant http://itouchmap.com/latlong.html
# Example for Ukkel, Belgium
Latitude=50.80
Longitude=4.33
# Calculate Missing SpotValues
# If set to 1, values not provided by inverter will be calculated
# eg: Pdc1 = Idc1 * Udc1
CalculateMissingSpotValues=1
# DateTimeFormat (default %d/%m/%Y %H:%M:%S)
# For details see strftime() function
# http://www.cplusplus.com/reference/clibrary/ctime/strftime/
DateTimeFormat=%d/%m/%Y %H:%M:%S
# DateFormat (default %d/%m/%Y)
DateFormat=%d/%m/%Y
# DecimalPoint (comma/point default comma)
DecimalPoint=comma
# TimeFormat (default %H:%M:%S)
TimeFormat=%H:%M:%S
# SynchTime (default 1 = On)
# If set to 1 the Inverter time is synchronised with pc time
# Some inverters don't have a real-time clock
SynchTime=1
# SunRSOffset
# Offset to start before sunrise and end after sunset (0-3600 - default 900 seconds)
SunRSOffset=900
# Locale
# Translate Entries in CSV files
# Supported locales: de-DE;en-US;fr-FR;nl-NL;es-ES;it-IT
# Default en-US
Locale=en-US
# Timezone
# Select the right timezone in date_time_zonespec.csv
# e.g. Timezone=Europe/Brussels
Timezone=Europe/Brussels
# BTConnectRetries
# Number of Bluetooth Connection attempts (1-15; Default=10)
BTConnectRetries=10
###########################
### CSV Export Settings ###
###########################
# With CSV_* settings you can define the CSV file format
# CSV_Export (default 1 = Enabled)
# Enables or disables the CSV Export functionality
CSV_Export=1
# CSV_ExtendedHeader (default 1 = On)
# Enables or disables the SMA extended header info (8 lines)
# isep=;
# Version CSV1|Tool SBFspot|Linebreaks CR/LF|Delimiter semicolon|Decimalpoint comma|Precision 3
# etc...
# This is usefull for manual data upload to pvoutput.org
CSV_ExtendedHeader=1
# CSV_Header (default 1 = On)
# Enables or disables the CSV data header info (1 line)
# dd/MM/yyyy HH:mm:ss;kWh;kW
# This is usefull for manual data upload to pvoutput.org
# If CSV_ExtendedHeader is enabled, CSV_Header is also enabled
CSV_Header=1
# CSV_SaveZeroPower (default 1 = On)
# When enabled, daily csv files contain all data from 00:00 to 23:55
# This is usefull for manual data upload to pvoutput.org
CSV_SaveZeroPower=1
# CSV_Delimiter (comma/semicolon default semicolon)
CSV_Delimiter=semicolon
# CSV_Spot_TimeSource (Inverter|Computer default Inverter)
CSV_Spot_TimeSource=Inverter
# CSV_Spot_WebboxHeader (Default 0 = Off)
# When enabled, use Webbox style header (DcMs.Watt[A];DcMs.Watt[B]...)
CSV_Spot_WebboxHeader=0
###########################
### SQL DB Settings ###
###########################
# SQLite
# SQL_Database (Fullpath to SQLite DB)
# Windows: C:\Users\Public\SMAdata\SBFspot.db
# Linux : /home/pi/smadata/SBFspot.db
SQL_Database=/home/pi/smadata/SBFspot.db
# MySQL
#SQL_Database=SBFspot
#SQL_Hostname=<Network Name> or <IP-address>
#SQL_Username=SBFspotUser
#SQL_Password=SBFspotPassword
Scanning ...
00:80:25:30:56:52 SMA001d STP 5000TL-20 319 SN304996319
Internals:
ADDRESS 00:80:25:30:56:52
CHANGED
DEF 00:80:25:30:56:52 60
NAME Solar
NR 1358
STATE active
TYPE SMAUtils
delayCounter 0
Readings:
Attributes:
delay 60
2016.03.08 16:12:16 1: PERL WARNING: Can't exec "/opt/fhem/smaspot/bin/Release/SMAspot": No such file or directory at ./FHEM/99_SMAUtils.pm line 293.
2016.03.08 16:12:16 3: SMAspot called
Zitat/opt/fhem/smaspot/bin/Release/SMAspot
2016.03.09 00:12:58 1: PERL WARNING: Can't exec "/opt/fhem/smaspot/bin/Release/SMAspot": Permission denied at ./FHEM/99_SMAUtils.pm line 293.
2016.03.09 00:12:58 1: PERL WARNING: Use of uninitialized value in concatenation (.) or string at ./FHEM/99_SMAUtils.pm line 293.
2016.03.09 00:12:58 3: SMAspot called
Zitatsudo chown -R fhem /opt/fhem/smaspot/bin/Release/SMAspot
sudo chmod -R 777 /opt/fhem/FHEM/sbfspot/bin/Release
Zitatsub
Get_Inverterdata
{
my $ret = "";
$ret .= qx( /opt/fhem/FHEM/sbfspot/bin/Release/ -nocsv -v );
# Log 3, "Inverter returned: $ret";
Log 3, "SMAspot called";
return $ret;
}
2016.03.09 20:46:45 1: PERL WARNING: Can't exec "/opt/fhem/FHEM/sbfspot/bin/Release/": Permission denied at ./FHEM/99_SMAUtils.pm line 293.
2016.03.09 20:46:45 3: SMAspot called
Zitat von: noanda am 09 März 2016, 20:55:44JDas glaube ich gerne, aber Du versuchst gerade ein Verzeichnis auszuführen!?Code Auswählen2016.03.09 20:46:45 1: PERL WARNING: Can't exec "/opt/fhem/FHEM/sbfspot/bin/Release/": Permission denied at ./FHEM/99_SMAUtils.pm line 293.
2016.03.09 20:46:45 3: SMAspot called
$ret .= qx( /opt/fhem/FHEM/sbfspot/bin/Release/SBFspot -nocsv -v );
ls -l /opt/fhem/FHEM/sbfspot/bin/Release/SBFspot
Ich vermute doch ganz stark, dass die Dateien und Ordner dem falschen Benutzer und der falschen Gruppe zugeordnet sind.sudo chown -R fhem /opt/fhem/FHEM/sbfspot
http://www.fhemwiki.de/wiki/SMAWechselrichterpi@raspberrypi ~ $ ls -l /opt/fhem/FHEM/sbfspot/bin/Release/SBFspot insgesamt 1964 -rw-r--r-- 1 fhem pi 15984 Apr 1 2016 ArchData.cpp -rw-r--r-- 1 fhem pi 2155 Aug 3 2015 ArchData.h drwxrwxrwx 3 fhem pi 4096 Okt 6 12:17 bin -rw-r--r-- 1 fhem pi 11202 Dez 21 2014 Bluetooth.cpp -rw-r--r-- 1 fhem pi 3160 Aug 20 2014 bluetooth.h -rw-r--r-- 1 fhem pi 2061 Aug 15 2015 boost_ext.cpp -rw-r--r-- 1 fhem pi 1761 Aug 15 2015 boost_ext.h -rw-r--r-- 1 fhem pi 6391 Mai 31 22:56 CreateMySQLDB.sql -rw-r--r-- 1 fhem pi 203 Aug 20 2014 CreateMySQLUser.sql -rw-r--r-- 1 fhem pi 5921 Sep 22 2014 CreateSQLiteDB.sql -rw-r--r-- 1 fhem pi 43737 Feb 28 2016 CSVexport.cpp -rw-r--r-- 1 fhem pi 2559 Aug 20 2014 CSVexport.h -rw-r--r-- 1 fhem pi 35855 Aug 20 2014 date_time_zonespec.csv -rw-r--r-- 1 fhem pi 9882 Feb 28 2016 db_MySQL.cpp -rw-r--r-- 1 fhem pi 12883 Apr 4 2016 db_MySQL_Export.cpp -rw-r--r-- 1 fhem pi 1903 Aug 20 2014 db_MySQL_Export.h -rw-r--r-- 1 fhem pi 3887 Aug 3 2015 db_MySQL.h -rw-r--r-- 1 fhem pi 11984 Feb 28 2016 db_SQLite.cpp -rw-r--r-- 1 fhem pi 10104 Apr 4 2016 db_SQLite_Export.cpp -rw-r--r-- 1 fhem pi 1906 Aug 20 2014 db_SQLite_Export.h -rw-r--r-- 1 fhem pi 3919 Aug 3 2015 db_SQLite.h -rw-r--r-- 1 fhem pi 2065 Apr 25 2015 endianness.h -rw-r--r-- 1 fhem pi 6234 Mär 2 2016 Ethernet.cpp -rw-r--r-- 1 fhem pi 2675 Aug 20 2014 Ethernet.h -rw-r--r-- 1 fhem pi 2493 Feb 28 2016 EventData.cpp -rw-r--r-- 1 fhem pi 4482 Feb 24 2015 EventData.h -rw-r--r-- 1 fhem pi 12089 Feb 28 2016 makefile -rw-r--r-- 1 fhem pi 6509 Feb 28 2016 misc.cpp -rw-r--r-- 1 fhem pi 2631 Feb 28 2016 misc.h drwxrwxrwx 3 fhem pi 4096 Okt 6 12:17 obj -rw-r--r-- 1 fhem pi 2252 Feb 28 2016 oslinux.h -rw-r--r-- 1 fhem pi 1726 Aug 20 2014 osselect.h -rw-r--r-- 1 fhem pi 2550 Feb 28 2016 oswindows.h -rw-r--r-- 1 fhem pi 3146 Aug 3 2015 Rec40S32.h -rw-r--r-- 1 fhem pi 9798 Feb 28 2016 SBFNet.cpp -rw-r--r-- 1 fhem pi 2982 Jul 30 2015 SBFNet.h -rwxrwxrwx 1 fhem pi 244639 Mär 25 2016 SBFspot -rw-r--r-- 1 fhem pi 5708 Feb 28 2016 SBFspot.cbp -rwxrwxrwx 1 fhem pi 5976 Okt 6 12:42 SBFspot.cfg -rw-r--r-- 1 fhem pi 118611 Mai 31 23:01 SBFspot.cpp -rw-r--r-- 1 fhem pi 23552 Jul 11 2014 SBFspot_Empty.db -rw-r--r-- 1 fhem pi 20102 Mai 20 22:22 SBFspot.h -rw-r--r-- 1 fhem pi 22926 Feb 28 2016 SBFspot.vcxproj -rw-r--r-- 1 fhem pi 5963 Feb 28 2016 SBFspot.vcxproj.filters -rw-r--r-- 1 fhem pi 1730 Aug 20 2014 SQLselect.h -rw-r--r-- 1 fhem pi 12335 Aug 20 2014 strptime.cpp -rw-r--r-- 1 fhem pi 6241 Feb 28 2016 sunrise_sunset.cpp -rw-r--r-- 1 fhem pi 1927 Feb 28 2016 sunrise_sunset.h -rw-r--r-- 1 fhem pi 4559 Feb 28 2016 TagDefs.cpp -rw-r--r-- 1 fhem pi 3425 Aug 20 2014 TagDefs.h -rw-r--r-- 1 fhem pi 194295 Jul 13 2015 TagListDE-DE.txt -rw-r--r-- 1 fhem pi 186428 Jul 13 2015 TagListEN-US.txt -rw-r--r-- 1 fhem pi 196725 Jul 13 2015 TagListES-ES.txt -rw-r--r-- 1 fhem pi 200214 Jul 13 2015 TagListFR-FR.txt -rw-r--r-- 1 fhem pi 194914 Jul 13 2015 TagListIT-IT.txt -rw-r--r-- 1 fhem pi 189000 Jul 13 2015 TagListNL-NL.txt -rw-r--r-- 1 fhem pi 296 Sep 9 2014 Update_300_301_MySQL.sql -rw-r--r-- 1 fhem pi 277 Sep 9 2014 Update_300_301_SQLite.sql -rw-r--r-- 1 fhem pi 967 Sep 22 2014 Update_30x_302_MySQL.sql -rw-r--r-- 1 fhem pi 1007 Sep 22 2014 Update_30x_302_SQLite.sql |
sudo /opt/fhem/FHEM/smaspot/bin/Release/SBFspot -nocsv -v
SBFspot V3.3.1
Yet another tool to read power production of SMA solar inverters
(c) 2012-2016, SBF (https://sbfspot.codeplex.com)
Compiled for Linux (LE) 32 bit
Commandline Args: -nocsv -v
Reading config '/opt/fhem/FHEM/smaspot/bin/Release/SBFspot.cfg'
Sun Dec 25 11:54:53 2016: INFO: Starting...
sunrise: 08:11
sunset : 16:18
Connecting to 00:80:25:2A:17:5E (1/10)
Initializing...
SUSyID: 125 - SessionID: 883046523 (0x34A2387B)
SMA netID=01
Serial Nr: 7F8DE92A (2140006698)
BT Signal=81.6%
Logon OK
Local Host Time: 25/12/2016 11:54:55
Plant Time : 25/12/2016 11:54:56 (+1 sec)
TZ offset : 3600 sec - DST: Off
Last Time Set : 23/12/2016 09:28:17
Adjusting plant time...
New plant time is now 25/12/2016 11:54:55
SUSyID: 235 - SN: 2140006698
Device Name: SN: 2140006698
Device Class: Solar-Wechselrichter
Device Type: SB 3000TLST-21
Software Version: 02.51.27.R
Serial number: 2140006698
SUSyID: 235 - SN: 2140006698
Device Status: Ok
SUSyID: 235 - SN: 2140006698
Device Temperature: 24.5°C
SUSyID: 235 - SN: 2140006698
GridRelay Status: Geschlossen
SUSyID: 235 - SN: 2140006698
Pac max phase 1: 3000W
Pac max phase 2: 3000W
Pac max phase 3: 3000W
SUSyID: 235 - SN: 2140006698
Energy Production:
EToday: 0.086kWh
ETotal: 7642.500kWh
Operation Time: 12702.68h
Feed-In Time : 12195.02h
SUSyID: 235 - SN: 2140006698
DC Spot Data:
String 1 Pdc: 0.058kW - Udc: 338.61V - Idc: 0.173A
String 2 Pdc: 0.000kW - Udc: 0.00V - Idc: 0.000A
SUSyID: 235 - SN: 2140006698
AC Spot Data:
Phase 1 Pac : 0.024kW - Uac: 226.37V - Iac: 0.106A
Phase 2 Pac : 0.000kW - Uac: 0.00V - Iac: 0.000A
Phase 3 Pac : 0.000kW - Uac: 0.00V - Iac: 0.000A
Total Pac : 0.024kW
SUSyID: 235 - SN: 2140006698
Grid Freq. : 49.97Hz
SUSyID: 235 - SN: 2140006698
Current Inverter Time: 25/12/2016 11:54:55
Inverter Wake-Up Time: 25/12/2016 08:37:40
Inverter Sleep Time : 25/12/2016 11:54:55
********************
* ArchiveDayData() *
********************
startTime = 585EFDF0 -> 25/12/2016 00:00:00
**********************
* ArchiveMonthData() *
**********************
startTime = 584002B0 -> 01/12/2016 12:00:00
Reading events: 2016-Dec-01
Sun Dec 25 11:54:58 2016: INFO: Done.