Bertware

Results 142 comments of Bertware

Fixed now by replacing both `latest.zip` and the `latest/` folder with the file from November 2nd. Those GTFS files are being created by an old shell script on a cron-job,...

Added ``` if [ -s $TMPFILE ]; then # The file is not-empty. echo "Download completed" else # The file is empty. echo "Failed to download file" exit 1 fi...

gtfs.irail.be has gotten an update to be more stable, which solves this issue

The API which was used by iRail has been shut down. ``` {"ver":"1.21","lang":"eng","id":"g64magxi4q4xym8x","err":"CLIENTVERSION","cInfo":{"code":"VD","url":"Cette fonctionnalité n'est plus disponible. Pour planifier votre voyage, téléchargez la nouvelle app SNCB. / Deze app is...

This affects other endpoints as well, which also need to be rewritten against other data sources.

I already reverse engineered the new NMBS app earlier, you can test the requests and possibly try to adjust https://github.com/iRail/iRail/blob/master/src/api/data/NMBS/ConnectionsDatasource.php to use the data from the new endpoint. https://gist.github.com/Bertware/6c8dc535135070854bee90016bf9cc4f

Quickly tested (HTTP is required!) but it seems like a new API key should be obtained by proxying traffic from the new NMBS app through a MITM proxy server which...

I also believe the new API is provided by Hafas, just like the old one. This, might make the migration of the connections endpoint relatively easy, but we need to...

@Muspah if that's correct it should be fairly easy to fix. If someone can save me the time of reverse engineering the API key I can probably fix at least...

NMBS has temporarily restored the old app infrastructure in order to give iRail time to update. In two weeks the service will be shut down again, but this should give...