Welcome to Smart Home Forum by FIBARO
Dear Guest,
as you can notice parts of Smart Home Forum by FIBARO is not available for you. You have to register in order to view all content and post in our community. Don't worry! Registration is a simple free process that requires minimal information for you to sign up. Become a part of of Smart Home Forum by FIBARO by creating an account.
As a member you can:
- Start new topics and reply to others
- Follow topics and users to get email updates
- Get your own profile page and make new friends
- Send personal messages
- ... and learn a lot about our system!
Regards,
Smart Home Forum by FIBARO Team

Question
tnesheim 8
Hi
I´m trying to connect to Entur, the central Norwegian travel information hub, to get subway data to my HC2 for in turn på present this on a small display at my entrance door.
I think I have contact with the server but I need to send a json tabel/structure to get some information in return. This structure is as follows:
{
quay(id: "NSR:Quay:10825") {
estimatedCalls(timeRange: 72100, numberOfDepartures: 1) {
aimedArrivalTime
destinationDisplay {
frontText
}
}
}
}
How must I format this table/structure for in turn to use the json.encode command? I´ve tried in several ways but get error messages...
(This in the "generator" of the datastructure I need to send to
Please login or register to see this link.
along with some headers )9 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.