• 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
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.

MMM-BMW-DS (A different kind of weather module)

Scheduled Pinned Locked Moved Utilities
65 Posts 13 Posters 44.0k Views 11 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    sdetweil
    last edited by sdetweil Oct 15, 2018, 9:20 PM Oct 15, 2018, 9:20 PM

    your readme

      css: "1",                         // 1-6 (default, Clean, Lord of the Rings, Handwriting, etc)
    

    ok, what is ‘default’?

    ie, the setting if one doesn’t chose anything?

    if I do not supply the line above, what value will be used

    the screen shots show a line at the bottom of the page, so I ASSUME this must be the ‘default’ behavior…

    Sam

    How to add modules

    learning how to use browser developers window for css changes

    M 2 Replies Last reply Oct 15, 2018, 9:28 PM Reply Quote 0
    • M Offline
      Mykle1 Project Sponsor Module Developer @sdetweil
      last edited by Oct 15, 2018, 9:28 PM

      @sdetweil said in MMM-BMW-DS (A different kind of weather module):

      if I do not supply the line above, what value will be used

      Ok, I see. I’m off to dinner right now but I will correct that when I return. I’m sorry for the trouble and thank you for pointing that out to me.

      Create a working config
      How to add modules

      1 Reply Last reply Reply Quote 0
      • M Offline
        Mykle1 Project Sponsor Module Developer @sdetweil
        last edited by Oct 16, 2018, 12:54 AM

        @sdetweil

        Ok, this is what I’ve done. I don’t know if this is the proper way of doing it but it does work.

        // Gets correct css file from config.js
            getStyles: function() {
              if(this.config.css != ""){
                return ["modules/MMM-BMW-DS/css/MMM-BMW-DS" + this.config.css + ".css"];
              } else {
                return ["modules/MMM-BMW-DS/css/MMM-BMW-DS1.css"]; // default.css
              }
            },

        Create a working config
        How to add modules

        S 1 Reply Last reply Oct 16, 2018, 1:24 AM Reply Quote 0
        • S Offline
          sdetweil @Mykle1
          last edited by sdetweil Oct 16, 2018, 7:59 PM Oct 16, 2018, 1:24 AM

          @mykle1 easier if u just declare a defaults section in your module.js which has css: 1

          The when it is merged with the user supplied config, there will always be something set.

          Then u don’t need the if/then at all

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          M 1 Reply Last reply Oct 16, 2018, 1:41 AM Reply Quote 1
          • M Offline
            Mykle1 Project Sponsor Module Developer @sdetweil
            last edited by Oct 16, 2018, 1:41 AM

            @sdetweil

            I don’t know how I missed that. Thanks again for showing me the error of my ways. :-)

            // Module config defaults.
                defaults: {
                    apiKey: "", // Get FREE API key from darksky.net
                    tempUnits: "C", // C  or F
                    lat: "40.123456", // Latitude
                    lng: "-74.123456", // Longitude
                    css: "1", // 1=default, 2=Clean, 3=Lord of the Rings, 4=handwriting, 5=Julee, 6=Englebert
                    ownTitle: "Current Conditions", // Default = Current Conditions
                    useHeader: false, // true if you want a header
                    header: "Your Header", // Any text you want. useHeader must be true
                    maxWidth: "100%",
                    animationSpeed: 3000,
                    initialLoadDelay: 4250,
                    retryDelay: 2500,
                    updateInterval: 5 * 60 * 1000,
            

            Create a working config
            How to add modules

            1 Reply Last reply Reply Quote 0
            • C Offline
              cirdan
              last edited by Oct 30, 2018, 9:06 PM

              Mykle, kids called me at work today. magic mirror is making weird noises. 😀

              Afraid for hardware failure I went home only to find out mmmbmwds had added sounds and it rained for the first time.

              Would you consider building in a config switch to enable/disable sounds?

              Modules MMM-rainfc, MMM-bustimes, MMM-Harmony, MMM-Rijks

              M 1 Reply Last reply Oct 30, 2018, 9:46 PM Reply Quote 0
              • S Offline
                sdetweil
                last edited by Oct 30, 2018, 9:22 PM

                Rename the mp3 files to something else

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                1 Reply Last reply Reply Quote 1
                • M Offline
                  Mykle1 Project Sponsor Module Developer @cirdan
                  last edited by Mykle1 Oct 30, 2018, 9:47 PM Oct 30, 2018, 9:46 PM

                  @cirdan said in MMM-BMW-DS (A different kind of weather module):

                  Would you consider building in a config switch to enable/disable sounds?

                  git pull in the MMM-BMW-DS directory and playSounds: "no" in the new config option. :thumbsup:

                  Why can’t everything I try to do with modules be that easy?

                  Create a working config
                  How to add modules

                  C 1 Reply Last reply Oct 31, 2018, 6:46 PM Reply Quote 1
                  • C Offline
                    cirdan @Mykle1
                    last edited by Oct 31, 2018, 6:46 PM

                    @mykle1 tnx for the quick fix.
                    (At last peace returns to the grey havens 😁)

                    Modules MMM-rainfc, MMM-bustimes, MMM-Harmony, MMM-Rijks

                    1 Reply Last reply Reply Quote 1
                    • R Offline
                      RV Knight
                      last edited by Sep 3, 2019, 7:54 PM

                      Hi, sorry about bringing back up this old post. I’m currently having issues with it, it’s displaying in the bottom with acquiring you weather but doesn’t go any further than that. I’ve checked the config as far as I can tell but I’m still having issues, would it be possible to have some help? Thanks

                      M 2 Replies Last reply Sep 5, 2019, 1:16 AM Reply Quote 0
                      • 1
                      • 2
                      • 3
                      • 4
                      • 5
                      • 6
                      • 7
                      • 5 / 7
                      • First post
                        Last post
                      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