Hi,
recently the cloud from Ginlong ( https://ginlongmonitoring.com) has stopped to work and i could not read anymore in Domoticz the data by my Ginlong Wind inverter.
The script collect data in json format and read always the last update data into the file to keep update and sync Domoticz.
I have then implmented this script to log and push data locally based on the original code from graham0 (https://github.com/graham0/ginlong-wifi).
The log file 'domoticz-log.json' contains following values separated as follows:
{ "kwh_day": 8.8, "kwh_month": 12, "ac_amps": 4.0, "timestamp": "2023-12-02 10:01", "kwh_yesterday": 3.0, "kwh_lastmonth": 133, "dc_volts2": 0.0, "dc_amps1": 3.7, "dc_amps2": 0.0, "temp": 27.6, "ac_volts": 244.8, "ac_freq": 49.95, "kwh_total": 7538.0, "watt_now": 979, "dc_volts1": 246.6 }
The script 'upldata.sh' will read and push data in Domoticz to update sensors. Use crontab -e in your linux machine to automate the job in Domoticz.
Please feel free to use it and help me if possible for improvement in Domoticz.
Code available at https://github.com/p3pp3-hash/ginlongfy.
Enjoy!
Ginlong Wind and Solar wifi-stick workaround
Moderator: leecollings
-
- Posts: 20
- Joined: Sunday 19 March 2017 22:06
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
- waltervl
- Posts: 5148
- Joined: Monday 28 January 2019 18:48
- Target OS: Linux
- Domoticz version: 2024.7
- Location: NL
- Contact:
Re: Ginlong Wind and Solar wifi-stick workaround
Thanks.
What are your experiences with self producing wind energy? What kind of wind setup do you use?
What are your experiences with self producing wind energy? What kind of wind setup do you use?
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
-
- Posts: 20
- Joined: Sunday 19 March 2017 22:06
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
-
- Posts: 843
- Joined: Sunday 23 February 2014 17:56
- Target OS: Raspberry Pi / ODroid
- Domoticz version: mixed
- Location: Hengelo(Ov)/NL
- Contact:
Re: Ginlong Wind and Solar wifi-stick workaround
My other, older Raspberries already have jq1.5 or jq1.6, as prerequisite for crashguard-software, in conjunction with Raspian_Buster.
For running the Ginlong-script from this thread on a 'fresher' Raspian_instance with Bullseye needed to install jq, presently version 1.6.
Probably some minor problem, but have problems fresh installing that module jq_1.6.
Tried the various options on https://www.scaler.com/topics/linux-jq/ , but none worked.
Because the straightforward install failed, the tar.gz-file has been downloaded to /home/pi/Downloads,
with extraction installing in folder /home/pi/Downloads/jq-1.6
Have nagging feeling that somewhere that latter form of jq-setup is not correct, and/or that something is wrong with certificate-handling for installation: that aspect as off-topic for this thread, better be handled in another thread.
For this thread help appreciated how to circumvent the use of jq for this script?
The latter meaning a functionally equivalent replacement for the scriptlines applying jq.
Or pragmatically I will try installation of the Ginlong-reader on another Raspberry which already has jq,
with setup for server_B at the inverter redirected to this other Raspberry.
For running the Ginlong-script from this thread on a 'fresher' Raspian_instance with Bullseye needed to install jq, presently version 1.6.
Probably some minor problem, but have problems fresh installing that module jq_1.6.
Tried the various options on https://www.scaler.com/topics/linux-jq/ , but none worked.
Because the straightforward install failed, the tar.gz-file has been downloaded to /home/pi/Downloads,
with extraction installing in folder /home/pi/Downloads/jq-1.6
Have nagging feeling that somewhere that latter form of jq-setup is not correct, and/or that something is wrong with certificate-handling for installation: that aspect as off-topic for this thread, better be handled in another thread.
For this thread help appreciated how to circumvent the use of jq for this script?
The latter meaning a functionally equivalent replacement for the scriptlines applying jq.
Or pragmatically I will try installation of the Ginlong-reader on another Raspberry which already has jq,
with setup for server_B at the inverter redirected to this other Raspberry.
Last edited by Toulon7559 on Tuesday 26 December 2023 16:08, edited 6 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.
Set2 = RPI-3A++RFLinkGTW+ESP8266s+PWS_WS7000
Common = KAKUs+3*PVLogger+PWS_TFA_Nexus
plus series of 'satellites' for dedicated interfacing, monitoring & control.
-
- Posts: 20
- Joined: Sunday 19 March 2017 22:06
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Ginlong Wind and Solar wifi-stick workaround
Hi,
i am running with no problems jq-1.5-1. Not sure if i got fully the error, but why you do not install it with internal repository?
https://lindevs.com/install-jq-on-raspberry-pi/
i am running with no problems jq-1.5-1. Not sure if i got fully the error, but why you do not install it with internal repository?
https://lindevs.com/install-jq-on-raspberry-pi/
Who is online
Users browsing this forum: No registered users and 1 guest