db-vendo-client/p/hvv/index.js

32 lines
775 B
JavaScript
Raw Normal View History

2022-05-07 16:17:37 +02:00
// todo: use import assertions once they're supported by Node.js & ESLint
// https://github.com/tc39/proposal-import-assertions
import {createRequire} from 'module'
const require = createRequire(import.meta.url)
2019-05-08 10:57:37 +02:00
const baseProfile = require('./base.json')
2022-05-07 16:17:37 +02:00
import {products} from './products.js'
2019-05-08 10:57:37 +02:00
2022-05-07 16:17:37 +02:00
const profile = {
...baseProfile,
2019-05-08 10:57:37 +02:00
locale: 'de-DE',
timezone: 'Europe/Berlin',
// baseProfile.salt is interpreted as hex by hafas-client
salt: Buffer.from('pqjM3iKEGOAhYbX76k9R5zutv', 'utf8'),
2019-05-08 10:57:37 +02:00
addMicMac: true,
products,
departuresGetPasslist: true,
departuresStbFltrEquiv: true,
2019-05-08 10:57:37 +02:00
trip: true,
radar: true,
refreshJourney: true,
2020-09-16 17:21:59 +02:00
reachableFrom: true,
remarksGetPolyline: false,
2020-11-28 11:40:46 +01:00
lines: false, // fails with `FAIL` "HCI Service: request failed"
2019-05-08 10:57:37 +02:00
}
2022-05-07 16:17:37 +02:00
export {
profile,
}