Closed CarminKern closed 2 years ago
Hi @CarminKern,
can you please send me the content of the JSON state ?
Thanks, Ralf
the JSON of "DepartureTimetable3"
{ "type": "state", "common": { "name": "Departure Timetable JSON", "type": "string", "role": "json", "read": true, "write": false, "desc": "Departure Timetable JSON" }, "native": {}, "from": "system.adapter.fahrplan.0", "user": "system.user.admin", "ts": 1642328333689, "_id": "fahrplan.0.DepartureTimetable3.JSON", "acl": { "object": 1636, "state": 1636, "owner": "system.user.admin", "ownerGroup": "system.group.administrator" } }
the Json of "0" ( It is a Bus)
{ "type": "state", "common": { "name": "Departure JSON", "type": "string", "role": "json", "read": true, "write": false, "desc": "Departure JSON" }, "native": {}, "from": "system.adapter.fahrplan.0", "user": "system.user.admin", "ts": 1643897223062, "_id": "fahrplan.0.DepartureTimetable3.0.JSON", "acl": { "object": 1636, "state": 1636, "owner": "system.user.admin", "ownerGroup": "system.group.administrator" } }
Hi @CarminKern
I mean the state named "JSON". Maybe you have to activate the writing of JSON in the adapter settings.
The state has a string value which contains the data submitted by HAFAS.
Oh sorry 😅
DepartureTimetable3/JSON
[ { "tripId": "1|802699|9|81|5022022", "stop": { "type": "stop", "id": "682659", "name": "Fischbach Bahnhof, Nürnberg", "location": { "type": "location", "id": "682659", "latitude": 49.413353, "longitude": 11.174904 }, "products": { "nationalExpress": false, "national": false, "regionalExp": false, "regional": true, "suburban": true, "bus": true, "ferry": false, "subway": false, "tram": false, "taxi": false }, "station": { "type": "station", "id": "8001989", "name": "Fischbach(Nürnberg)", "location": { "type": "location", "id": "8001989", "latitude": 49.413281, "longitude": 11.174149 }, "products": { "nationalExpress": false, "national": false, "regionalExp": false, "regional": true, "suburban": true, "bus": true, "ferry": false, "subway": false, "tram": false, "taxi": false } } }, "when": "2022-02-05T14:38:00+01:00", "plannedWhen": "2022-02-05T14:38:00+01:00", "delay": null, "platform": null, "plannedPlatform": null, "direction": "Langwasser Süd", "provenance": null, "line": { "type": "line", "id": "5-vanbus-59", "fahrtNr": "48841", "name": "Bus 59", "public": true, "adminCode": "vanbus", "productName": "Bus", "mode": "bus", "product": "bus", "operator": { "type": "operator", "id": "nahreisezug", "name": "Nahreisezug" } }, "remarks": [], "currentTripPosition": { "type": "location", "latitude": 49.419591, "longitude": 11.189925 } }, { "tripId": "1|802700|7|81|5022022", "stop": { "type": "stop", "id": "682659", "name": "Fischbach Bahnhof, Nürnberg", "location": { "type": "location", "id": "682659", "latitude": 49.413353, "longitude": 11.174904 }, "products": { "nationalExpress": false, "national": false, "regionalExp": false, "regional": true, "suburban": true, "bus": true, "ferry": false, "subway": false, "tram": false, "taxi": false }, "station": { "type": "station", "id": "8001989", "name": "Fischbach(Nürnberg)", "location": { "type": "location", "id": "8001989", "latitude": 49.413281, "longitude": 11.174149 }, "products": { "nationalExpress": false, "national": false, "regionalExp": false, "regional": true, "suburban": true, "bus": true, "ferry": false, "subway": false, "tram": false, "taxi": false } } }, "when": "2022-02-05T14:41:00+01:00", "plannedWhen": "2022-02-05T14:41:00+01:00", "delay": null, "platform": null, "plannedPlatform": null, "direction": "Birnthon über Fischbach", "provenance": null, "line": { "type": "line", "id": "5-vanbus-59", "fahrtNr": "48900", "name": "Bus 59", "public": true, "adminCode": "vanbus", "productName": "Bus", "mode": "bus", "product": "bus", "operator": { "type": "operator", "id": "nahreisezug", "name": "Nahreisezug" } }, "remarks": [], "currentTripPosition": { "type": "location", "latitude": 49.400606, "longitude": 11.150741 } }, { "tripId": "1|1216997|5|81|5022022", "stop": { "type": "stop", "id": "679359", "name": "Fischbach Bahnhof Wende, Nürnberg", "location": { "type": "location", "id": "679359", "latitude": 49.414252, "longitude": 11.173241 }, "products": { "nationalExpress": false, "national": false, "regionalExp": false, "regional": true, "suburban": true, "bus": true, "ferry": false, "subway": false, "tram": false, "taxi": false }, "station": { "type": "station", "id": "8001989", "name": "Fischbach(Nürnberg)", "location": { "type": "location", "id": "8001989", "latitude": 49.413281, "longitude": 11.174149 }, "products": { "nationalExpress": false, "national": false, "regionalExp": false, "regional": true, "suburban": true, "bus": true, "ferry": false, "subway": false, "tram": false, "taxi": false } } }, "when": "2022-02-05T14:41:00+01:00", "plannedWhen": "2022-02-05T14:41:00+01:00", "delay": null, "platform": null, "plannedPlatform": null, "direction": "Langwasser Mitte über Moorenbrunn", "provenance": null, "line": { "type": "line", "id": "5-vanbus-57", "fahrtNr": "46567", "name": "Bus 57", "public": true, "adminCode": "vanbus", "productName": "Bus", "mode": "bus", "product": "bus", "operator": { "type": "operator", "id": "nahreisezug", "name": "Nahreisezug" } }, "remarks": [], "currentTripPosition": { "type": "location", "latitude": 49.40742, "longitude": 11.169699 } }, { "tripId": "1|1216997|5|81|5022022", "stop": { "type": "stop", "id": "682659", "name": "Fischbach Bahnhof, Nürnberg", "location": { "type": "location", "id": "682659", "latitude": 49.413353, "longitude": 11.174904 }, "products": { "nationalExpress": false, "national": false, "regionalExp": false, "regional": true, "suburban": true, "bus": true, "ferry": false, "subway": false, "tram": false, "taxi": false }, "station": { "type": "station", "id": "8001989", "name": "Fischbach(Nürnberg)", "location": { "type": "location", "id": "8001989", "latitude": 49.413281, "longitude": 11.174149 }, "products": { "nationalExpress": false, "national": false, "regionalExp": false, "regional": true, "suburban": true, "bus": true, "ferry": false, "subway": false, "tram": false, "taxi": false } } }, "when": "2022-02-05T14:42:00+01:00", "plannedWhen": "2022-02-05T14:42:00+01:00", "delay": null, "platform": null, "plannedPlatform": null, "direction": "Langwasser Mitte über Moorenbrunn", "provenance": null, "line": { "type": "line", "id": "5-vanbus-57", "fahrtNr": "46567", "name": "Bus 57", "public": true, "adminCode": "vanbus", "productName": "Bus", "mode": "bus", "product": "bus", "operator": { "type": "operator", "id": "nahreisezug", "name": "Nahreisezug" } }, "remarks": [], "currentTripPosition": { "type": "location", "latitude": 49.40742, "longitude": 11.169699 } }, { "tripId": "1|210680|3|81|5022022", "stop": { "type": "stop", "id": "8001989", "name": "Fischbach(Nürnberg)", "location": { "type": "location", "id": "8001989", "latitude": 49.413281, "longitude": 11.174149 }, "products": { "nationalExpress": false, "national": false, "regionalExp": false, "regional": true, "suburban": true, "bus": true, "ferry": false, "subway": false, "tram": false, "taxi": false } }, "when": "2022-02-05T14:44:00+01:00", "plannedWhen": "2022-02-05T14:43:00+01:00", "delay": 60, "platform": "1", "plannedPlatform": "1", "direction": "Roth", "provenance": null, "line": { "type": "line", "id": "4-800721-2", "fahrtNr": "39632", "name": "S 2", "public": true, "adminCode": "800721", "productName": "S", "mode": "train", "product": "suburban", "operator": { "type": "operator", "id": "db-regio-ag-bayern", "name": "DB Regio AG Bayern" } }, "remarks": [], "currentTripPosition": { "type": "location", "latitude": 49.387878, "longitude": 11.260985 } }, { "tripId": "1|802392|8|81|5022022", "stop": { "type": "stop", "id": "682659", "name": "Fischbach Bahnhof, Nürnberg", "location": { "type": "location", "id": "682659", "latitude": 49.413353, "longitude": 11.174904 }, "products": { "nationalExpress": false, "national": false, "regionalExp": false, "regional": true, "suburban": true, "bus": true, "ferry": false, "subway": false, "tram": false, "taxi": false }, "station": { "type": "station", "id": "8001989", "name": "Fischbach(Nürnberg)", "location": { "type": "location", "id": "8001989", "latitude": 49.413281, "longitude": 11.174149 }, "products": { "nationalExpress": false, "national": false, "regionalExp": false, "regional": true, "suburban": true, "bus": true, "ferry": false, "subway": false, "tram": false, "taxi": false } } }, "when": "2022-02-05T14:50:00+01:00", "plannedWhen": "2022-02-05T14:50:00+01:00", "delay": null, "platform": null, "plannedPlatform": null, "direction": "Fischbach Flachsröste", "provenance": null, "line": { "type": "line", "id": "5-vanbus-56", "fahrtNr": "44123", "name": "Bus 56", "public": true, "adminCode": "vanbus", "productName": "Bus", "mode": "bus", "product": "bus", "operator": { "type": "operator", "id": "nahreisezug", "name": "Nahreisezug" } }, "remarks": [] }, { "tripId": "1|210693|1|81|5022022", "stop": { "type": "stop", "id": "8001989", "name": "Fischbach(Nürnberg)", "location": { "type": "location", "id": "8001989", "latitude": 49.413281, "longitude": 11.174149 }, "products": { "nationalExpress": false, "national": false, "regionalExp": false, "regional": true, "suburban": true, "bus": true, "ferry": false, "subway": false, "tram": false, "taxi": false } }, "when": "2022-02-05T14:56:00+01:00", "plannedWhen": "2022-02-05T14:56:00+01:00", "delay": 0, "platform": "2", "plannedPlatform": "2", "direction": "Altdorf(b Nürnberg)", "provenance": null, "line": { "type": "line", "id": "4-800721-2", "fahrtNr": "39633", "name": "S 2", "public": true, "adminCode": "800721", "productName": "S", "mode": "train", "product": "suburban", "operator": { "type": "operator", "id": "db-regio-ag-bayern", "name": "DB Regio AG Bayern" } }, "remarks": [], "currentTripPosition": { "type": "location", "latitude": 49.437336, "longitude": 11.057604 } }, { "tripId": "1|802182|10|81|5022022", "stop": { "type": "stop", "id": "682659", "name": "Fischbach Bahnhof, Nürnberg", "location": { "type": "location", "id": "682659", "latitude": 49.413353, "longitude": 11.174904 }, "products": { "nationalExpress": false, "national": false, "regionalExp": false, "regional": true, "suburban": true, "bus": true, "ferry": false, "subway": false, "tram": false, "taxi": false }, "station": { "type": "station", "id": "8001989", "name": "Fischbach(Nürnberg)", "location": { "type": "location", "id": "8001989", "latitude": 49.413281, "longitude": 11.174149 }, "products": { "nationalExpress": false, "national": false, "regionalExp": false, "regional": true, "suburban": true, "bus": true, "ferry": false, "subway": false, "tram": false, "taxi": false } } }, "when": "2022-02-05T14:58:00+01:00", "plannedWhen": "2022-02-05T14:58:00+01:00", "delay": null, "platform": null, "plannedPlatform": null, "direction": "Langwasser Süd", "provenance": null, "line": { "type": "line", "id": "5-vanbus-54", "fahrtNr": "41722", "name": "Bus 54", "public": true, "adminCode": "vanbus", "productName": "Bus", "mode": "bus", "product": "bus", "operator": { "type": "operator", "id": "nahreisezug", "name": "Nahreisezug" } }, "remarks": [] }, { "tripId": "1|802187|7|81|5022022", "stop": { "type": "stop", "id": "682659", "name": "Fischbach Bahnhof, Nürnberg", "location": { "type": "location", "id": "682659", "latitude": 49.413353, "longitude": 11.174904 }, "products": { "nationalExpress": false, "national": false, "regionalExp": false, "regional": true, "suburban": true, "bus": true, "ferry": false, "subway": false, "tram": false, "taxi": false }, "station": { "type": "station", "id": "8001989", "name": "Fischbach(Nürnberg)", "location": { "type": "location", "id": "8001989", "latitude": 49.413281, "longitude": 11.174149 }, "products": { "nationalExpress": false, "national": false, "regionalExp": false, "regional": true, "suburban": true, "bus": true, "ferry": false, "subway": false, "tram": false, "taxi": false } } }, "when": "2022-02-05T15:01:00+01:00", "plannedWhen": "2022-02-05T15:01:00+01:00", "delay": null, "platform": null, "plannedPlatform": null, "direction": "Brunn Fischbach", "provenance": null, "line": { "type": "line", "id": "5-vanbus-54", "fahrtNr": "41625", "name": "Bus 54", "public": true, "adminCode": "vanbus", "productName": "Bus", "mode": "bus", "product": "bus", "operator": { "type": "operator", "id": "nahreisezug", "name": "Nahreisezug" } }, "remarks": [] }, { "tripId": "1|1216992|6|81|5022022", "stop": { "type": "stop", "id": "679359", "name": "Fischbach Bahnhof Wende, Nürnberg", "location": { "type": "location", "id": "679359", "latitude": 49.414252, "longitude": 11.173241 }, "products": { "nationalExpress": false, "national": false, "regionalExp": false, "regional": true, "suburban": true, "bus": true, "ferry": false, "subway": false, "tram": false, "taxi": false }, "station": { "type": "station", "id": "8001989", "name": "Fischbach(Nürnberg)", "location": { "type": "location", "id": "8001989", "latitude": 49.413281, "longitude": 11.174149 }, "products": { "nationalExpress": false, "national": false, "regionalExp": false, "regional": true, "suburban": true, "bus": true, "ferry": false, "subway": false, "tram": false, "taxi": false } } }, "when": "2022-02-05T15:01:00+01:00", "plannedWhen": "2022-02-05T15:01:00+01:00", "delay": null, "platform": null, "plannedPlatform": null, "direction": "Langwasser Mitte über Moorenbrunn", "provenance": null, "line": { "type": "line", "id": "5-vanbus-57", "fahrtNr": "46543", "name": "Bus 57", "public": true, "adminCode": "vanbus", "productName": "Bus", "mode": "bus", "product": "bus", "operator": { "type": "operator", "id": "nahreisezug", "name": "Nahreisezug" } }, "remarks": [] } ]
DepartureTimetable3/0/JSON
{ "tripId": "1|802699|9|81|5022022", "stop": { "type": "stop", "id": "682659", "name": "Fischbach Bahnhof, Nürnberg", "location": { "type": "location", "id": "682659", "latitude": 49.413353, "longitude": 11.174904 }, "products": { "nationalExpress": false, "national": false, "regionalExp": false, "regional": true, "suburban": true, "bus": true, "ferry": false, "subway": false, "tram": false, "taxi": false }, "station": { "type": "station", "id": "8001989", "name": "Fischbach(Nürnberg)", "location": { "type": "location", "id": "8001989", "latitude": 49.413281, "longitude": 11.174149 }, "products": { "nationalExpress": false, "national": false, "regionalExp": false, "regional": true, "suburban": true, "bus": true, "ferry": false, "subway": false, "tram": false, "taxi": false } } }, "when": "2022-02-05T14:38:00+01:00", "plannedWhen": "2022-02-05T14:38:00+01:00", "delay": null, "platform": null, "plannedPlatform": null, "direction": "Langwasser Süd", "provenance": null, "line": { "type": "line", "id": "5-vanbus-59", "fahrtNr": "48841", "name": "Bus 59", "public": true, "adminCode": "vanbus", "productName": "Bus", "mode": "bus", "product": "bus", "operator": { "type": "operator", "id": "nahreisezug", "name": "Nahreisezug" } }, "remarks": [], "currentTripPosition": { "type": "location", "latitude": 49.419591, "longitude": 11.189925 } }
@CarminKern
Just to confirm: Can you check if the problem is solved with the current version from GitHub ? I use HAFAS module and made an update last week.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Describe the bug
The vehicle Filter of the Depatures Timetables not work correct.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Screenshots & Logfiles
^^
Versions:
Additional context
If I only specify S-Bahn, then buses will still be displayed to me. If I only specify buses, only buses are displayed.