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

    Posts

    Recent Best Controversial
    • RE: iFrame with username and password

      Has anyone found a solution?

      posted in Troubleshooting
      M
      majdzik84
    • RE: Wrong dates on the calendar

      @sdetweil I don’t know if we understood each other well. My calendar is with GOOGLE.

      posted in Troubleshooting
      M
      majdzik84
    • Wrong dates on the calendar

      I have v2.13.0
      .Maybe someone will help because I have no ideas myself. I noticed that the calendar shows the dates of some events from the google calendar incorrectly. What could this be caused by?
      For example I have a “śmieci zmieszane” event scheduled on my calendar as recurring every 2 weeks.
      Unfortunately, they are shown in the MM calendar with a completely different date. I
      imported the basic.ics file to the built-in calendar on win10 for tests and the events appear correctly in both the google calendar and win10.

      Zrzut ekranu 2020-10-19 164011.png

      posted in Troubleshooting
      M
      majdzik84
    • RE: MMM-NOAA - Another Weather Module

      @Pielo how did you make the frame with temperature and humidity? I would like to get something like this by sending data via mqtt

      posted in System
      M
      majdzik84
    • RE: MMM-MQTTbridge

      Stupid novice question. How can I update the module? :) I have to remove the old one and upload the new one, is there any command to update the already uploaded module?

      posted in System
      M
      majdzik84
    • RE: GIF update from URL with MMM-EyeCandy

      @sdetweil I am using the standard alert module to use an alert with an image.

      Below is exactly my code that works fine but I can’t include a variable.

      I am sending the command from home assistant via rest_command

      http://192.168.2.200:8080/api/module/alert/showalert?message=Drzwi%20gara%C5%BCowe%20s%C4%85%20otwarte&imageUrl=https://xxx.com/local/snapshots/front.jpg&imageHeight=600px
      

      is it correct because it doesn’t work?

      http://192.168.2.200:8080/api/module/alert/showalert?message=Drzwi%20gara%C5%BCowe%20s%C4%85%20otwarte&imageHeight=600px&imageUrl=https://xxx.com/local/snapshots/front.jpg%3Fsomeid='+moment().valueOf()
      
      posted in Troubleshooting
      M
      majdzik84
    • RE: GIF update from URL with MMM-EyeCandy
      parameters on a url come after the ?
      so newurl=
      “old_url?fake_parm_name=”+millisecond_timestamp
      
      moment().valueOf() will return the always unique millisecond_timestamp value
      

      Can you tell me exactly what I need to do to get it? I understand how this should work, but I can’t do it

      http://192.168.2.48:8080/api/v1/modules/alert/show_ALERT?timer=10500&imageUrl=http://192.168.2.18:9920/security/values/2%3F
      {INSERT TIMESTAMP HERE}&imageHeight=220px
      

      {INSERT TIMESTAMP HERE} - What should the variable I type {…} look like

      posted in Troubleshooting
      M
      majdzik84
    • RE: GIF update from URL with MMM-EyeCandy

      @ninjabreadman Could you please explain to the novice where to insert the code?

      ... // img creation, etc
      var getTimeStamp = new Date().getTime();
      img.src = "https://icons.wxug.com/data/weather-maps/radar/united-states/united-states-current-radar-animation.gif?seed=" + getTimeStamp;
      pic.appendChild(img);
      wrapper.appendChild(pic);
      

      in which file?
      I want the camera snapshot to have a time stamp because without it the same photo is still there and I want to use it in the alert module

      You wrote in a different topic

      @chef The POST request isn’t sending it an image, it’s sending the URL to the image (e.g. http://192.168.2.18:9920/security/values/2). The problem is, it already has a cached copy of that image. I suggest you append a timestamp to trick electron into re-fetching the same image/resource.
      
      You want to pass it a URL-encoded value, so use %3F as ? and just append your timestamp, like so:
      
      http://192.168.2.48:8080/api/v1/modules/alert/show_ALERT?timer=10500&imageUrl=http://192.168.2.18:9920/security/values/2%3F
      {INSERT TIMESTAMP HERE}&imageHeight=220px
      

      I will be grateful for any help because I have been fighting for several hours.

      posted in Troubleshooting
      M
      majdzik84
    • 1
    • 2
    • 2 / 2