I try to use the ASCII File Reader to parse a JSON structure (which is a single line in the file), but somehow I cannot recieve any data from it.
Can you please explain how to use the Point Identifier, Point Identifier Index, Value Index and Value RegEx correctly?
Data Source file:
{"result":{"overview":[{"meta":"GriPwr","name":"Power","unit":"W","value":"2994"},{"meta":"GriEgyTdy","name":"Day yield","unit":"kWh","value":"50.252"},{"meta":"GriEgyTot","name":"Total yield","unit":"kWh","value":"28441.116"},{"meta":"OpStt","name":"Condition","value":"Ok, Ok, Ok"},{"meta":"Msg","name":"Message","value":""}]},"format":"JSON","proc":"GetPlantOverview","version":"1.0","id":"1"}
If I want the Power, I tried the following with no result:
Point Identifier: {"result:"
Point Identifier Index: 1
Value Index: 1
Value RegEx: "meta":"GriPwr","name":"Power","unit":"W","value":"(\d+)"}
Thanks a lot!
Torsten
P.S. I just found the Wiki http://wiki.infiniteautomation.com by chance. If you want to use it in a serious way for documentation (which I strongly support), please link it from your homepage. Otherwise people cannot find it :wink: