Page 1 of 1

Ginlong Wind and Solar wifi-stick workaround

Posted: Sunday 10 December 2023 9:00
by underscore4
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!

Re: Ginlong Wind and Solar wifi-stick workaround

Posted: Sunday 10 December 2023 10:58
by waltervl
Thanks.
What are your experiences with self producing wind energy? What kind of wind setup do you use?

Re: Ginlong Wind and Solar wifi-stick workaround

Posted: Sunday 10 December 2023 18:30
by underscore4
waltervl wrote: Sunday 10 December 2023 10:58 Thanks.
What are your experiences with self producing wind energy? What kind of wind setup do you use?
I use this wind energy set-up since 2016 without problem. 2 KW wind turbines with monopole tower in grid tie.

Re: Ginlong Wind and Solar wifi-stick workaround

Posted: Friday 15 December 2023 10:30
by Toulon7559
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.

Re: Ginlong Wind and Solar wifi-stick workaround

Posted: Saturday 23 December 2023 9:45
by underscore4
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/