Skip to content

Commit

Permalink
lastmanagement regellogik angepasst
Browse files Browse the repository at this point in the history
  • Loading branch information
snaptec committed May 31, 2018
1 parent 3b1fef2 commit 1fd3e3a
Show file tree
Hide file tree
Showing 18 changed files with 30 additions and 24 deletions.
4 changes: 2 additions & 2 deletions modules/sdm630modbuswr/main.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,13 @@ while read -r line; do
fi
if (( $n == 6 )); then
wrkwh=$(echo "$line" | cut -c2- )
echo ${wrkwh%??} > /var/www/html/openWB/ramdisk/wrkwh
echo ${wrkwh%??} > /var/www/html/openWB/ramdisk/pvkwh
fi

n=$((n + 1))
done <<< "$output"

wattwr=`echo "($wl1+wl2+$wl3)" |bc`
wattwr=`echo "(($wl1+$wl2+$wl3)* -1)" |bc`
echo $wattwr
echo $wattwr > /var/www/html/openWB/ramdisk/pvwatt

Expand Down
14 changes: 7 additions & 7 deletions openwb.conf
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@ sdmids1=5
ladeleistungs1modul=sdm630modbuslls1

#lastmanagement
lastmanagement=1
lastmanagement=0
lastmmaxw=15000
lastmaxap1=32
lastmaxap2=32
lastmaxap3=32
lastmaxap1=30
lastmaxap2=30
lastmaxap3=30


#################################################################
Expand Down Expand Up @@ -68,7 +68,7 @@ sdm630modbusbezuglanip=10.20.0.180
# Modulauswahl für den PV Wechselrichter
# Mögliche Werte: wr_fronius, none
# Das Modul selbst muss noch konfiguriert werden
pvwattmodul=wr_fronius
pvwattmodul=wr_http

#wr fronius ip
wrfroniusip=10.20.0.126
Expand Down Expand Up @@ -152,11 +152,11 @@ smaemdpvid=1900123456
smaemdllid=1900123456
dacregisters1=12

wr_http_w_url='http://192.168.0.17/pvwatt.txt'
wr_http_w_url='http://10.20.0.63/openWB/ramdisk/pvwatt'
hsocip1=http://10.0.0.110/soc.txt
socmodul1=soc_http1
dacregisters1=12
wr_http_kwh_url='http://192.168.0.17/pvwh.txt'
wr_http_kwh_url='http://10.20.0.63/openWB/ramdisk/pvkwh'
smaemdbezugid=1900123456
smaemdpvid=1900123456
smaemdllid=1900123456
Expand Down
2 changes: 1 addition & 1 deletion ramdisk/bezugkwh
Original file line number Diff line number Diff line change
@@ -1 +1 @@
8087386.5
8115674.300000001
2 changes: 1 addition & 1 deletion ramdisk/einspeisungkwh
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2720845.4000000004
2807752.9000000004
2 changes: 1 addition & 1 deletion ramdisk/llaltnv
Original file line number Diff line number Diff line change
@@ -1 +1 @@
224
226
2 changes: 1 addition & 1 deletion ramdisk/llas11
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0

2 changes: 1 addition & 1 deletion ramdisk/llkwh
Original file line number Diff line number Diff line change
@@ -1 +1 @@
475.85101318359375
499.73199462890625
2 changes: 1 addition & 1 deletion ramdisk/llkwhs1
Original file line number Diff line number Diff line change
@@ -1 +1 @@
114.1729965209961
0
2 changes: 1 addition & 1 deletion ramdisk/llv1
Original file line number Diff line number Diff line change
@@ -1 +1 @@
224
227
2 changes: 1 addition & 1 deletion ramdisk/llv2
Original file line number Diff line number Diff line change
@@ -1 +1 @@
224
227
2 changes: 1 addition & 1 deletion ramdisk/llv3
Original file line number Diff line number Diff line change
@@ -1 +1 @@
225
226
2 changes: 1 addition & 1 deletion ramdisk/pvcounter
Original file line number Diff line number Diff line change
@@ -1 +1 @@
150
0
2 changes: 1 addition & 1 deletion ramdisk/pvkwh
Original file line number Diff line number Diff line change
@@ -1 +1 @@
6310540
193.46200561523438
2 changes: 1 addition & 1 deletion ramdisk/pvwatt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
4413
2767
2 changes: 1 addition & 1 deletion ramdisk/soc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
66
99
2 changes: 1 addition & 1 deletion ramdisk/wattbezug
Original file line number Diff line number Diff line change
@@ -1 +1 @@
-3703
-1864
6 changes: 6 additions & 0 deletions regel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,12 @@ else
done
maxdiff=$((maxdiff + 1 ))
llneu=$((llalt - maxdiff))
if (( $llneu < $minimalstromstaerke )); then
llneu=$minimalstromstaerke
if [[ $debug == "1" ]]; then
echo Differenz groesser als minimalstromstaerke, setze auf minimal A $minimalstromstaerke
fi
fi
runs/"$llneu"m.sh
if [[ $debug == "1" ]]; then
echo "Sofort ladung um $maxdiff auf $llneu reduziert"
Expand Down
2 changes: 1 addition & 1 deletion web/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ function getfile() {
</div> -->
<div class="row">
<div class="col-xs-4">
Ver0.38
Ver0.39
</div>
<div class="col-xs-4 text-center">
<a href="http://openwb.de">www.openwb.de</a>
Expand Down

0 comments on commit 1fd3e3a

Please sign in to comment.