[UserModul] JSON vDev Creator - Help/Example

Tips, Tricks and Scripts to enhance your home automation and workaround known device bugs, limitations and incompatibilities
Post Reply
Mystic
Posts: 1
Joined: 25 Mar 2019 23:29

[UserModul] JSON vDev Creator - Help/Example

Post by Mystic » 26 Mar 2019 00:31

Hi,

Addon: JSON vDev Creator
Razberry Z-Wave.ME

what do you have to enter in the config fields?
I did not find an example

Full URL to JSON resource: http://192.168...../jsonDebug.cgi
Regular expression used to convert result: ???
Index of RegExp match required: ???
JSON path expression: ???
Metric type: ???
Measurement units: ???
Device name: ???


I have JSON Data:
I want to show a value from that
percentage":100
or
voltage":27.61

http://192.168...../jsonDebug.cgi

{"landroid":{"state":"home","boardTemperature":11.8,"distance":-9523222,"wheelLeftDistance":-19046445,"wheelRightDistance":0,"angle":-2480183,"rainSensor":3900,"aree":{"index":8,"vet":[1,1,1,1,1,1,1,1,1,1]},"battery":{"percentage":100,"voltage":27.61,"temperature":9.4,"ntcResistance":18455},"batteryCharger":{"state":"idle","chargeCurrent":12.89},"accelerometer":{"gravity":[-0.031,0.093,1.024],"angle":[-1.000000,4.000000,0.000000]},"gyroscope":{"angularSpeed":[-0.650,0.162,-1.009],"angle":[-13159256.000000,10672200.000000,-495337.000000]},"motor":[{"speed":0,"maxSpeed":60,"speedReduction":0,"rpm":0,"feedbackError":0,"acceleration":100,"deceleration":220,"fault":false},{"speed":0,"maxSpeed":60,"speedReduction":0,"rpm":990,"feedbackError":25,"acceleration":100,"deceleration":220,"fault":false},{"speed":0,"maxSpeed":68,"speedReduction":0,"rpm":0,"feedbackError":0,"acceleration":100,"deceleration":250,"fault":false}],"guide":{"straightSpeed":0,"turningSpeed":0,"measuredWheelDeltaDistance":0,"requiredWheelDeltaDistance":0,"deltaSpeedCorrection":0}},"id":{"stop1":true,"stop2":true,"lift1":false,"lift2":false,"trappedLeft":false,"trappedRight":false,"door1":true,"door2":true},"dipSw":{"sw1":false,"sw2":false,"sw3":true,"sw4":false},"wireSensor":{"fwVer":0.70,"left":"outside","right":"outside"}}


Example of another program
https://www.msxfaq.de/sonst/iot/landroi ... nschaf.htm

Many Thanks

Post Reply