start() script in gbfs/index.js does the following:
- Function that gets all vehicle IDs from LIME.
- In
data/gbfs/vehiclesdirectory it stores a file per vehicle.
- Function that counts amount of unique files in
data/gbfs/vehiclesfolder
You can run the start script manually:
node index.js
Or by setting up a cron job, in example:
crontab -e
0 * * * * cd /home/USER/dev/gbfs-validator && /home/USER/.nvm/versions/node/v18.6.0/bin/node index.js