GithubHelp home page GithubHelp logo

Comments (39)

mivale avatar mivale commented on September 28, 2024 3

For anyone looking for a simple datalogger -> pvoutput script i've written a simple bash script which works with an external Omnik Wifi Kit S-WE02. Pieced it together from all the info found here and elsewhere. Just giving back :-)

#!/bin/bah
#
today=`date '+%Y%m%d'`
minute=`date '+%H:%M'`

url="http://192.168.1.17/js/status.js"

# get most recent webdata from Hosola / Omnik inverter
content=$(curl --connect-timeout 30 -s $url | tr ';' '\n' | grep -e "^myDeviceArray\[0\]" | sed -e 's/"//g' | sed 's/myDeviceArray\[0\] = //')

if [[ -z "$content" ]]; then
    exit 1
fi

# get current power value, put all available values in array
set -- "$content"
IFS=","; declare -a Array=($*)

# NLDNXXXXXXXXXXXX,NL1-V1.0-XXXX-4,V2.0-XXXX,omnikXXXXtl ,X000,1070,790,160839,,1,

# please change with correct sid and key from pvoutput.org account
auth="sid=<SID>&key=<KEY_HEX>"

# post power value to pvoutput site
postdatastring="${auth}&v2=${Array[6]}&t=$minute&d=$today"

echo -n "$today $minute " >> ~/omnik/output.log
curl -s "http://pvoutput.org/service/r2/addstatus.jsp?$postdatastring" >> ~/omnik/output.log
echo "" >> ~/omnik/output.log

Running it on a Raspberry Pi

from omnik-data-logger.

mainframecn avatar mainframecn commented on September 28, 2024 1

Thanks mivale, i used your information to create a sensor in HA with PV output.

from omnik-data-logger.

ldeng2 avatar ldeng2 commented on September 28, 2024

Same problem for me. Somenone???

from omnik-data-logger.

XtheOne avatar XtheOne commented on September 28, 2024

Not much info is available of the new eternet interface logger protocol.
You can try the solarman android app and see if it finds the logger in local mode.
If yes my newer inverter logger scripts might work.

from omnik-data-logger.

abc1000 avatar abc1000 commented on September 28, 2024

It's very new..
I tried the apps but useless..
These apps tried all wifi...

Can i connect manual to omnik:8899? and see what's happening?

btw, for now livestats.py freezes my convertor..and must reset

from omnik-data-logger.

XtheOne avatar XtheOne commented on September 28, 2024

You can try my ScanLoggers.py script. If it does not list the inverter then it works differently then the WiFi logger which is based on iGEN firmware which uses protocol V4.
I cannot find any documentation on this ethernet interface.
How does the web interface looks like?

from omnik-data-logger.

abc1000 avatar abc1000 commented on September 28, 2024

Sure, where can i find it?
Firmware is not changed.
webinterface has no wifi network but ethernet settings.
sn 190#

from omnik-data-logger.

XtheOne avatar XtheOne commented on September 28, 2024

https://github.com/XtheOne/Inverter-Data-Logger
Screenshot of the web interface?

from omnik-data-logger.

abc1000 avatar abc1000 commented on September 28, 2024

Yes found it..

This script will look for iGEN WiFi Kit loggers from SolarMAN PV
List their IPs and S/Ns and connected inverters S/N
These loggers are found in Omnik, Hosola, Ginlong, Kstar, Seasun, SolaX, Samil, Sofar, Trannergy
and other Solar inverters
WiFi kit logger found, IP = 192.168.1.211 and S/N = 190#######
Listing Inverter(s) connected to this WiFi logger
closing socket, scanning done!
Traceback (most recent call last):
File "ScanLoggers.py", line 79, in
data = logger_socket.recv(1500)
socket.timeout: timed out

scr1

from omnik-data-logger.

XtheOne avatar XtheOne commented on September 28, 2024

The good thing is that it looks like it is iGEN logger based.
It does connect on port 8899 but no data is received.
It could be that this logger firmware does not support V4 protocol anymore.
Did you try https://play.google.com/store/apps/details?id=com.yingzhen
Local mode, this app supports V5 protocol.
If it does not find the inverter then omnik or igen should be asked.

Maybe https://play.google.com/store/apps/details?id=com.igentech.config.activity
can find it?

from omnik-data-logger.

abc1000 avatar abc1000 commented on September 28, 2024

Tried both apps allready but they searching for AP's..

from omnik-data-logger.

XtheOne avatar XtheOne commented on September 28, 2024

Ok, then I will ask around tomorrow

from omnik-data-logger.

abc1000 avatar abc1000 commented on September 28, 2024

ok, tnx

from omnik-data-logger.

XtheOne avatar XtheOne commented on September 28, 2024

I have sent a request for more information to the Omnik dev team.
I'm not related to Omnik myself but I use their inverters.

It does reply to the broadcast frame to port 48899 with it's IP and SN
It accepts the connection on port 8899 but it does not respond to the data request frame.
So, why? is another contrlCode needed? Should it be a V5 request frame?

I have no TL2 with Embedded Ethernet, so cannot experiment myself...

from omnik-data-logger.

abc1000 avatar abc1000 commented on September 28, 2024

And maybe using a second (local)remote server..?

from omnik-data-logger.

XtheOne avatar XtheOne commented on September 28, 2024

That is an option, but then you need a listner app.

from omnik-data-logger.

abc1000 avatar abc1000 commented on September 28, 2024

I'v tried nmap (linux based) but nothing special..
I don't know what else?

from omnik-data-logger.

XtheOne avatar XtheOne commented on September 28, 2024

I received some documentation. Mainly about how to place the interface inside the inverter.
Is your inverter registered on the omnik portal and can you see production data?
You can try to see the data which is sent by the inverter to the portal by using wireshark.
According to the documentation local logging should work...

from omnik-data-logger.

abc1000 avatar abc1000 commented on September 28, 2024

I see nothing on port 8899, only 80 (my link to webport.)
How do i filter udp, tcp.?
Have now only ipaddress.

Yeah, data logging to omnikportal is allright.

from omnik-data-logger.

XtheOne avatar XtheOne commented on September 28, 2024

if you run wireshark on windows you only see packets from/to the PC. Bridging with 2 adapters is needed.

from omnik-data-logger.

Pietervs2 avatar Pietervs2 commented on September 28, 2024

I had an ethernetmodule installed last week.
Today I discovered, they've skipped a step after installation.

The ethernetmodule that I have, has 3 lights on it, the one on the left is red, the one on the right is green when a UTP-cable is connected. The one in the middle was off. There's a small button right underneath those three, I pressed that for 3 seconds and the light in the middle came on (also red), after which it started sending data to the Omnikportal again. (In the portal I had to enter the serialnumber of the ethernetcard (1902133xxx), it automatically asked for it after the dataconnection was restored.

But (like others) I'm looking for a working script to upload the data to PVOutput again. Any help with that might me appreciated! :)
(I have attached a file with output I get when I use the command "wget http://192.168.X.XX/js/status.js -q -O - ", hoping that someone can make some sense out of it. I can't find any viable variables in this file :( )
omnik-output.txt

from omnik-data-logger.

XtheOne avatar XtheOne commented on September 28, 2024

the status.js file is what you also get from the wifi logger. Only you request the js file, not the resulting data from running this js class.
I have no Onmik with a internal ethernet card so cannot test things here...
A capture of data which is sent to the portal can help to see if the frame format is newer than V4 which the WiFi logger uses.

from omnik-data-logger.

XtheOne avatar XtheOne commented on September 28, 2024

From logging I found that the ethernet logger uses a newer protocol.
Up till now V4 was used and this module uses V5.
I have gotten some documentation but I have no time the comming week to try to implement V5.
As I have no ethernet module testing will be slow as someone else will do the tryouts.

from omnik-data-logger.

Pietervs2 avatar Pietervs2 commented on September 28, 2024

from omnik-data-logger.

XtheOne avatar XtheOne commented on September 28, 2024

I have opened an issue under my own repo XtheOne/Inverter-Data-Logger#3
When I get something to test I will let you know.

from omnik-data-logger.

Pietervs2 avatar Pietervs2 commented on September 28, 2024

from omnik-data-logger.

XtheOne avatar XtheOne commented on September 28, 2024

highly experimental as the command frame format is still not known.
If someone can get the firmware out of the GD32F103 MCU with a jtag interface it would greatly help!

from omnik-data-logger.

Pietervs2 avatar Pietervs2 commented on September 28, 2024

from omnik-data-logger.

abc1000 avatar abc1000 commented on September 28, 2024

I'll think it's a GD32FB07..

from omnik-data-logger.

abc1000 avatar abc1000 commented on September 28, 2024

Do we need a 10p header and a programmer?

from omnik-data-logger.

XtheOne avatar XtheOne commented on September 28, 2024

It is a GD32F107 MCU and you can read/program it with a ST-link interface.

https://hackaday.com/2013/01/07/reverse-engineering-st-linkv2-firmware/

I have no time this weekend...

from omnik-data-logger.

XtheOne avatar XtheOne commented on September 28, 2024

Alle tools hier:
http://gd32mcu.21ic.com/en/index

from omnik-data-logger.

Pietervs2 avatar Pietervs2 commented on September 28, 2024

from omnik-data-logger.

XtheOne avatar XtheOne commented on September 28, 2024

De GD32F107RCT6 MCU kun je uitlezen met FlyMcu.exe en een RS232 / 3.3V TTL interface aangesloten op een USART poort. (tenzij het protection bit gezet is...)

from omnik-data-logger.

mvroosmalen1970 avatar mvroosmalen1970 commented on September 28, 2024

Hi I've been able to capture data send by my converter (lan stick) though unable to decode it.... Does anyone have a clue how to decode? (same module as reported by :abc1000 commented on 27 Sep 2017)

string captured:
\xa5\\x00\x10\x02\x00\x14G\xb3eq\x01\x01\x05\xea\x88\x00\x00\x8e\x03\x00\x00\x00\x00\x00\x00\x01\x00\r\x00\x00\x000009600168101010i\x01\xb5\x07\x00\x00\x15\x00\x00\x00\x0e\x00\x00\x00\x00\x00C\t\x00\x00\x00\x00\x87\x13K\x01\x00\x00n\x00\x00\x00X9\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xbe\x0e\x04&\x00\x15\x00\x96\r\xb3\x15

:-)

from omnik-data-logger.

XtheOne avatar XtheOne commented on September 28, 2024

Hi, I added a server script so that you can let the inverter sent the data.
This should also work with the ethernet module.
See my project.

from omnik-data-logger.

peterzandbergen avatar peterzandbergen commented on September 28, 2024

Hi there,

I have been trying to get data from my recently installed inverters. It is an Omnik 3k TL3 with a serial number of 640xxxx. I can send the request command v4 but do not get a response. I assume that the protocol has changed to a new version. Can you help me in finding info on the new protocol, or how I can experiment and find what command I need to send.

Thanks

from omnik-data-logger.

XtheOne avatar XtheOne commented on September 28, 2024

I am trying to get my script to work with the newer V5 protocol.
I have some info but little help from Omnik /iGEN tech.

from omnik-data-logger.

peterzandbergen avatar peterzandbergen commented on September 28, 2024

So you say I need to use the V5 protocol for this wifi module.

Does it help if I give you the firmware version? Or any other info I can help you with?

from omnik-data-logger.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.