2020-03-02 23:16:45 +01:00
|
|
|
'use strict'
|
|
|
|
|
2021-04-18 19:02:54 +02:00
|
|
|
const baseProfile = require('./base.json')
|
2020-03-02 23:16:45 +01:00
|
|
|
const products = require('./products')
|
|
|
|
|
|
|
|
const hvvProfile = {
|
2021-04-18 19:02:54 +02:00
|
|
|
...baseProfile,
|
2020-03-02 23:16:45 +01:00
|
|
|
locale: 'de-DE',
|
|
|
|
timezone: 'Europe/Berlin',
|
|
|
|
// https://runkit.com/derhuerst/hafas-decrypt-encrypted-mac-salt
|
|
|
|
// https://gist.github.com/derhuerst/b20adde9f614ceb6b2a8b9c7f4487da8#file-hafas-config-L31-L32
|
|
|
|
salt: Buffer.from('7x8d3n2a5m1b3c6z', 'utf-8'),
|
|
|
|
addMicMac: true,
|
|
|
|
|
|
|
|
products,
|
|
|
|
|
|
|
|
trip: true,
|
|
|
|
refreshJourney: true,
|
|
|
|
reachableFrom: true,
|
|
|
|
// fails with `CGI_READ_FAILED`
|
|
|
|
// radar: true,
|
2020-09-16 17:21:59 +02:00
|
|
|
remarks: false, // seems like ver >= 1.20 is required
|
2020-03-02 23:16:45 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
module.exports = hvvProfile
|