public-transport/hafas-client

VMT Profile Update

Open

#340 aperta il 8 ago 2025

Vedi su GitHub
 (1 commento) (0 reazioni) (0 assegnatari)JavaScript (60 fork)github user discovery
help wantedprofile:vmtquestion

Metriche repository

Star
 (353 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

Hey, i found this beautiful library and will definitely use it for live transit data.

I checked the current VMT Fahrplanauskunft Page and they use another mgate.exe hafas endpoint than configured in the current "VMT" profile.

const { profile: baseVmtProfile } = require('hafas-client/p/vmt/index.js');

// Create a custom profile based on the existing VMT profile
const profile = {
  ...baseVmtProfile,
  endpoint: 'https://vmt.eks-prod-euc1.hafas.cloud/bin/mgate.exe',
  auth: {
    type: 'AID',
    aid: 'web-vmt-qdr6c6y8s4cvfmfw',
  },
  client: {
    id: 'VMT',
    type: 'WEB',
    name: 'webapp',
    l: 'vs_vmt',
    v: 10010
  },
  ver: '1.78'
};

module.exports = { profile };

i updated it in my local project.

My qeustions:

  • is this the correct usage of creating custom profile?
  • should i create a fork and update the VMT profile? => and then pull request it?

Guida contributor