Ginlong, Omnik Solar, Solarman and Trannergy Inverters Topic is solved

Python and python framework

Moderator: leecollings

Storic
Posts: 5
Joined: Friday 26 April 2019 9:23
Target OS: Windows
Domoticz version:
Contact:

Re: Ginlong, Omnik Solar, Solarman and Trannergy Inverters

Post by Storic »

Hi,

I have had this script running for a while without any problems, but this morning it stoped working:

Code: Select all

Traceback (most recent call last):
  File "C:\Users\askev\Desktop\solarmanpv - Copy.py", line 35, in <module>
    root = ET.parse(urllib.urlopen(requestURL)).getroot()
  File "C:\Python27\lib\urllib.py", line 87, in urlopen
    return opener.open(url)
  File "C:\Python27\lib\urllib.py", line 213, in open
    return getattr(self, name)(url)
  File "C:\Python27\lib\urllib.py", line 364, in open_http
    return self.http_error(url, fp, errcode, errmsg, headers)
  File "C:\Python27\lib\urllib.py", line 377, in http_error
    result = method(url, fp, errcode, errmsg, headers)
  File "C:\Python27\lib\urllib.py", line 642, in http_error_302
    headers, data)
  File "C:\Python27\lib\urllib.py", line 669, in redirect_internal
    return self.open(newurl)
  File "C:\Python27\lib\urllib.py", line 213, in open
    return getattr(self, name)(url)
  File "C:\Python27\lib\urllib.py", line 350, in open_http
    h.endheaders(data)
  File "C:\Python27\lib\httplib.py", line 1038, in endheaders
    self._send_output(message_body)
  File "C:\Python27\lib\httplib.py", line 882, in _send_output
    self.send(msg)
  File "C:\Python27\lib\httplib.py", line 844, in send
    self.connect()
  File "C:\Python27\lib\httplib.py", line 821, in connect
    self.timeout, self.source_address)
  File "C:\Python27\lib\socket.py", line 575, in create_connection
    raise err
IOError: [Errno socket error] [Errno 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond
Anyone know what the problem can be?
User avatar
galadril
Posts: 828
Joined: Monday 07 September 2015 10:32
Target OS: Raspberry Pi / ODroid
Domoticz version: latest
Contact:

Re: Ginlong, Omnik Solar, Solarman and Trannergy Inverters

Post by galadril »

Ginlong has a new platform (they call it platform 2).
All api's are changed.


Ill try to change the script for Ginlong with the new api's!
Solar panels of Ginlong, Omnik-Solar, Transenergy or Solarman?? Try my Android app:
https://play.google.com/store/apps/deta ... ongmonitor
Toulon7559
Posts: 856
Joined: Sunday 23 February 2014 17:56
Target OS: Raspberry Pi / ODroid
Domoticz version: mixed
Location: Hengelo(Ov)/NL
Contact:

Re: Ginlong, Omnik Solar, Solarman and Trannergy Inverters

Post by Toulon7559 »

@galadril

Hope you have success!

Tried myself various approaches, but :x till this moment without luck.
Help from Ginlong is 'minimal', apparently hiding somewhere deep in the black hole ........

That leaves one flabbergasted/ empty_handed for experiments as described below.
Therefore WARNING:
the setup described below does not work yet for me!
But other people have no problem using this script [ :? !?]

1) Get access
First step, to directly get access to the monitoring-website for a response in the form of a JSON-file, it seems that the following URL can be used:

Code: Select all

http://m.ginlong.com/cpro/login/validateLogin.json?userName=MYUSERNAME&password=MYPASSWORD&lan=2&domain=m.ginlong.com&userType=C
When inserting for UN+PW exactly the same info as valid for Portal1.0 and Portal2.0 , however I get a JSON-file with an error-report

Code: Select all

{"state":0,"message":"{'result':'userName','message':'Invalid account'}"}
THAT a response is received implies that the call-structure is OK, but now find the correct insert for UN+PW.
Have tried variations of input-layout of UN and PW using the elements listed below, but not successful: just different error reports.
<Ginlong-webUN> = Username for web-login
<Ginlong-webPW> = Password for web-login
<Long string> = 32-characterstring extracted by JSON-call
<UID> = UserID of 6 digits shown from WebLogin in various JSON-response-files
<PID> = PlantID of 6 digits fromWebLogin in various JSON-response-files
<DID> = DeviceID of 9 digits from WebLogin in various JSON-response-files

2) Python Script
Have tried the script-package at https://github.com/wessel145/GinMon.git
but no luck either .......
That script would allow extraction of much more data from the Ginlong Monitoring website.

Modification May 01, 2019:
It is also possible to get data more direct from the inverter by a 2nd output to Server_B.
Related question has been shifted to this next message.
Last edited by Toulon7559 on Thursday 02 May 2019 17:10, edited 5 times in total.
Set1 = RPI-Zero+RFXCom433+S0PCM+Shield for BMP180/DS18B20/RS485+DDS238-1ZNs
Set2 = RPI-3A++RFLinkGTW+ESP8266s+PWS_WS7000
Common = KAKUs+3*PVLogger+PWS_TFA_Nexus
plus series of 'satellites' for dedicated interfacing, monitoring & control.
Storic
Posts: 5
Joined: Friday 26 April 2019 9:23
Target OS: Windows
Domoticz version:
Contact:

Re: Ginlong, Omnik Solar, Solarman and Trannergy Inverters

Post by Storic »

galadril wrote: Tuesday 30 April 2019 8:31 Ginlong has a new platform (they call it platform 2).
All api's are changed.


Ill try to change the script for Ginlong with the new api's!
Thanks for the feedback, but I forgot to mention that I use SolarmanPV.
However, it seams to be working now, so maybe they just had som server difficulties.
User avatar
galadril
Posts: 828
Joined: Monday 07 September 2015 10:32
Target OS: Raspberry Pi / ODroid
Domoticz version: latest
Contact:

Re: Ginlong, Omnik Solar, Solarman and Trannergy Inverters

Post by galadril »

Toulon7559 wrote: Tuesday 30 April 2019 9:45 @galadril

1) Get access
First step, to directly get access to the monitoring-website for a response in the form of a JSON-file, it seems that the following URL can be used:

Code: Select all

http://m.ginlong.com/cpro/login/validateLogin.json?userName=MYUSERNAME&password=MYPASSWORD&lan=2&domain=m.ginlong.com&userType=C
When inserting for UN+PW exactly the same info as valid for Portal1.0 and Portal2.0 , however I get a JSON-file with an error-report

Code: Select all

{"state":0,"message":"{'result':'userName','message':'Invalid account'}"}
i already found out that you can log in with:
http://m.ginlong.com/cpro/login/validateLogin.json as a POST url.
Then use the next parameters as form-urlencoded key value pairs:
userName=MYUSERNAME&password=MYPASSWORD&lan=2&domain=m.ginlong.com&userType=C

so not as url parameters.

Then i get a succes result back

Code: Select all

{
    "result": {
        "curl": "//file.solarman.cn/",
        "email": "USERNAME",
        "isAccept": 1,
        "isActived": 1,
        "lastLoginTimeWeb": 1556605200000,
        "localeId": 1,
        "messageSetting": "{\"is_my_station_alarm\":0,\"is_my_station_alarm_email\":0,\"is_my_station_alarm_sms\":0,\"is_my_station_notification\":0,\"is_hidden\":1,\"is_manage_msg\":1,\"is_offline_msg\":0}",
        "mobile": "",
        "password": "",
        "proUrl": "http://pro.solarman.cn/",
        "regTime": 1420070400000,
        "solarmanId": 1,
        "temp": 1,
        "token": "",
        "uid": 234234,
        "url": "//file.solarman.cn/",
        "userType": 1
    },
    "state": 5,
    "message": "审核通过"
}
So i need to check how to progress after the login
Solar panels of Ginlong, Omnik-Solar, Transenergy or Solarman?? Try my Android app:
https://play.google.com/store/apps/deta ... ongmonitor
User avatar
galadril
Posts: 828
Joined: Monday 07 September 2015 10:32
Target OS: Raspberry Pi / ODroid
Domoticz version: latest
Contact:

Re: Ginlong, Omnik Solar, Solarman and Trannergy Inverters

Post by galadril »

You'll probably need to use some kind of session token within a cookie after login..

Code: Select all

curl "http://m.ginlong.com/cpro/epc/plantDetail/showPlantDetailAjax.json" -H "User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:66.0) Gecko/20100101 Firefox/66.0" -H "Accept: application/json, text/plain, */*" -H "Accept-Language: en-GB,en;q=0.5" --compressed -H "Referer: http://m.ginlong.com/plant/overview/view.html?v=2.1.17.3" -H "Content-Type: application/x-www-form-urlencoded" -H "Connection: keep-alive" -H [b]"Cookie: language=2; runType=C; autoLogin=on; Language=en_US; timeOffset=undefined; JSESSIONID=d053c113-850d-4957-bbe3-2c6e36b21722; rememberMe=DTVecFfWg+bMJT3Wekz12nEcssVfkK5tLo2PWjHMFNKGdPfXkHnSIjLc1i5ZNxt5aFfJ6vd0vzFM5ETVJvaNhph4TUg23sLCtvqmsNj2vjAKazRSDgzeUH2iWguMQv8gdNhI9T4GjKUoqh+W/aSnZvJyEeMDVR103WtuSa4UU1gyuuOpCb482R5lWWpGs5C0EDtvYVUPL8JVwXON96TaVjpRK2ceraANyuVHpBElWbfBEOYJ4xraUGoAw49WWEhtFSk5H5FQ4cm+aWFl50emGPXLdZUkrjhFPwNDfAZ4FtbkmIigcTrp34Dc2LO5gSxYwi/DSrfp6vduOQCq5C3+yUQr9e+kYVcPQo9gzdEfrZ3QH5Zn5L1CDI1610wbvfxSJpuoz8g1K8Tl6d3UxBqSgriZxKxPRmiB3H6VRJTJ9xXKyu2aTldJkcvLVb5DzR1jpsEzl3RHqlOErD1PobNh9yuN0e/83wBZOWS8ZDZquUSb3F=" --data "plantId=234234"[/b]
"Cookie: language=2; runType=C; autoLogin=on; Language=en_US; timeOffset=undefined; JSESSIONID=d053c113-850d-4957-bbe3-2c6e36b21722; rememberMe=DTVecFfWg+bMJT3Wekz12nEcssVfkK5tLo2PWjHMFNKGdPfXkHnSIjLc1i5ZNxt5aFfJ6vd0vzFM5ETVJvaNhph4TUg23sLCtvqmsNj2vjAKazRSDgzeUH2iWguMQv8gdNhI9T4GjKUoqh+W/aSnZvJyEeMDVR103WtuSa4UU1gyuuOpCb482R5lWWpGs5C0EDtvYVUPL8JVwXON96TaVjpRK2ceraANyuVHpBElWbfBEOYJ4xraUGoAw49WWEhtFSk5H5FQ4cm+aWFl50emGPXLdZUkrjhFPwNDfAZ4FtbkmIigcTrp34Dc2LO5gSxYwi/DSrfp6vduOQCq5C3+yUQr9e+kYVcPQo9gzdEfrZ3QH5Zn5L1CDI1610wbvfxSJpuoz8g1K8Tl6d3UxBqSgriZxKxPRmiB3H6VRJTJ9xXKyu2aTldJkcvLVb5DzR1jpsEzl3RHqlOErD1PobNh9yuN0e/83wBZOWS8ZDZquUSb3F=" --data "plantId=234234"
Solar panels of Ginlong, Omnik-Solar, Transenergy or Solarman?? Try my Android app:
https://play.google.com/store/apps/deta ... ongmonitor
Toulon7559
Posts: 856
Joined: Sunday 23 February 2014 17:56
Target OS: Raspberry Pi / ODroid
Domoticz version: mixed
Location: Hengelo(Ov)/NL
Contact:

Re: Ginlong, Omnik Solar, Solarman and Trannergy Inverters

Post by Toulon7559 »

;-) There are easier methods for login .........

@galadrin

Wessel's script seems to apply that method of login-jsoncall, followed by UN+PW+Etc.
Just wondering why no succesfull login yet with that script.
Last edited by Toulon7559 on Tuesday 30 April 2019 17:48, edited 3 times in total.
Set1 = RPI-Zero+RFXCom433+S0PCM+Shield for BMP180/DS18B20/RS485+DDS238-1ZNs
Set2 = RPI-3A++RFLinkGTW+ESP8266s+PWS_WS7000
Common = KAKUs+3*PVLogger+PWS_TFA_Nexus
plus series of 'satellites' for dedicated interfacing, monitoring & control.
User avatar
galadril
Posts: 828
Joined: Monday 07 September 2015 10:32
Target OS: Raspberry Pi / ODroid
Domoticz version: latest
Contact:

Re: Ginlong, Omnik Solar, Solarman and Trannergy Inverters

Post by galadril »

Solar panels of Ginlong, Omnik-Solar, Transenergy or Solarman?? Try my Android app:
https://play.google.com/store/apps/deta ... ongmonitor
User avatar
galadril
Posts: 828
Joined: Monday 07 September 2015 10:32
Target OS: Raspberry Pi / ODroid
Domoticz version: latest
Contact:

Re: Ginlong, Omnik Solar, Solarman and Trannergy Inverters

Post by galadril »

Ok i finished a new script for platform 2 of Ginlong, i've added the new script for platform 2 to the bottom of the OP !!

:idea:
Solar panels of Ginlong, Omnik-Solar, Transenergy or Solarman?? Try my Android app:
https://play.google.com/store/apps/deta ... ongmonitor
Toulon7559
Posts: 856
Joined: Sunday 23 February 2014 17:56
Target OS: Raspberry Pi / ODroid
Domoticz version: mixed
Location: Hengelo(Ov)/NL
Contact:

Re: Ginlong, Omnik Solar, Solarman and Trannergy Inverters

Post by Toulon7559 »

@galadrin

Addition May 01, 2019:
the errors discussed in this message have been caused by trying to testrun the script under Python3.x
No errors if running under Python2.7

Testrunning your new script for Portal2.0 from Putty's CLI.
True copy with only adaptation for my own settings for lines 6 till 16.
All well, until the output starts.
Then get the error-report shown below:

Code: Select all

     print 'TodayIncome: ' + str(TodayIncome)
                         ^
SyntaxError: invalid syntax
Comparing with the previous script ginlong.py for Portal1.0,
adapted the subject printline and then get the error-report below

Code: Select all

     print 'TodayIncome: '+TodayIncome
                         ^
SyntaxError: Missing parentheses in call to 'print'
Different Python-version may cause different behaviour, but both scripts by means of the first line trigger the same Python-version.
Apparently a subtle aspect of printing the string or value, but what?

Addition May 01, 2019:
Running under Python2.7 is OK, but still wondering why an error-report under Python3.x for a simple thing as a print-command.
Somebody having an explanation?
Last edited by Toulon7559 on Wednesday 01 May 2019 8:54, edited 1 time in total.
Set1 = RPI-Zero+RFXCom433+S0PCM+Shield for BMP180/DS18B20/RS485+DDS238-1ZNs
Set2 = RPI-3A++RFLinkGTW+ESP8266s+PWS_WS7000
Common = KAKUs+3*PVLogger+PWS_TFA_Nexus
plus series of 'satellites' for dedicated interfacing, monitoring & control.
User avatar
galadril
Posts: 828
Joined: Monday 07 September 2015 10:32
Target OS: Raspberry Pi / ODroid
Domoticz version: latest
Contact:

Re: Ginlong, Omnik Solar, Solarman and Trannergy Inverters

Post by galadril »

Thats weird.. as it's running without any issues here ..
Probably python version/???
Solar panels of Ginlong, Omnik-Solar, Transenergy or Solarman?? Try my Android app:
https://play.google.com/store/apps/deta ... ongmonitor
Toulon7559
Posts: 856
Joined: Sunday 23 February 2014 17:56
Target OS: Raspberry Pi / ODroid
Domoticz version: mixed
Location: Hengelo(Ov)/NL
Contact:

Re: Ginlong, Omnik Solar, Solarman and Trannergy Inverters

Post by Toulon7559 »

@galadrin

Indeed, a Python-issue, being a mix-up in CLI-inputs at my Raspberry.

Nowadays have the habit of applying Python3.x unless otherwise required .....
Trying to run the script under Python3.x causes the indicated errors:
it must be run under Python 2.7 or equivalent.
The first line of the script already 'asks' for that version, but apparently such request is not overruling the CLI-input.

With Python2.7 now also running OK at this side.

Note:
I will adapt the earlier message to hint to that aspect.
Also I will split the message before to separate the issue of the more elaborate data extraction from the website respectively directly from the inverter.
Last edited by Toulon7559 on Wednesday 01 May 2019 9:00, edited 3 times in total.
Set1 = RPI-Zero+RFXCom433+S0PCM+Shield for BMP180/DS18B20/RS485+DDS238-1ZNs
Set2 = RPI-3A++RFLinkGTW+ESP8266s+PWS_WS7000
Common = KAKUs+3*PVLogger+PWS_TFA_Nexus
plus series of 'satellites' for dedicated interfacing, monitoring & control.
User avatar
galadril
Posts: 828
Joined: Monday 07 September 2015 10:32
Target OS: Raspberry Pi / ODroid
Domoticz version: latest
Contact:

Re: Ginlong, Omnik Solar, Solarman and Trannergy Inverters

Post by galadril »

Toulon7559 wrote: Wednesday 01 May 2019 8:41 Now also running OK at this side.
Great!!
Toulon7559 wrote: Wednesday 01 May 2019 8:41 I will adapt the earlier message to hint to that aspect.
Thank, ill update OP if needed
Solar panels of Ginlong, Omnik-Solar, Transenergy or Solarman?? Try my Android app:
https://play.google.com/store/apps/deta ... ongmonitor
Toulon7559
Posts: 856
Joined: Sunday 23 February 2014 17:56
Target OS: Raspberry Pi / ODroid
Domoticz version: mixed
Location: Hengelo(Ov)/NL
Contact:

Re: Ginlong, Omnik Solar, Solarman and Trannergy Inverters

Post by Toulon7559 »

Extraction of the 'essential' data from the Ginlong Monitoring website is the minimal approach, now enabled by galadrin's new script.

But it is known that more information can be obtained, and that challenges to investigate!

1st Approach is a script as mentioned in this message under 2) to get there, by calling the Ginlong Monitoring website in another way.
Expands the data-set to be extracted, but with dependency on the Ginlong Monitoring Server.
Help needed to make that script more robust, because from other forum have info that some people get it running, others not (including myself) ....

A 2nd approach is the application of the facilities for Server_B as offered by the Ginlong Inverter.
Expands the data-set to be extracted, independent of the Ginlong Monitoring Server.
The 2nd data-output of the inverter to Server_B is indicated in the Setup Menu of the Ginlong Inverter, but lacking the required setttings-info for domain, port and IP, and an instruction how to setup the Server-B-side. No Help-function available in the Menu, nor info on the internet.
In section 'Manual' of the Setup the Test-button is unclear, because accepting there as OK a very wide variety of settings which on the other hand in section 'Menu' seldomly result in a pingable interface to Server_B.
It is possible to make an pingable interface if you put the addressing at the same LAN towards a local computer (which has ftp-capability) at port21, but at the side of that computer nothing appears .....
Some unknown aspect of protocol-handling?
Somebody hints for the appropriate settings & setups to get the Server_B interface applicable for a data stream to Domoticz?

A 3rd approach and last resort for local data-extraction would be interception of the data-stream from the inverter to the Ginlong Monitoring Server. End-result equivalent to the 2nd approach, but probably with much more effort for development.
Starts with sniffing at the LAN with Wireshark etc., followed by dissecting the sniffed info, and trying to understand what are the contents.
However, the layout of that data-stream seems subject to differences between the inverter generations (3rd or 4th) of the inverter, with related complications for a 'universal' solution ......
Last edited by Toulon7559 on Thursday 02 May 2019 16:54, edited 2 times in total.
Set1 = RPI-Zero+RFXCom433+S0PCM+Shield for BMP180/DS18B20/RS485+DDS238-1ZNs
Set2 = RPI-3A++RFLinkGTW+ESP8266s+PWS_WS7000
Common = KAKUs+3*PVLogger+PWS_TFA_Nexus
plus series of 'satellites' for dedicated interfacing, monitoring & control.
User avatar
galadril
Posts: 828
Joined: Monday 07 September 2015 10:32
Target OS: Raspberry Pi / ODroid
Domoticz version: latest
Contact:

Re: Ginlong, Omnik Solar, Solarman and Trannergy Inverters

Post by galadril »

What extra data would you like? I've all api calls of ginlong platform 2 running on a Postman collection
Solar panels of Ginlong, Omnik-Solar, Transenergy or Solarman?? Try my Android app:
https://play.google.com/store/apps/deta ... ongmonitor
Toulon7559
Posts: 856
Joined: Sunday 23 February 2014 17:56
Target OS: Raspberry Pi / ODroid
Domoticz version: mixed
Location: Hengelo(Ov)/NL
Contact:

Re: Ginlong, Omnik Solar, Solarman and Trannergy Inverters

Post by Toulon7559 »

@galadril

Postman is unknown to me.

My other loggers (for 3 other types of inverters) collect a long list of information, and my preference is a same read-out for each inverter.
Some inverters like the SAJs make life very easy by responding an URL-call to their IP-address by transmission of a JSON-file or an XML-file, like the one below.

Code: Select all

<real_time_data><state>Normal</state><v-grid>228.8</v-grid><i-grid>0.87</i-grid><f-grid>49.99</f-grid><p-ac>181</p-ac><temp>26.7</temp><e-today>3.3</e-today><t-today>9.9</t-today><e-total>4954.0</e-total><CO2>4939.14</CO2><t-total>15761.9</t-total><v-pv1>253.5</v-pv1><i-pv1>0.72</i-pv1><v-pv2>-</v-pv2><i-pv2>-</i-pv2><v-bus>361.2</v-bus></real_time_data>
The Ginlong-inverter has available the list below (quoted from a script that directly downloads from the Ginlong-inverter]), which implicitly already could be seen in the contents at Portal1.0, and that is what I aim for (for the Ginlong inverter).

Code: Select all

inverter_temp = 31                  # offset 31 & 32 temperature (/10)
inverter_vdc1 = 33                  # offset 33 & 34 DC volts chain 1 (/10)
inverter_vdc2 = 35                  # offset 35 & 36 DC volts chain 2 (/10)
inverter_adc1 = 39                  # offset 39 & 40 DC amps chain 1 (/10)
inverter_adc2 = 41                  # offset 41 & 42 DC amps chain 2 (/10)
inverter_aac  = 45                  # offset 45 & 46 AC output amps (/10)
inverter_vac  = 51                  # offset 51 & 52 AC output volts (/10)
inverter_freq = 57                  # offset 57 & 58 AC frequency (/100)
inverter_now  = 59                  # offset 59 & 60 current generation Watts
inverter_yes  = 67                  # offset 67 & 68 yesterday kwh (/100)
inverter_day  = 69                  # offset 69 & 70 daily kWh (/100) or Wh (*10)
inverter_tot  = 73                  # offset 73 & 74 total kWh (/10)
inverter_mth  = 87                  # offset 87 & 88 total kWh for month 
inverter_lmth = 91                  # offset 91 & 92 total kWh for last month 
By your latest script and by my own read-out of the connected external kWh-meter I get most bits&pieces, but not the combined, correlated collection, and certainly not the 'inside' info like Temp, VDC and ADC.
My first requirement is to get hold of the data in this list:
processing & output for other applications is an aspect already covered by present solutions for the other loggers.
It is just a pity that Wessel's script refuses to run in my configuration, and (for me) reason to look for alternatives and/or for help to get that script running.

As stated in my previous message, I dislike the external dependency on the Ginlong Monitoring website, and therefore related to Ginlong would like to apply the closer/ self-controlled function of Server_B, with Server_B in my own domain.
;-) The effort caused by the recent switch by Ginlong from Portal1.0 to 2.0, and the earlier interruption at Sonnenertrag are arguments supporting that idea: local, self-controlled, continuous registration is better than an external website.
Last edited by Toulon7559 on Friday 03 May 2019 9:47, edited 4 times in total.
Set1 = RPI-Zero+RFXCom433+S0PCM+Shield for BMP180/DS18B20/RS485+DDS238-1ZNs
Set2 = RPI-3A++RFLinkGTW+ESP8266s+PWS_WS7000
Common = KAKUs+3*PVLogger+PWS_TFA_Nexus
plus series of 'satellites' for dedicated interfacing, monitoring & control.
User avatar
sincze
Posts: 1300
Joined: Monday 02 June 2014 22:46
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.4
Location: Netherlands / Breda Area
Contact:

Re: Ginlong, Omnik Solar, Solarman and Trannergy Inverters

Post by sincze »

''Somebody hints for the appropriate settings & setups to get the Server_B interface applicable for a data stream to Domoticz?
''

If you setup a webserver to listen to all requests. And point the inverter B server to that IP and port.. you should be able to receive the packages as well.

Now... You have to interpret them.. that is the tricky part
Tested with an omnik inverter that can do the same trick.
Pass2php
LAN: RFLink, P1, OTGW, MySensors
USB: RFXCom, ZWave, Sonoff 3
MQTT: ZIgbee2MQTT,
ZWAVE: Zwave-JS-UI
WIFI: Mi-light, Tasmota, Xiaomi Shelly
Solar: Omnik, PVOutput
Video: Kodi, Harmony HUB, Chromecast
Sensors: You name it I got 1.
Toulon7559
Posts: 856
Joined: Sunday 23 February 2014 17:56
Target OS: Raspberry Pi / ODroid
Domoticz version: mixed
Location: Hengelo(Ov)/NL
Contact:

Re: Ginlong, Omnik Solar, Solarman and Trannergy Inverters

Post by Toulon7559 »

@sincze
If you setup a webserver to listen to all requests. And point the inverter B server to that IP and port.. you should be able to receive the packages as well.
looks to me a bit as 'chicken&egg'.
IF you know how Server_B is listening, THEN it is (possibly) easy to point the transmission from the inverter in that direction
At the moment I am struggling to find a answer to the IF
Already detected that FTP is not the answer (because no files incoming at the receiving side), but what then?
The Setup-Menu at the Ginlong-inverter has options for several connection protocols, but the Solarman1-protocol to me seems most 'universal' for this thread.

Because you have a working Omnik-example, perhaps you can describe how it is done?

Dissecting the received files may indeed be tricky, but usually it is just tedious 'labour' ......
Set1 = RPI-Zero+RFXCom433+S0PCM+Shield for BMP180/DS18B20/RS485+DDS238-1ZNs
Set2 = RPI-3A++RFLinkGTW+ESP8266s+PWS_WS7000
Common = KAKUs+3*PVLogger+PWS_TFA_Nexus
plus series of 'satellites' for dedicated interfacing, monitoring & control.
User avatar
sincze
Posts: 1300
Joined: Monday 02 June 2014 22:46
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.4
Location: Netherlands / Breda Area
Contact:

Re: Ginlong, Omnik Solar, Solarman and Trannergy Inverters

Post by sincze »

Because you have a working Omnik-example, perhaps you can describe how it is done?

Indeed I setup a webserver a year a go just for fun to catch the omnik http requests and payloads. Configured server B as destination.
But discontinued the work as it was not needed for the purpose I needed it for. Magic packet works for omnik inverters.

I also found a Growatt Inverter setup that proxies the traffic between inverter... Proxy Domoticz ... Inverter portal. Maybe that is an idea as well.

Chicken or Egg as long as I have my eggs the way I want to it is a perfect world :)
Pass2php
LAN: RFLink, P1, OTGW, MySensors
USB: RFXCom, ZWave, Sonoff 3
MQTT: ZIgbee2MQTT,
ZWAVE: Zwave-JS-UI
WIFI: Mi-light, Tasmota, Xiaomi Shelly
Solar: Omnik, PVOutput
Video: Kodi, Harmony HUB, Chromecast
Sensors: You name it I got 1.
Toulon7559
Posts: 856
Joined: Sunday 23 February 2014 17:56
Target OS: Raspberry Pi / ODroid
Domoticz version: mixed
Location: Hengelo(Ov)/NL
Contact:

Re: Ginlong, Omnik Solar, Solarman and Trannergy Inverters

Post by Toulon7559 »

@sincze

Because you got a working configuration, perhaps you can inform on the configuration/setting of the webserver, domain, ip and port?
That info is more direct than 'general description'.
Set1 = RPI-Zero+RFXCom433+S0PCM+Shield for BMP180/DS18B20/RS485+DDS238-1ZNs
Set2 = RPI-3A++RFLinkGTW+ESP8266s+PWS_WS7000
Common = KAKUs+3*PVLogger+PWS_TFA_Nexus
plus series of 'satellites' for dedicated interfacing, monitoring & control.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest