MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    1. Home
    2. doubleT
    3. Best
    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: Changing compliments

      That’s the correct file.
      Try sudo nano MagicMirror/config/config.js if you haven’t used sudo, that gives you advanced rights.

      Did you create config.js? I have a suspicion. At the beginning, there’s no config.js, you have to create it. But there’s a sample file.

      Let’s check.
      You’re in the dir MagicMirror,
      cd config change the directory to config
      ls list the dir contents. There should be a config.js.sample. If there is also a config.js, ignore the next step.
      sudo cp config.js.sample config.js makes a copy of config.js.sample and creates config.js
      ls should now show both files.
      sudo nano config.js to edit the config.js

      posted in Troubleshooting
      D
      doubleT
    • RE: Trim the fat in a JSON file?

      @DeathChicken said in Trim the fat in a JSON file?:

      I just want the 2.1 output

      So the value of the key “price”. I haven’t looked at the module’s code, but I think you have to say “price” instead of “key4”.

          values: ["price"]
      
      posted in Troubleshooting
      D
      doubleT
    • RE: show integer logs from python script as diagram in MM ?

      @cruunnerr said in show integer logs from python script as diagram in MM ?:

      as u can read in my edit, i can create a JSON with the script i posted. but i don’t know where to put the script to execute it automatically every 24 hours or something like that.
      because i think using cronjob would be the wrong way, right? :D

      That’s exactly what a cronjob is for. ;)

      But yeah, that’s on the serving side. You have to make sure the file is updated (read, altered, saved) or overwritten entirely.

      I checked MMM-Chart and have the same issue, not even his own example is working. Tried some debugging but didn’t get very far. I don’t know what’s wrong.

      Let’s take a step back because I think there are some things that are not necessarry.
      You read the volume with a RasPi and it’s logged to a file on your NAS. Regular updates to that file work already?
      It’s also saved to a MySQL database?
      You have a Script that makes a JSON from the database? But it’s not yet regularly updated? Does this Script run on the measuring RasPi or the Mirror?

      I’d make the measuirng Pi save a JSON to the NAS. Make sure it’s working and the format is clean. MySQL database and another script are not necessarry that way. Then I’d make the Mirror read the JSON.

      Shoot me a PM (in German), I think I have an idea.

      posted in Requests
      D
      doubleT
    • RE: Changing compliments

      So there’s a config and when you run the MagicMirror it says there’s a config error. And sudo nano config.js from within MagicMirror/config/ doesn’t work? Cann you go to MagicMirror/config/ and show us what it says when you put in ls -l? (that’s a small letter ‘L’) which will list files with their rights/owners.

      posted in Troubleshooting
      D
      doubleT
    • RE: Multiples of same module?

      If you want a quick and dirty solution, copy the module folder, rename the copy and then change the module’s name to match the new module/folder name in all occurances (file names and within the code).

      posted in Troubleshooting
      D
      doubleT
    • RE: moving upper slideshow on mirror

      Other regions with modules have different sizes and that makes a generell answer a bit complicated.

      What’s the current position? Where do you want it to be? What other modules do you have and in what positions are they?

      Maybe it’s as easy as changing the position. In config.js, try

          module: 'MMM-ImageSlideshow',
          position: 'upper_third',
      /* or: */
          position: 'middle-center',
      
      posted in Custom CSS
      D
      doubleT
    • RE: show integer logs from python script as diagram in MM ?

      As promised, I changed a few things to my module and now it should work with your JSON (the one with the format you told me in PM:)

      [{"Datum":"2018-02-04","Volumen":2500},{"Datum":"2018-02-04","Volumen":2500}]
      

      In the future, I’d like to make this more independent with the key being set in the config (not everyone wants “Volumen” as key). There are some other to-do’s as well, but I had it running.

      Check it out and let me know: https://github.com/TTigges/MMM-Oiltank

      One note: It should work if you address your file with file: "http://192.168.0.123/yourfile.json" or whatever the ip of your NAS is. Check the readme for more info.

      It’s not yet ready to be presented as a full running module, so I’ll keep it low key in here for now.
      alt text

      posted in Requests
      D
      doubleT
    • RE: Screen rotation and resizing

      I had trouble using the CSS method and googled a bit more.

      in /etc/xdg/lxsession/LXDE-pi/autostart ad this line (with sudo):
      @xrandr --output HDMI-1 --rotate right

      posted in Troubleshooting
      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: MagicMirror: Changing font colors

      Check my answer to that exact same question here, learning css, to learn a bit about addressing elements in css.

      Basically, .module.clock addresses the element with both classes .module and .clock. And .module.clock .time addresses the element with the class .time sitting inside that element with both classes .module and .clock.

      You don’t have to restart the Pi, not even the MM app, for some css changes. A refresh should do it. I don’t know why it shouldn’t work if you got the correct file css/custom.css and copied that exact code from j.e.f.f.

      posted in Custom CSS
      D
      doubleT
    • 1
    • 2
    • 3
    • 4
    • 5
    • 4 / 5