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

    splaliv845

    @splaliv845

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

    splaliv845 Unfollow Follow

    Best posts made by splaliv845

    • RE: MMM-IdF-Transport - Never Miss Your Train/Metro/Bus/Tram in Île-de-France(Paris)!

      Hi,
      Thanks for the work.
      I made a modification on my side to get number of minutes instead of ETA.
      Not super good at git nor dev so bellow is the modification I made if someone is interested and want to upadate the module.

      regards


      code update --> MMM-Idf-Transport.js
      replace all function --> createDataRow: function (routeObj)
      with :

      createDataRow: function (routeObj) {
      if (isNaN(routeObj.service.ExpectedDepartureTime))
      return null;

      // Calculate the difference in minutes between current time and departure time
      let currentTime = moment();
      let departureTime = moment(routeObj.service.ExpectedDepartureTime);
      let minutesDifference = departureTime.diff(currentTime, 'minutes');
      
      // Create the row
      let row = document.createElement("tr");
      
      let line = document.createElement("td");
      line.className = "line";
      line.innerHTML = routeObj.route.ID_Line;
      if (line.innerHTML)
          line.innerHTML = routeObj.route.lineHtml;
      row.appendChild(line);
      
      let destination = document.createElement("td");
      destination.className = "destination";
      destination.innerHTML = this.getDisplayString(routeObj.service.DestinationDisplay[0].value);
      row.appendChild(destination);
      
      let departure = document.createElement("td");
      departure.className = "departure";
      
      // Display the difference in minutes
      departure.innerHTML = `${minutesDifference} min`;
      
      row.appendChild(departure);
      
      return row;
      
      posted in Transport
      S
      splaliv845

    Latest posts made by splaliv845

    • RE: MMM-IdF-Transport - Never Miss Your Train/Metro/Bus/Tram in Île-de-France(Paris)!

      Hi,
      Thanks for the work.
      I made a modification on my side to get number of minutes instead of ETA.
      Not super good at git nor dev so bellow is the modification I made if someone is interested and want to upadate the module.

      regards


      code update --> MMM-Idf-Transport.js
      replace all function --> createDataRow: function (routeObj)
      with :

      createDataRow: function (routeObj) {
      if (isNaN(routeObj.service.ExpectedDepartureTime))
      return null;

      // Calculate the difference in minutes between current time and departure time
      let currentTime = moment();
      let departureTime = moment(routeObj.service.ExpectedDepartureTime);
      let minutesDifference = departureTime.diff(currentTime, 'minutes');
      
      // Create the row
      let row = document.createElement("tr");
      
      let line = document.createElement("td");
      line.className = "line";
      line.innerHTML = routeObj.route.ID_Line;
      if (line.innerHTML)
          line.innerHTML = routeObj.route.lineHtml;
      row.appendChild(line);
      
      let destination = document.createElement("td");
      destination.className = "destination";
      destination.innerHTML = this.getDisplayString(routeObj.service.DestinationDisplay[0].value);
      row.appendChild(destination);
      
      let departure = document.createElement("td");
      departure.className = "departure";
      
      // Display the difference in minutes
      departure.innerHTML = `${minutesDifference} min`;
      
      row.appendChild(departure);
      
      return row;
      
      posted in Transport
      S
      splaliv845
    • MMM-TomTomTrafficIncidents display issue on PI zero

      Hi,
      I am new to this. First thanks to the community, your work is fantastic.
      Just made my mirror, I will share some picts soon.

      For integration purpose I choose to run MagicMirror on a pi4 that stay with all my house IT systems.
      The mirror itself run a pi zero in a kiosk mode.

      So, for all my modules are working (weather, air pollution, time zone, news and train info).
      MMM-TomTomTrafficIncidents is working well if I display the dashboard on my computer with Chrome or even directly on the PI4.
      However, the PI zero doesn’t load the picture of the traffic.
      I can only see the TomTom copyright.

      I was wondering if someone could drive me to some direction?
      I don’t think it is coming from MagicMirror configuration or the module.
      Rather PI Zero and the Kiosk, web browser…

      thanks.
      Ju.

      posted in Troubleshooting
      S
      splaliv845