• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
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: show integer logs from python script as diagram in MM ?

    I have been following this, but I didn’t have time to comment.

    You asked about the. json file. Simplyfied, it’s a file that holds a (JS) object for data sharing.

    {{date:"2018-01-01", litre:500},{date:"2018-01-02", litre:498},{date:"2018-01-03", litre:495}}
    

    Probably comparable to what you did with your txt file.
    For a working solution, that would actually be enough. Grab the json, handle the object, print the result with highcharts.
    To me, the SQL db seems a bit “heavy weight” for such a simple use case, but it’s solid if you can make it work. Just my opinion.

    posted in Requests
    D
    doubleT
    Feb 5, 2018, 3:09 PM
  • 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
    Feb 4, 2018, 2:38 PM
  • RE: Wrote 2 modules already, but don't know where to start for another...

    Check the code of those modules that can switch modules on/off (if they don’t just hide them, that is).

    Basically, after changing the config, the browser has to be refreshed in order to load the the new configuration. What you want could be compared to that. Instead of removing a module, you change the language.

    posted in Development
    D
    doubleT
    Feb 2, 2018, 5:21 PM
  • RE: show integer logs from python script as diagram in MM ?

    I use highcharts to make a diagram for my gas station price module. It’s quite easy to implement and use if you have the data in an object.

    posted in Requests
    D
    doubleT
    Feb 2, 2018, 2:07 PM
  • RE: Changing compliments

    Weird, it sounds like there shouldn’t be a problem at all.
    Do you have the possibility to edit the file externally and replace it? For example via FTP.
    Btw. how do you save the file?

    posted in Troubleshooting
    D
    doubleT
    Feb 1, 2018, 11:44 AM
  • 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
    Jan 30, 2018, 8:28 PM
  • 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
    Jan 29, 2018, 9:40 PM
  • RE: Changing compliments

    @Stacy said in Changing compliments:

    @lavolp3 so how do I get to the modules to change them?

    All the modules get their information from the config.js cruunnerr and Mykle mentioned. You don’t need to change anything in the module folders.

    If the module code is broken at the moment, you can rebuild it from – or completely replace it with – the original here if you don’t want to start over again.

    This is the basic code for the compliment module to be added/changed/edited in the MagicMirror/config/config.js :

        {
            module: "compliments",
            position: "lower_third",	// This can be any of the regions.
                                            // Best results in one of the middle regions like: lower_third
            config: {
                compliments: {
                    anytime: [
                        "Hey!",   // properties are followed by commas – most common mistake
                        "Hello."  // last property within brackets doesn't get a comma
                    ],
                    morning: [
                        "Hey!"
                    ],
                    evening: [
                        "Hey!"
                    ]
                }
            }
        } // add a comma (,) if another module's config is following
    

    See the comments in the code. The most common mistakes are missing commas or missing brackets.

    posted in Troubleshooting
    D
    doubleT
    Jan 29, 2018, 8:41 PM
  • RE: MMM-SwissStationboard

    Ah, yes of course, it will still only call the maximum number of entries. That’s a bit more challenging.

    posted in Troubleshooting
    D
    doubleT
    Jan 28, 2018, 4:04 PM
  • RE: MagicMirror: Changing font colors

    It’s body {}, it addresses the whole html body (everything) and is empty in this case. It’s probably just an example.

    posted in Custom CSS
    D
    doubleT
    Jan 27, 2018, 10:51 PM
  • 1
  • 2
  • 5
  • 6
  • 7
  • 8
  • 9
  • 17
  • 18
  • 7 / 18
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