mabunixda / node-red-contrib-fronius-solar

MIT License
9 stars 2 forks source link

trying to configure and use, but failing #4

Closed pacraf closed 4 years ago

pacraf commented 4 years ago

thank you for sharing node. unfortunatelly I can not make it work for me. I configured node (IP, ID). but what should I inject to get answer? could not find any example... could you guide a bit on this matter? below is my test flow (I am not sure if device ID should be kept secret - so last 4 digits are xxxxed)

nodes

Here below is how node is configured:

node_config

and here how I tried to inject query... most probavly failed here... node_configa

my inverter answers some browser api request, like here, so seems to be OK for example pointing browser here http://192.168.55.127/solar_api/v1/GetInverterRealtimeData.cgi gives answer:

{ Body: { Data: { } }, Head: { RequestArguments: { DeviceClass: "Inverter", Scope: "" }, Status: { Code: 6, Reason: "CGI-Args: Invalid parameter '' for attribute 'Scope' (use 'System' or 'Device')", UserMessage: "" }, Timestamp: "2020-04-10T11:44:44+02:00" } }

kind regards, rafael.

mabunixda commented 4 years ago

Hi, where did you get your device id from? I am just using 1 as device id. The device id is indexing the converters from my point of view

pacraf commented 4 years ago

According googling results it is unique number you can see for example when turning it into ap mode. I followed this guide to get it: https://youtu.be/vILngSsrxCI

mabunixda commented 4 years ago

Can you give it a try with 1 as ID ?

pacraf commented 4 years ago

Yes, sure. But other part of setup look ok for you? What I would like really to read is current generating power, and daily production. What payload should I use to have proper response?

pacraf commented 4 years ago

just tried with 1 as ID deployed, and stuck on the same - no response in debug monitor. But also I dont know what to inject to input to have any response?

I tried few injection query , but always no answer in debug monitor, and red (error?) note [Object object] look below on attached picture. nodes_2

mabunixda commented 4 years ago

Can you post a screenshot of your inverter node? I assume you are on the wrong API version - go on 0 which should be default

mabunixda commented 4 years ago

My configuration looks like following: image

a timestamp is injected - could be also empty string - is afterwards transformed to a valid influxdb insert object and inserted into an influx table

pacraf commented 4 years ago

You were right - choosen was API version to 1. Now it responds, and I can process data further. output_fronius_json THANK YOU onece again for sharing the node and assistance.

I think it is time to close the issue.

or maybe before , you could share how do you utilise your data? it goes to influx for storage and later visualisation? on what platform?

In my case it will be added very soon to "kindle weather display" , which I recomend to every enthusiast of node red , smart home etc.

mabunixda commented 4 years ago

The data is stored within influx and visualized in grafana like all house related data. I wanted to get some vis into my smart-home app but was not very motivated to do this ;-)

I gonna add an example flow within the repo ... and update the readme