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

29 lines
742 B
JavaScript
Raw Permalink 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);
2020-03-03 02:36:26 +01:00
const baseProfile = require('./base.json');
import {products} from './products.js';
2020-03-03 02:36:26 +01:00
2022-05-07 16:17:37 +02:00
const profile = {
...baseProfile,
2020-03-03 02:36:26 +01:00
locale: 'de-DE',
timezone: 'Europe/Berlin',
// https://runkit.com/derhuerst/hafas-decrypt-encrypted-mac-salt
// https://gist.github.com/derhuerst/fd2f81a597bde66cb1f689006d574d7f#file-config-txt-L22-L23
salt: Buffer.from('SP31mBufSyCLmNxp', 'utf-8'),
addMicMac: true,
products: products,
trip: true,
radar: true,
reachableFrom: true,
refreshJourneyUseOutReconL: true,
};
2020-03-03 02:36:26 +01:00
2022-05-07 16:17:37 +02:00
export {
profile,
};