forked from snaptec/openWB
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
42 changed files
with
196 additions
and
265 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,17 @@ | ||
#!/bin/bash | ||
OPENWBBASEDIR=$(cd `dirname $0`/../../ && pwd) | ||
OPENWBBASEDIR=$(cd "$(dirname "$0")/../../" && pwd) | ||
RAMDISKDIR="${OPENWBBASEDIR}/ramdisk" | ||
MODULEDIR=$(cd `dirname $0` && pwd) | ||
#DMOD="EVU" | ||
DMOD="MAIN" | ||
Debug=$debug | ||
|
||
#For development only | ||
#Debug=1 | ||
|
||
if [ ${DMOD} == "MAIN" ]; then | ||
MYLOGFILE="${RAMDISKDIR}/openWB.log" | ||
MYLOGFILE="${RAMDISKDIR}/openWB.log" | ||
else | ||
MYLOGFILE="${RAMDISKDIR}/evu.log" | ||
MYLOGFILE="${RAMDISKDIR}/evu.log" | ||
fi | ||
|
||
bash "$OPENWBBASEDIR/packages/legacy_run.sh" "modules.alpha_ess.device" "counter" "${alphasource}" "${alphav123}" "${alphaip}" >>${MYLOGFILE} 2>&1 | ||
bash "$OPENWBBASEDIR/packages/legacy_run.sh" "modules.alpha_ess.device" "counter" "${alphasource}" "${alphav123}" "${alphaip}" >>"${MYLOGFILE}" 2>&1 | ||
ret=$? | ||
|
||
openwbDebugLog ${DMOD} 2 "EVU RET: ${ret}" | ||
wattbezug=$(<${RAMDISKDIR}/wattbezug) | ||
echo $wattbezug | ||
cat "${RAMDISKDIR}/wattbezug" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,18 @@ | ||
#!/bin/bash | ||
OPENWBBASEDIR=$(cd `dirname $0`/../../ && pwd) | ||
OPENWBBASEDIR=$(cd "$(dirname "$0")/../../" && pwd) | ||
RAMDISKDIR="${OPENWBBASEDIR}/ramdisk" | ||
MODULEDIR=$(cd `dirname $0` && pwd) | ||
#DMOD="EVU" | ||
DMOD="MAIN" | ||
Debug=$debug | ||
|
||
#For development only | ||
#Debug=1 | ||
|
||
if [ ${DMOD} == "MAIN" ]; then | ||
MYLOGFILE="${RAMDISKDIR}/openWB.log" | ||
else | ||
MYLOGFILE="${RAMDISKDIR}/evu_carlo_gavazzi.log" | ||
MYLOGFILE="${RAMDISKDIR}/evu.log" | ||
fi | ||
|
||
bash "$OPENWBBASEDIR/packages/legacy_run.sh" "modules.carlo_gavazzi.device" "counter" "${bezug1_ip}" >>${MYLOGFILE} 2>&1 | ||
bash "$OPENWBBASEDIR/packages/legacy_run.sh" "modules.carlo_gavazzi.device" "counter" "${bezug1_ip}" >>"${MYLOGFILE}" 2>&1 | ||
ret=$? | ||
|
||
openwbDebugLog ${DMOD} 2 "EVU RET: ${ret}" | ||
|
||
wattbezug=$(<${RAMDISKDIR}/wattbezug) | ||
echo $wattbezug | ||
cat "${RAMDISKDIR}/wattbezug" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,18 @@ | ||
#!/bin/bash | ||
OPENWBBASEDIR=$(cd `dirname $0`/../../ && pwd) | ||
OPENWBBASEDIR=$(cd "$(dirname "$0")/../../" && pwd) | ||
RAMDISKDIR="${OPENWBBASEDIR}/ramdisk" | ||
MODULEDIR=$(cd `dirname $0` && pwd) | ||
#DMOD="EVU" | ||
DMOD="MAIN" | ||
Debug=$debug | ||
|
||
#For development only | ||
#Debug=1 | ||
|
||
if [ ${DMOD} == "MAIN" ]; then | ||
MYLOGFILE="${RAMDISKDIR}/openWB.log" | ||
else | ||
MYLOGFILE="${RAMDISKDIR}/evu_json.log" | ||
MYLOGFILE="${RAMDISKDIR}/evu.log" | ||
fi | ||
|
||
bash "$OPENWBBASEDIR/packages/legacy_run.sh" "modules.openwb_flex.device" "counter" "${evuflexversion}" "${evuflexip}" "${evuflexport}" "${evuflexid}" >>${MYLOGFILE} 2>&1 | ||
bash "$OPENWBBASEDIR/packages/legacy_run.sh" "modules.openwb_flex.device" "counter" "${evuflexversion}" "${evuflexip}" "${evuflexport}" "${evuflexid}" >>"${MYLOGFILE}" 2>&1 | ||
ret=$? | ||
|
||
openwbDebugLog ${DMOD} 2 "EVU RET: ${ret}" | ||
|
||
wattbezug=$(<${RAMDISKDIR}/wattbezug) | ||
echo $wattbezug | ||
cat "${RAMDISKDIR}/wattbezug" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
<?php | ||
$url = "http://".$_GET["ip"]."/solar_api/v1/GetMeterRealtimeData.cgi?Scope=System"; | ||
$url = "http://".$_GET["ip"]."/solar_api/v1/GetMeterRealtimeData.cgi?Scope=System"; | ||
|
||
ini_set("default_socket_timeout", 5); | ||
header('Content-Type: application/json'); | ||
echo file_get_contents($url); | ||
ini_set("default_socket_timeout", 5); | ||
header('Content-Type: application/json'); | ||
echo file_get_contents($url); | ||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,18 @@ | ||
#!/bin/bash | ||
OPENWBBASEDIR=$(cd `dirname $0`/../../ && pwd) | ||
OPENWBBASEDIR=$(cd "$(dirname "$0")/../../" && pwd) | ||
RAMDISKDIR="$OPENWBBASEDIR/ramdisk" | ||
MODULEDIR=$(cd `dirname $0` && pwd) | ||
#DMOD="EVU" | ||
DMOD="MAIN" | ||
Debug=$debug | ||
|
||
#For development only | ||
#Debug=1 | ||
|
||
if [ $DMOD == "MAIN" ]; then | ||
MYLOGFILE="$RAMDISKDIR/openWB.log" | ||
MYLOGFILE="$RAMDISKDIR/openWB.log" | ||
else | ||
MYLOGFILE="$RAMDISKDIR/evu.log" | ||
MYLOGFILE="$RAMDISKDIR/evu.log" | ||
fi | ||
|
||
bash "$OPENWBBASEDIR/packages/legacy_run.sh" "modules.http.device" "counter" "${bezug_http_w_url}" "${bezug_http_ikwh_url}" "${bezug_http_ekwh_url}" "${bezug_http_l1_url}" "${bezug_http_l2_url}" "${bezug_http_l3_url}" >>$MYLOGFILE 2>&1 | ||
bash "$OPENWBBASEDIR/packages/legacy_run.sh" "modules.http.device" "counter" "${bezug_http_w_url}" "${bezug_http_ikwh_url}" "${bezug_http_ekwh_url}" "${bezug_http_l1_url}" "${bezug_http_l2_url}" "${bezug_http_l3_url}" >>"$MYLOGFILE" 2>&1 | ||
ret=$? | ||
|
||
openwbDebugLog ${DMOD} 2 "RET: ${ret}" | ||
|
||
wattbezug=$(</var/www/html/openWB/ramdisk/wattbezug) | ||
echo $wattbezug | ||
cat "${RAMDISKDIR}/wattbezug" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
#!/bin/bash | ||
OPENWBBASEDIR=$(cd $(dirname "${BASH_SOURCE[0]}")/../.. && pwd) | ||
OPENWBBASEDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd) | ||
|
||
#datenauslesung erfolgt im PV Modul | ||
cat "$OPENWBBASEDIR/ramdisk/wattbezug" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,18 @@ | ||
#!/bin/bash | ||
OPENWBBASEDIR=$(cd `dirname $0`/../../ && pwd) | ||
OPENWBBASEDIR=$(cd "$(dirname "$0")/../../" && pwd) | ||
RAMDISKDIR="${OPENWBBASEDIR}/ramdisk" | ||
MODULEDIR=$(cd `dirname $0` && pwd) | ||
#DMOD="EVU" | ||
DMOD="MAIN" | ||
Debug=$debug | ||
|
||
#For development only | ||
#Debug=1 | ||
|
||
if [ ${DMOD} == "MAIN" ]; then | ||
MYLOGFILE="${RAMDISKDIR}/openWB.log" | ||
else | ||
MYLOGFILE="${RAMDISKDIR}/evu_janitza.log" | ||
MYLOGFILE="${RAMDISKDIR}/evu.log" | ||
fi | ||
|
||
bash "$OPENWBBASEDIR/packages/legacy_run.sh" "modules.janitza.device" "counter" "${bezug1_ip}" >>${MYLOGFILE} 2>&1 | ||
bash "$OPENWBBASEDIR/packages/legacy_run.sh" "modules.janitza.device" "counter" "${bezug1_ip}" >>"${MYLOGFILE}" 2>&1 | ||
ret=$? | ||
|
||
openwbDebugLog ${DMOD} 2 "EVU RET: ${ret}" | ||
|
||
wattbezug=$(<${RAMDISKDIR}/wattbezug) | ||
echo $wattbezug | ||
cat "${RAMDISKDIR}/wattbezug" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,23 @@ | ||
#!/bin/bash | ||
OPENWBBASEDIR=$(cd `dirname $0`/../../ && pwd) | ||
OPENWBBASEDIR=$(cd "$(dirname "$0")/../../" && pwd) | ||
RAMDISKDIR="${OPENWBBASEDIR}/ramdisk" | ||
MODULEDIR=$(cd `dirname $0` && pwd) | ||
#DMOD="EVU" | ||
DMOD="MAIN" | ||
Debug=$debug | ||
|
||
#For development only | ||
#Debug=1 | ||
|
||
if [ ${DMOD} == "MAIN" ]; then | ||
MYLOGFILE="${RAMDISKDIR}/openWB.log" | ||
else | ||
MYLOGFILE="${RAMDISKDIR}/evu_json.log" | ||
MYLOGFILE="${RAMDISKDIR}/evu.log" | ||
fi | ||
|
||
openwbDebugLog ${DMOD} 2 "EVU URL: ${bezugjsonurl}" | ||
openwbDebugLog ${DMOD} 2 "Filter Watt : ${bezugjsonwatt}" | ||
openwbDebugLog ${DMOD} 2 "Filter Bezug: ${bezugjsonkwh}" | ||
openwbDebugLog ${DMOD} 2 "Filter Einsp: ${einspeisungjsonkwh}" | ||
|
||
bash "$OPENWBBASEDIR/packages/legacy_run.sh" "modules.json.device" "counter" "${bezugjsonurl}" "${bezugjsonwatt}" "${bezugjsonkwh}" "${einspeisungjsonkwh}" >>$MYLOGFILE 2>&1 | ||
bash "$OPENWBBASEDIR/packages/legacy_run.sh" "modules.json.device" "counter" "${bezugjsonurl}" "${bezugjsonwatt}" "${bezugjsonkwh}" "${einspeisungjsonkwh}" >>"$MYLOGFILE" 2>&1 | ||
ret=$? | ||
|
||
openwbDebugLog ${DMOD} 2 "RET: ${ret}" | ||
|
||
evuwatt=$(<${RAMDISKDIR}/wattbezug) | ||
echo ${evuwatt} | ||
cat "${RAMDISKDIR}/wattbezug" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,7 @@ | ||
#!/bin/bash | ||
OPENWBBASEDIR=$(cd `dirname $0`/../../ && pwd) | ||
OPENWBBASEDIR=$(cd "$(dirname "$0")/../../" && pwd) | ||
RAMDISKDIR="$OPENWBBASEDIR/ramdisk" | ||
MODULEDIR=$(cd `dirname $0` && pwd) | ||
|
||
wattbezug=$(<$RAMDISKDIR/wattbezug) | ||
echo $wattbezug | ||
cat "${RAMDISKDIR}/wattbezug" | ||
|
||
openwbModulePublishState "EVU" 0 "Kein Fehler" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,18 @@ | ||
|
||
#!/bin/bash | ||
OPENWBBASEDIR=$(cd `dirname $0`/../../ && pwd) | ||
OPENWBBASEDIR=$(cd "$(dirname "$0")/../../" && pwd) | ||
RAMDISKDIR="${OPENWBBASEDIR}/ramdisk" | ||
MODULEDIR=$(cd `dirname $0` && pwd) | ||
#DMOD="EVU" | ||
DMOD="MAIN" | ||
Debug=$debug | ||
|
||
#For development only | ||
#Debug=1 | ||
|
||
if [ ${DMOD} == "MAIN" ]; then | ||
MYLOGFILE="${RAMDISKDIR}/openWB.log" | ||
else | ||
MYLOGFILE="${RAMDISKDIR}/evu_powerdog.log" | ||
fi | ||
|
||
bash "$OPENWBBASEDIR/packages/legacy_run.sh" "modules.powerdog.device" "counter" "${bezug1_ip}" >>${MYLOGFILE} 2>&1 | ||
bash "$OPENWBBASEDIR/packages/legacy_run.sh" "modules.powerdog.device" "counter" "${bezug1_ip}" >>"${MYLOGFILE}" 2>&1 | ||
ret=$? | ||
|
||
openwbDebugLog ${DMOD} 2 "EVU RET: ${ret}" | ||
|
||
wattbezug=$(<${RAMDISKDIR}/wattbezug) | ||
echo $wattbezug | ||
cat "${RAMDISKDIR}/wattbezug" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.