commit | 0eb0c5adfe8f05dcf49d051c1c0f78e71a8609d5 | [log] [tgz] |
---|---|---|
author | Adrià Vilanova Martínez <me@avm99963.com> | Sun Nov 28 18:34:17 2021 +0100 |
committer | Adrià Vilanova Martínez <me@avm99963.com> | Sun Nov 28 18:34:17 2021 +0100 |
tree | 96ce5c0fa7829f9381a64176f00ebbbfa0ea6e86 | |
parent | f4c66728749ef721364e7e1e2e0f10c3f561060f [diff] |
Fix server bug on Sundays On Sundays (|$rdow = 0|), |$rdow - 1| would return -1 instead of 6, which caused an error in the getTimes action. This CL fixes this issue. Fixed: misc:37 Change-Id: Ib4dc54ef2bf4cd84bd36b83230fcb1154decf17f
Schedule viewer for the Barcelona subway.
ZipArchive
and PDO
classes (specifically install the PDO_SQLITE
driver)config.default.php
file to config.php
and fill in the details (you can get an API key directly from TMB here.$conf["databaseFile"]
enter the absolute path of the location where you want to save your database (including the file name). If the website is located in the /var/www/html/schedules/
folder, you can create a new files
folder there and set the variable to /var/www/html/schedules/files/gtfs.sqlite3
.cron/parsegtfs.php
script regularly to get updated information (e.g. once a week).