MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    1. Home
    2. DIY_556
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.
    D
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 1
    • Groups 0

    DIY_556

    @DIY_556

    0
    Reputation
    1
    Profile views
    1
    Posts
    0
    Followers
    0
    Following
    Joined
    Last Online

    DIY_556 Unfollow Follow

    Latest posts made by DIY_556

    • MMM-transitfeed https error

      Hi Everyone, I’m trying to get my mirror to display transit info for MTA’s L.
      I tried using the NYC specific module but I couldn’t figure out a way around the API key requirement(the MTA stopped requiring API keys a few months ago and there’s no way to get one.)
      I keep getting a “SyntaxError: Unexpected identifier ‘https’” error. How do I fix this?

      {
      			module: "MMM-transitfeed",
      			position: "bottom_right",
      			config: {
      				gtfs_config: {
      						agencies: [
      								{
      									"url": "https://api.mta.info/#/subwayRealTimeFeeds",
      									"realtimeUrls: ["https://api-endpoint.mta.info/Dataservice/mtagtfsfeeds/nyct%2Fgtfs-l"],
      									exclude: ['shapes']
      								},
      							],
      						},
      				queries: [
      						{route_name: "L", stop_name: "1 Av", direction: 1},
      					],
      					departuresPerRoute: 3,
      					showTimeFromNow: 15,
      					showTimeEstimated: false,
      					showStationNames: true,
      					showAllTerminus: true,
      					departingSoonMinutes: 2,
      					departingSoonColor: "#f66",
      				},
      
      posted in Troubleshooting
      D
      DIY_556