Please Note This forum exists for community support for the Mango product family and the Radix IoT Platform. Although Radix IoT employees participate in this forum from time to time, there is no guarantee of a response to anything posted here, nor can Radix IoT, LLC guarantee the accuracy of any information expressed or conveyed. Specific project questions from customers with active support contracts are asked to send requests to support@radixiot.com.
Json data?
-
Hi,
I searched around in the forums - I couldn't find anything. Is there any easy way, to get datapoints out of JSON formatted data?
I have this data ---
{"s0": {"status":"2", "enabledSensors":"964691456", "sensorName":"Testing", "nodeAddress":"beef" ,"dio9": "1" ,"dio10": "1" ,"batteryVoltage": " 0.00" ,"internalTemp": " 0.00" ,"dr1048temp": "0" ,"dr1048humid": "0" ,"dr1048light": "0"
I'm interested in S0->dio9, "1".
I've got a regex express to grab dio9, but what if I have more than 1 s0?
Anyone have any experience getting json data?
sean
-
Have you looked at import/export?
-
The data is on a webserver - I can sort of grab it via regex on a http retriever -
-
Ah, when you said "datapoints" i thought you meant the creation of a point based upon external data. If you're just grabbing readings, http retriever should do it, yeah.
-
I want to pull data off an inverter, which replies to http GETS in JSON
Here is the manual for the device http://files.sma.de/dl/2585/SWebBoxRPC-BEN092713.pdf
I can see this could kind of work using the regex, but is there an easier way?
-
Regex is the only way at the moment. Of course, a data source could be built probably easily.