Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
b919a67
WIP
Sep 5, 2021
c8ecd12
send Gavazzi model number on address 11
Sep 7, 2021
b57bef9
SE7K läuft testweise im debugger
Oct 3, 2021
77547db
use full stringlength
Oct 5, 2021
e84f970
port 5502
Oct 5, 2021
01d8204
using as string method
Oct 5, 2021
267e76e
Endian.Big instead of Little
Oct 5, 2021
bf219c9
add dummy words for correct alignement
Oct 6, 2021
0f4974c
use default 502 port
Oct 6, 2021
a62fa75
Invalidate unused meter blocks
Oct 6, 2021
f580307
setMeterValues
Oct 6, 2021
dcd018e
power store as int
Oct 7, 2021
025117a
ignore nohup.out
Oct 7, 2021
77327e8
sample frequency less than a second
Oct 7, 2021
ba464ec
wip
Oct 13, 2021
2d5465c
wip
Oct 16, 2021
6aa73c8
SE keys are independent from legacy implementation
Oct 16, 2021
a73a640
modbus-proxy als init.d deamon einrichten
Oct 24, 2021
3d0f528
Merge branch 'ixtrader-master' of https://github.com/ixtrader/solared…
Feb 13, 2022
e5246a9
WIP
Feb 20, 2022
a9569a4
WIP
Feb 28, 2022
38915a7
WIP
Mar 2, 2022
e329097
first functional Code. Values proved so far.
Mar 3, 2022
413b82f
readable by the openwb EM24 Module and the Gavazzi config software
Mar 4, 2022
56f43cd
integraged EM24 ans SE7K Proxy
Mar 8, 2022
901429c
adaption for new nmakel naming conventions
Mar 9, 2022
0ccdded
Merge remote-tracking branch 'base/master' into ixtrader-master
Mar 9, 2022
127828b
Use the nmakel variables in EM24DINAV23XE1X proxy
Mar 9, 2022
ff218cd
remove logging on INFO level
Mar 9, 2022
f71c583
prepare for raspberry distribution
Mar 9, 2022
4261fc9
set unix lineendings for shell scripts
Mar 10, 2022
02bf44c
revert all changes to existing files
Mar 11, 2022
ac681cf
use unix file format
Mar 11, 2022
0818914
log the first and then every thousandth connection attempt. Log if da…
Mar 13, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -104,3 +104,8 @@ venv.bak/

# mypy
.mypy_cache/
*.bak
out*.txt
nohup.out
/bak

2 changes: 2 additions & 0 deletions EM24-proxy-tcp.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
echo use -v for more information
python EM24DINAV23XE1X-proxy-tcp.py -c SE-MTR-3Y-400V-A.conf %*
4 changes: 4 additions & 0 deletions EM24-proxy-tcp.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash
echo use -v for more information
python EM24DINAV23XE1X-proxy-tcp.py -c SE-MTR-3Y-400V-A.conf $*

498 changes: 498 additions & 0 deletions EM24DINAV23XE1X-proxy-tcp.py

Large diffs are not rendered by default.

67 changes: 67 additions & 0 deletions SE-MTR-3Y-400V-A.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
[server]
# Serving IP address.
# optional, default: all interfaces
address=0.0.0.0
# ip-address=0.0.0.0
# ip_address=0.0.0.0

# Serving port.
# optional, default: 5502
port = 502

# Modbus frame type, set to rtu for Modbus RTU over TCP
# optional, default: socket
#framer = socket

# Logging level, CRITICAL, ERROR, WARNING, INFO, DEBUG
# optional, default: INFO
log_level = INFO

# Masqueraded meters, comma separated.
# optional, default: ''
meters = solaredge-inverter

[solaredge-inverter]
# the solarage inverter should have an SE-MTR-3Y-400V-A meter attached
type=solaredge-inverter
host=solaredge.fritz.box
#host=raspberrypi.fritz.box
port=502
src_address=2
dst_address=1


# Meters defined in [server] need a config section, one per meter.
# Depending on the type of meter that is to be masqueraded, you can
# define a number of generic and type specific variables.

# Modbus address of the meter as defined in the SolarEdge inverter.
# This value needs to be unique.
# optional, default: 2
#dst_address = 2

# Source meter type, which corresponds to a script in /devices.
# The generic.py device returns null values.
# optional, default: generic
#type = generic

# Masqueraded serial number.
# Need not be correct, must be unique, must be an integer.
# optional, default: 987654
#serial_number = 987654

# Current transformer amperage rating.
# optional, default: 5
#ct_current = 50

# Current transformer direction inversion, set to 1 if required.
# optional, default: 0
#ct_inverted = 0

# Offset between phases, set to 0, 90, 120 or 180.
# optional, default: 0
#phase_offset = 120

# Number of seconds between value refreshes.
# optional, default: 5
#refresh_rate = 5
2 changes: 2 additions & 0 deletions SE7K-EM24-proxy-tcp.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
echo use -v for more information
python SE7K-EM24-proxy-tcp.py -c SE-MTR-3Y-400V-A.conf %*
10 changes: 10 additions & 0 deletions SE7K-EM24-proxy-tcp.d.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash
set +x
meinpfad=$(dirname $0)
file=/var/log/SE7K-EM24-proxy.log
logfile=$file
[ -e $file ] && [ $(stat --printf '%s' "$file") -gt 104857600 ] && rm "$file"
file=/var/log/SE7K-EM24-proxy.err
errfile=$file
[ -e $file ] && [ $(stat --printf '%s' "$file") -gt 104857600 ] && rm "$file"
nohup python3 $meinpfad/SE7K-EM24-proxy-tcp.py -c $meinpfad/SE-MTR-3Y-400V-A.conf 2>>$errfile >>$logfile &
Loading