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

    Posts

    Recent Best Controversial
    • RE: GasBuddy

      @dherl0623

      Here are some mockups how such a module might look:

      • All/selected prices from one station:
        alt text
        (Note: The boxes have classes that identify the fuel and can be highlighted, if wanted.)

      • Prices from several stations:
        alt text

      The reason behind this differentiation: Instead of four calls, like in the second mode, there’s only one call in the first mode. Why is this important? Load time, traffic, …

      At the bottom of each box we see the last time the price was updated. I’m not quite satisfied with the mockup, yet.

      One thing I’m trying to work out in the design at the moment is adding some sort of “advice” that lets you know if the price is good. What I had in mind was an arrow element that would show if the current price is higher or lower (or same) than the last one.
      And similar to that how about adding the highest and the lowest price of the last 7 days so you can make a decission based on that? That’d mean a redesign of the whole thing.

      Is there anything you’d like to see in a module like that, that I didn’t mention? Would you like the address/place of the station somewhere? Let me know what you think.

      posted in Requests
      D
      doubleT
    • RE: MMM-Cocktails

      I didn’t look at the code, yet, but I think I see a possible issue (just from the image):
      Either they forgot the grenadine juice in the ingredient list – or you’re cutting off the ingredient list too short (after 5 elements).

      From a Web Design standpoint I’d also suggest using “left-aligned”, or maybe “justified” for the receipt.

      posted in Entertainment
      D
      doubleT
    • RE: GasBuddy

      I did some digging but wasn’t able to find a usable alternative.


      Company Website (& API)
      I don’t know if the website is down or geo-blocked for me, I can’t reach www.speedway.com
      If I could, I’d check if they have pages for each station with live prices available and if they have an API.


      Google Knowledge Graph
      I searched that station on Google and found the result page had a right hand sidebar (Google Knowledge Graph) with live prices. So I thought I could get it via the Knowledge Graph API (if you have a Google Dev API key (and activated KG), you can try it with this link) but the itemList is empty, or maybe I did something wrong. Wrong queries?


      Google Maps – or Places?
      Then I found out that when you search that station on Google Maps, it’ll also show the live prices in the sidebar on the left. But the latest info I found (some months old) say that there’s no way to access these as they’re not in the Google Maps API (or was it Places?).


      Getting the live price from the actual gas station itself, or at least from Google, would be the best solution, as the GasBuddy price is not really live, it’s only updated when a user shares the newest price.

      posted in Requests
      D
      doubleT
    • RE: On this day info from wikipedia

      @jegerikke have you checked for a Norwegian rss feed?

      posted in Requests
      D
      doubleT
    • RE: Spam Posts

      https://forum.magicmirror.builders/topic/2791/alot-of-spam-lately-on-this-forum/20

      Just recently I suggested a few ideas like putting new users in a category that restricts them to only opening new threads every x hours. That might also recude unintentional spam but is not restricting you from taking part in discussions that already exist.

      This might lead to more spam inside threads, though, which might be even more disruptive.

      So, on top of that, if a post or thread by a person in the restricted category is flagged by more than n (2? 3?) persons in a short ammount of time, that post or thread would be temporarily removed until a moderator/admin checked it. This forum is pretty civil and I’d think abuse of this function would be low to zero.

      btw. double opt in didn’t seem to work a while back, is it working now?

      posted in General Discussion
      D
      doubleT
    • RE: GasBuddy

      I have a similar module where I get the prices from a German gas station. With some small changes it should be possible to show prices from other sources as well. But it’s not looking for different prices in a region, only at one gas station, displaying their current price. If you have one station you’re always going to, check if the brand/station has a website with live prices. Even if you have one favorite station on Gas Buddy, it might work with some changes. But as I saw, that’s a system where other users have to put in the prices (or the station itself), so not very accurate compared to live data.

      posted in Requests
      D
      doubleT
    • RE: Where are you from?

      Hamburg, Germany

      posted in General Discussion
      D
      doubleT
    • RE: On this day info from wikipedia

      Oh, and there is @cowboysdude’s MMM-History module.

      “Today in History” links to the parser that gets the info from Wiki, I’m sure it could parse the Norwegian Wikipedia. I may look into it as I’m also interested in a non-english version of this.

      posted in Requests
      D
      doubleT
    • RE: Changing the length of the line under the header

      What I ment with hempty header was an empty string value for the header:

          header: "", 
      
      posted in Custom CSS
      D
      doubleT
    • RE: Changing the length of the line under the header

      In the config.js, when setting up the modules, leave the header fields empty. No line is shown when the header is empty.
      EDIT:
      header: "", that is …

      posted in Custom CSS
      D
      doubleT
    • RE: On this day info from wikipedia

      Like this? Today in History
      Or this? on this day

      posted in Requests
      D
      doubleT
    • RE: Show a picture infont of everything with a button

      You can check if MMM-Button works by checking the console (not the browser console but where you type in the command to start the MM), it should write "button pressed" when you use the button.

      In my JS file, add a Log.info("notification: " + notification + "; payload: " + payload + "; sender: " + sender); in line 26 and see if it comes up and what it shows.

      You can check if the cover works by using the developer tools, finding the module and adding the class show-image.

      posted in Requests
      D
      doubleT
    • RE: Arcade button to turn on/off monitor

      As for the PIR sensitivity, that can usually be adjusted.

      posted in Requests
      D
      doubleT
    • RE: Want to turn off my monitor

      Don’t forget that the monitor will still be on, it’s just in standby, still consuming power. The Pi can’t switch the power of the monitor itself off.

      posted in Troubleshooting
      D
      doubleT
    • RE: Show a picture infont of everything with a button

      Ok, I wrote something that could … should … I expect to be working with MMM-Button. At the moment I don’t have a button to test it with. I’ll try to get some testing done next weekend.

      MMM-FullsizeCover
      Check the readme and the guide to get it running. Let me know if it works. ;)

      posted in Requests
      D
      doubleT
    • RE: MMM-PIR does not shutoff sometimes

      Depends on position and deflective angle of the sensor. If you think there is nothing it should detect, try it out, leave the room, set a timer and check after 120 (+10) seconds.

      posted in Troubleshooting
      D
      doubleT
    • RE: Error in config file when adding modules, looking for another set of eyes

      Hi,

      your config is missing a closing bracket } in the config of the camera module. To be specific, it seems like the closing bracket of “auth:” is missing.

      And it also seems weird to me that after “config:” there is no object (in brackets), but that’s how the readme of the module shows the example configuration.

      {
          module: "camera",
          position: "top_center",
          config: { // added this one, maybe missing/wrong in the example?
              selfieInterval: 3,  // Time interval in seconds before the photo will be taken.
              emailConfig: {
                  service: "GMail", // Email provider to use to send email with a photo.
                  auth: {
                      user: "", // Your email account
                      pass: ""        // Your password for email account
                  } //  this one was missing
              }
          } // added this one, maybe missing/wrong in the example?
      },
      

      And also a closing bracket missing for the config: of the voicecontrol module:

      {
          module: "voicecontrol",
          position: "bottom_left",
          config: {
                  models: [
                      {
                      keyword: "Show Camera",
                      description: "Say 'Show Camera' to display camera",
                      file: "showCamera.pmdl",
                      message: "SHOW_CAMERA"
                  },
                  {
                      keyword: "Hide Camera",
                      description: "Say 'Hide Camera' to hide camera",
                      file: "hideCamera.pmdl",
                      message: "HIDE_CAMERA"
                  },
                  {
                      keyword: "Selfie",
                      description: "Say 'Selfie' when camera is visible",
                      file: "selfie.pmdl",
                      message: "SELFIE"
                  },
              ]
          } // this one was missing
      },
      

      Some thing’s to consider: Use one sort of quotes throughout the file for strings of text. The config.js uses " while some module’s authors use '. Usually not a problem, but it’s cleaner to stick with one and helps minimize problems, for example when we look at this line from your config (which is not a problem but shows where it gets complicated):

      description: "Say 'Show Camera' to display camera",
      

      Some good ideas for people running into this to check their configs:

      • remove the last added module, run again, see if the problem is gone, if so, re-add the module and check brackets and commas, if not, re-add it, it wasn’t the source of the problem, check the next one.
      • or directly go through your file and check that every opening bracket has a matching closing bracket.
        Some text editors will highlight the closing bracket if you select the opening bracket be setting the cursor to it, or the other way round (Sublime Text does).
      posted in Troubleshooting
      D
      doubleT
    • RE: Show a picture infont of everything with a button

      Did you check MMM-Button and do you want to use it? Is the button already connected?

      btw.

      show a picture infront of my magicmirror while their still loading in the background…

      While what is loading in the background? I see two different things and demands here:
      a) image goes on or off on button press
      b) mirror starts with image and when everything is loaded, the image goes away

      posted in Requests
      D
      doubleT
    • RE: Want to turn off my monitor

      Don’t forget, you can also hook up the monitor to a PIR switch directly (check wattage allowed for the PIR switch!) or to a light/power switch or even a combination.

      I didn’t want the monitor to be in standby when I’m not home for a week, so the PIR directly controls power to the monitor to completely switch it off instead of it going to standby. And the PIR is behind a switch, too.

      posted in Troubleshooting
      D
      doubleT
    • RE: MMM-PIR does not shutoff sometimes
      • What is a PIR Sensor? It’s Passive Infrared Sensor, that measures infrared light radiation from objects, that is: heat radiation.

      • Does a PIR sensor sense light change? No. But it can detect a light source if it heats up fast enough when it’s on. So it could detect an old lightbulb – if that lightbulb is in view – but probably not a cold LED.

      • Does a PIR sensor sense motion or movement? No. If you drag something through it’s field of view that is not emitting heat, the sensor won’t detect it.

      So, there’s probably something in its field of view that is emitting heat. A hot lightbulb, a radiatior, an animal, someone sitting there, even though that person seems motionless. If you’re watching it, it may be detecting you.

      Does it turn off after ~ 120 seconds if you really leave the room, close the door, stay behind the sensor? Maybe it’s not correctly set up or cables aren’t correctly attached? Or it’s a faulty PIR …

      posted in Troubleshooting
      D
      doubleT
    • 1 / 1