MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.

    MMM-MyCommute Time Formats are kicking my butt

    Scheduled Pinned Locked Moved Unsolved Troubleshooting
    1 Posts 1 Posters 313 Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S Offline
      sandclear
      last edited by

      Hi Everyone, my MMM-MyCommute is displaying a travel time as “X hours”, but I would like it to be more precise. Google Maps shows it as “X hr Y min.” I simply want the minutes included. I can’t get travelTimeFormat or travelTimeFormatTrim to affect any change for me, and I can’t find any arguments about precision. Any ideas?

      0_1576702857786_example.PNG

      {
      module: "MMM-MyCommute",
      position: "bottom_right",
      header: 'Current Traffic',
      		config: {
          		apikey: '//API KEY//',
          		origin: "//ORIGIN ADDRESS",
          		startTime: "00:00",
      		nextTransitVehicleDepartureFormat: "[next at] h:mm a",
      		endTime: "23:59",
          		destinations: [
            				{
              			destination: '//DESTINATION 1 ADDRESS',
             	 			label: "Destination 1",
      				mode: "driving",
      				alternatives: true,
              			color: "#82E5AA"
            				},
            				{
              			destination: '//DESTINATION 2 ADDRESS',
             	 			label: "Destination 2",
              			mode: "transit",
      				transitMode: "subway",
      				showNextVehicleDeparture: true,
              			color: "#e5e082"
            				}
          				]
        				}
      		},
      
      1 Reply Last reply Reply Quote 0
      • 1 / 1
      • First post
        Last post
      Enjoying MagicMirror? Please consider a donation!
      MagicMirror created by Michael Teeuw.
      Forum managed by Sam, technical setup by Karsten.
      This forum is using NodeBB as its core | Contributors
      Contact | Privacy Policy