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)
|
2020-03-02 23:16:45 +01:00
|
|
|
|
2021-04-18 19:02:54 +02:00
|
|
|
const baseProfile = require('./base.json')
|
2022-05-07 16:17:37 +02:00
|
|
|
import {products} from './products.js'
|
2020-03-02 23:16:45 +01:00
|
|
|
|
2022-05-07 16:17:37 +02:00
|
|
|
const profile = {
|
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,
|
|
|
|
|
2021-04-18 22:31:41 +02:00
|
|
|
refreshJourneyUseOutReconL: true,
|
2020-03-02 23:16:45 +01:00
|
|
|
trip: true,
|
|
|
|
reachableFrom: 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
|
|
|
}
|
|
|
|
|
2022-05-07 16:17:37 +02:00
|
|
|
export {
|
|
|
|
profile,
|
|
|
|
}
|