Search found 5 matches

by samhh83
Sunday 10 December 2017 23:09
Forum: LUA
Topic: Lua script to extract data from json
Replies: 8
Views: 5492

Re: Lua script to extract data from json

Thanks that did the trick..
by samhh83
Sunday 10 December 2017 23:04
Forum: LUA
Topic: Lua script to extract data from json
Replies: 8
Views: 5492

Re: Lua script to extract data from json

again your wright sorry, it's late.... :oops: :oops: :oops: it has to be " jsonData.lastReportWatts"
by samhh83
Sunday 10 December 2017 22:48
Forum: LUA
Topic: Lua script to extract data from json
Replies: 8
Views: 5492

Re: Lua script to extract data from json

You are wright, I just shortened the file and forgot to remove a comma at the end.
Hereby a revised version.
by samhh83
Sunday 10 December 2017 22:21
Forum: LUA
Topic: Lua script to extract data from json
Replies: 8
Views: 5492

Re: Lua script to extract data from json

Hi jvdz,
my mistake wrong error code. The wright one is "[string "commandArray = {} ..."]:16: attempt to concatenate global 'Inverter' (a nil value)"
I'm trying to get the "lastReportWatts" from every panel in separate meters. Normally it is something in the Line of:
local Variable = json:decode ...
by samhh83
Sunday 10 December 2017 21:59
Forum: LUA
Topic: Lua script to extract data from json
Replies: 8
Views: 5492

Lua script to extract data from json

Hello everybody

i'm looking around on the forum and the rest of the internet but i can't seem to find the right anwser. At home we have Enphase solar panels& gateway. I can get the production and consumption from the gateway and into virtual kwh meters. Now am i trying to parse the data i got from ...