-
Notifications
You must be signed in to change notification settings - Fork 120
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: Blockly attributs in JSON show NULL #1647
Comments
Okay that's an edge case. You can use JSONata to get that Attribute.
But your attribute is named
|
This is not easy to implement. e.g.
What is the path?
|
The structure of the response is not very common: "position.altitude": 471,
"position.direction": 323,
"position.hdop": 1.6,
"position.latitude": 48.48151,
"position.longitude": 11.236118,
"position.pdop": 1.9,
"position satellites": 8,
"position.speed": 0,
"position.valid": true, Should be: "position": {
"altitude": 471,
"direction": 323,
"hdop": 1.6,
"latitude": 48.48151,
"longitude": 11.236118,
"pdop": 1.9,
"satellites": 8,
"speed": 0,
"valid": true
} Please use JSONata in Blockly to extract the information |
Fully aggree with you, as it seems they convert it from a mqtt interface. If I don't split the JSON and I would like to use the last information: |
I'm sure that
Script type
Blockly
The problem
I have a JSON with various attributes, some of them can be read out with the blocky function, otheronce cant.
I asked the question of Facebook already and a other user confirmed, that its a issue of the getAttr(). On use of JSON.parse() with [" "] it is working.
iobroker.current.log (in debug mode!)
No response
Version of nodejs
18.17.1
Version of ioBroker js-controller
5.0.19
Version of adapter
8.3.1
The text was updated successfully, but these errors were encountered: