-
Notifications
You must be signed in to change notification settings - Fork 112
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Im a total noob and need help #18
Comments
Hi Grott is designed to use mqtt and to distribute it from there to the home automation tooling (eg domoticz, openhab and home assistent). With node red (javascript visualisation) it is posible to retrieve it from mqtt and send it to pvoutput. I do understand this sound very complex for somebody who is not familiar with this tooling. I can help you with setting up this complex enironment and help you with mqtt and nodered. What we also can try to do is enhance grott so it will sent the data directly to pvoutput (next or instead of mqtt). This might take some weeks but I can try to program it. Please let me know your preference. If there is somebody else with ideas I like to hear it. |
I use Google home in my house but only for a bunch of smart speakers that's about it oh and a xiaomi robot vacuum so I dont have open hub or anything like that just google home? I was hoping to redirect the ip and info from the shinewifi-x somewhere else to like my win 10 pc then have it send that data to pvoutput and then if possible also to https://server.growatt.com/ but if that's not possible I think pvoutput looks better anyway. So if someone could help me do that please let me know :) |
It will be a little bit complex to set it up if you do not have mqtt and nodered experience. I can help you and try to do it. I can also try to make a direct interface to pvoutput.org ( don't think that would be very complex). Look for version 2.2.x next week ;) |
Okay ill wait for version 2.2 hopefully next week thanks for your help :) |
Programming work is done :) I will perform some tests and publish it the comming days. I will also try to write a short instruction. Do you have python already installed? (Just trying to determine where to start) There is one challenge at this moment: I do not known how to run a python script as an always running process under windows.if somebody has some tips it would be very welcome. Otherwise internet has to help me. |
No i don't have python I've heard of it though its a programming tool I've run scripts before for like minecraft and other game mods but I've never programmed anything before. |
@xDAVIDx93 Most of the setup details are described in the wiki (https://github.com/johanmeijer/grott/wiki). But here in short what is needed:
6.. Now you can test grott for the first time:
Hopefully this helps you with setting up grott. Please let me know your results and expierences. |
Download grott from this github and place in the directory wanted Modify grott.ini: 6.. Now you can test grott for the first time: at the command line in the grott directory |
What I ment with the command line is a windows terminal screen with a command line. Go to start en enter CMD and start this applicactions. You have to switch to the directory with: If it works I think I would change the directory to (move the files to) something more simple like: |
do you have teamviewer? |
still no data to pvoutput though all still goes to server.growatt.com |
It does look oke! Your are almost there I think. But no data is rerouted via your windows machine. That seem to be strange. You can either grott run viaa the command line or as a service. With both active only one will handle the data (the one that started first). I see I made a mistake in the NSSM grott Service. The -c should be removed. That is the reason why the service does not start!. It should be: grott.py -v -o grottlog.txt Please do not start (stop) or remove the service. Run grott in the windows command screen. After a while you should see that some data is beeing process by grott. If the data is really rerouted via your desktop PC, the Growatt server should not receive any data anymore if grott is not running! You will not lose any data if grott is stopped. The data is bufferd in the shine-lan stick and will be sent as soon there is a connection again. Can you change the IP address via the shine-lan dialogue? (I have the shine wifi stick and this only possible when I reset the stick)? Maybe it is not changed via the growatt website (altough it was succesfull). I assume you have changed the PVOutput APIKEY and systemid in the .ini file. I do not have teamviewer yet but can install it if necessary. |
The good news is, Grott is working. But it is not processing the data right. Can you sent me the part with the growatt data? Hopefully you can capture this. In the meanwhile you can try it with. decrypt = yes |
Ill try in 2 or so hours when I get home from work problem is my inverter goes into stand by when the sun goes down but ill give it a go and see what happens |
For me the day has just started (the Netherlands) ;) |
I have some toubles with retrieving the right information from your screen dumps. I think I miss some records. Can you start grott with: python grott.py -v -o textlog.txt You will get only the start mesagge. The rest is logged into the file. Let it run for a while (10 minutes or so) and then stop it and sent the textlog.txt? Hopefu;lly the Growatt is still working. |
I need the data just before the last screen. I do not think this is in the screen dumps. |
Nope growatt is in stand by this os all I got, ill try again tomorrow. Grott Command line parameters processed: Grott Proces configuration file Grott Proces environmental variables Grott override settings if set in commandline Grott Proces json layout files: Grott layout records loaded: Grott settings: _Generic: Grott proxy mode started |
Okay thank you. I think the automatic protocol recognition is not totally working fine yet. I based it on to little test records I think. Sorry for that. |
Is it more stable now @xDAVIDx93 |
Yea so far so good not sure about the backed up data though it hasn't seem to have filled in the gaps for previous days its gone down for a few hours...? |
I am afraid that data is lost.
Do you miss data in pvoutput, growatt online or both?
Op zo 11 okt. 2020 10:56 schreef xDAVIDx93 <notifications@github.com>:
… Yea so far so good not sure about the backed up data though it hasn't seem
to have filled in the gaps for previous days its gone down for a few
hours...?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#18 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AD56LCQSJ77IOMY7IEEJ5QLSKFXMRANCNFSM4QFPGAAA>
.
|
When the shine wifi x disconnects no data is recorded to growatt server or pvoutput and when I reconnected it data is automatically written to growatt server and pvoutput but I'd have thought the shine wifi stick/inverter would back up data and write it to the growatt server when its back up and recording data |
That is true. And they are sent to the growatt server. Only I think grott
didn't sent them to mqtt and/or pvoutput because it didn't recognized them
as data records.
That issue is now solved standard in Grott (and could be solved with the
older release by adding an additional json file for the backup records).
Op zo 11 okt. 2020 12:36 schreef xDAVIDx93 <notifications@github.com>:
… When the shine wifi x disconnects no data is recorded to growatt server or
pvoutput and when I reconnected it data is automatically written to growatt
server and pvoutput but I'd have thought the shine wifi stick/inverter
would back up data and write it to the growatt server when its back up and
recording data
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#18 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AD56LCRZJLSAJEF6ROZVNATSKGDBPANCNFSM4QFPGAAA>
.
|
@xDAVIDx93 can we close this issue? You can always open a new one if new problems occurs. |
Uhm yea sure so long as i can still read it because sometimes I come back to it for instructions.. |
@xDAVIDx93 You can always find this issue under closed issues! |
Hi Johan, what's growatts default server ip address i want to change it back from my PC's ip address back to growatts for some reason it keeps losing connection to my router through my oc but it never did that just connected to the router and the growatt server.. |
The growatt ip address is 47.91.67.66.
Are you sure your pc is not going into sleep mode or something like that. I
am running grott without any interruptions for weeks.
Op ma 2 nov. 2020 00:38 schreef xDAVIDx93 <notifications@github.com>:
… Hi Johan, what's growatts default server ip address i want to change it
back from my PC's ip address back to growatts for some reason it keeps
losing connection to my router through my oc but it never did that just
connected to the router and the growatt server..
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
<#18 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AD56LCSECSNOSIJSASABURTSNXWOTANCNFSM4QFPGAAA>
.
|
My pc auto shuts down at 8pm and auto boots at 5am every morning .. When the sun goes down the inverter goes into sleep mode and disconnects from wifi on the router and most mornings it reconnects automatically when the sun rises as the pc is on well before sun rise but sometimes it doesn't auto reconnect for some unknown reason |
Ok. I do not totally understand why the communication would fail then. What might be a issue is that grott starts to early in the windows start-up process and that the netwerk setup is not totally completed. It is possible to delay a service startup: automatic (delayed start). You have to specify that in the service console or NSSM. See the picture below. |
Nah all good thanks I dont think a delayed start will fix anything cause I used to run it 24/7 and it would still disconnect |
What do you mean with disconnects? The PC from the network or the inverter (what is normal it powers down in the evening and should reconnect in the morning). |
updated to 2.5.2 this is what my grottlog.txt says Grott Command line parameters processed: Grott process configuration file Grott process environmental variables Grott override settings if set in commandline Grott process json layout files Grott layout records loaded Grott external record whitelist 'recwl.txt' not found Grott records whitelisted : {'5116', '5119', '0103', '0116', '0119', '5016', '0104', '5050', '5003', '5019', '0150', '5104', '5004', '5150', '5103'} Grott settings: _Generic: Grott proxy mode started this is my grott.ini Specify grott monitor configurationDefaults are describedRemove # and update the value to enable the settingLast updated: 2021-01-09Version 2.4.0[Generic] Specify verbose for extended messaging#verbose = True Specify minrecl for debugging purposes only (default = 100)#minrecl = 100 Specify mode (sniff or proxy)(> 2.1.0 proxy is default)#mode = proxy Specify port and IP address to listen to (only proxy), default port 5279, 0.0.0.0 ==> own ip address#ip = 0.0.0.0 To blocks commands from outside (to channge inverter and shine devices settings) specify blockcmd = True,specify noipf = True if you still want be able to dest ip addres from growatt serverSpecify noipf = True if you still want be able to dest ip addres from growatt server (advice only to usethis for a short time)#blockcmd = True Time = auto/server parameter enable/disable date/time retrieval from data record (server), default isauto: grott decides which time is used (data record if valid otherwise Server)If time = server Grott server time is alwas used#time = auto Sendbuf = True / False parameter to enable / disable sending historical (buffered) data. Default is sendbuf = True.#sendbuf = True Compat is True and valoffset needs to be set if offset / growatt protocol has been changed.#compat = False Specify inverter id (not necessary in version >2.1.0 if compat = false!)#inverterid = ABC1234567 Decrypt is False if growatt communication is not encrypted (older inverters), (not necessary in version>2.1.0 if compat = false!)#decrypt = True [Growatt] Ip address and port of Growatt server (specify only if IP has changed)#ip = 47.91.67.66 [MQTT] Mqtt parameters definitionsBe aware nomqtt = True means no MQTT processing will be done!!!!!!#nomqtt = False [PVOutput] PVOutput parameters definitionspvoutput = True Use this if you have one inverterapikey = 8faee4102ed7d87d3288f24eb72e73e6e79ec107 Use this if you have multiple inverters#systemid1 = 12345 [influx] Influxdb parameters definitions#influx = False [extension] grott extension parameters definitions#extension = True only things that are active is pvoutput growatt server is being updated with data but pvoutput isnt |
Hmm ok. I going to look into it. Does not seems to something to be wrong defined. If you only use pvoutput you might specify nomqqt=true (but I do not think it is necessary). It is strange that there is nothing being shown. Are you sure the data is routed via your PC? I expect that minimal some information should be there if grott receives and send data to the growatt server. Did you reset the growatt wifi stick by accident (or changed the IP address via the growatt webpages)? |
Oh I'm so silly I forgot I must have changed the IP back to growatt server I will change the IP back to the PC in the morning see how we go then :) |
lol ;) |
yep set the pc ip address again and all fixed sending you grottlog.txt to see if all looks good but otherwise its running :) Grott Command line parameters processed: Grott process configuration file Grott process environmental variables Grott override settings if set in commandline Grott process json layout files Grott layout records loaded Grott external record whitelist 'recwl.txt' not found Grott records whitelisted : {'0104', '5019', '5004', '5050', '5116', '0116', '5104', '0103', '5016', '0119', '5119', '5150', '5003', '5103', '0150'} Grott settings: _Generic: Grott proxy mode started
|
@xDAVIDx93 looks ok to me. You do not use MQTT I think (msg: MQTT connection refused by target) so you might disable MQTT processing by specifying nomqtt=True in the grott.ini. But again it does not hurt. |
4 days straight it run pefectly and pc was running 24/7 but this morning its disconnected again i dont see it on the network at all here is the grottlog which was last modified at 6:17am Grott Command line parameters processed: Grott process configuration file Grott process environmental variables Grott override settings if set in commandline Grott process json layout files Grott layout records loaded Grott external record whitelist 'recwl.txt' not found Grott records whitelisted : {'5116', '0119', '0150', '5019', '0104', '5050', '5104', '0103', '5004', '5003', '5119', '5103', '5016', '0116', '5150'} Grott settings: _Generic: Grott proxy mode started |
Strange. It seems that again no data is routed via your PC. It is possible that the shinewifi is reseted? |
No, no data is being uploaded to growatt server, pvoutput or grottlog.txt.. When I go into router admin Web page it doesn't say it's connected to wifi either It automatically reconnects to wifi and starts uploading data to growatt, pvoutput and grottlog.txt when I disconnect the shinewifi x stick and plug it back in. Once a week randomly it loses wifi connection when it goes into standby mode over night then doesn't bother to reconnect in the morning or it try's but fails then gives up... but then if I don't do anything randomly the next morning it will successfully reconnect to wifi like nothing happened..? |
I am not sure how it works with your inverter / shinewifi but my inverter (and the shinewifi) is powered off every day from the moment the solar panels does not deliver enough power anymore. In the morning everything is started again and connection with the wifi is established again. No issue's at all. If your inverter does not reconnect to the wifi it seems to me a network / wifi issue. Grott is not involved yet (that is only applicable if the inverter is connect to the wifi and start sending data). Maybe a restart of your router might help (be aware the IP address of your PC has not been changed). |
@johanmeijer got a new modem router and installed the latest update of grott 2.6.1h for the last week everything seems fine it's actually connecting in the morning where as before sometimes it wasn't I think that was a router issue. But I do have a question with grottlog.txt is there a way to have it record logs that spands the whole day or even the whole week because at the moment whenever shinewifi disconnects and reconnects it overwrites the grottlog.txt and starts over. If there's a way to do that can you run me through it because I forget how to use nssm/services thingo.. which is where I think we specified in the first place to make grottlog.txt..? |
Time ago I looked at the windows services. Give me some time to look into it. |
@xDAVIDx93 Sorry but you really have to dive into nssm again.
No every time grott stop/start the old grottlog file will be save in a file with a date/time stamp in the name. |
Hi just signed up to github downloaded the grott-2.1.1-Beta- and extracted it i have a shinwifi-x and im just wondering if someone can help run me through setting this up end goal is to have pvoutput website running with automatic data update im using windows 10 for now..
The text was updated successfully, but these errors were encountered: