Transit Departure module. How to get started?



  • I have very limited programming experience but would like take a shot at building a module that lists departure times for trams/buses from a chosen station in my city. Västtrafik as it’s called have a public API with some documentation that can be found here in english (click Dokumentation):
    https://developer.vasttrafik.se/portal/#/api/Reseplaneraren/v2/landerss
    I’ve looked through it, checked out other similar modules to try and adept them but since i’m not really sure how i should get started i’m hoping i can get pointed in the right direction from you people who are more knowledgeable.

    Thanks in advance.



  • Hi Notumlord,

    I’m currently developing the same kind of module for french transports. what are exactly your needs and problem. You said that you are starting from another module, like maybe the MMM-KVV or the MMM-HH-something. They are both simple and parsing a web API and displaying the result as a table



  • Hi,
    I’m currently working on a similar module for public transport in Oslo.

    What is the preferred way of development environment? It seems time consuming having to stop en start the magic mirror app each time. Any shortcuts?



  • edit the files and in a browser, you open the URL to MM (localhost:8080 in my case) and you refresh whenever.

    BTW, you don’t have to stop it, it seems that running the command again (pm2 start mm) does a “restart”


Log in to reply
 

Looks like your connection to MagicMirror Forum was lost, please wait while we try to reconnect.