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

    Posts

    Recent Best Controversial
    • RE: MMM-Stock Cannot read property 'toLowerCase'

      @sdetweil still waiting to see if it will display, theres a big delay, but no errors have popped up yet

      scheduleUpdate: function(delay) {
      var loadTime = this.config.updateInterval;
      if (typeof delay !== “undefined” && delay >= 0) {
      loadTime = delay;
      }

      	var that = this;
      	setInterval(function() {
      		that.getStocks();
      		if(that.config.currency.toLowerCase() != "usd"){
      			that.getExchangeRate();
      		}
      	}, loadTime);
      },
      
      posted in Troubleshooting
      B
      brendan_c23
    • RE: MMM-Stock Cannot read property 'toLowerCase'

      @sdetweil Ok, I changed the ‘this’ to ‘that’ some lines above! not on those lines, going to try running it after changing the line you just sent

      posted in Troubleshooting
      B
      brendan_c23
    • RE: MMM-Stock Cannot read property 'toLowerCase'

      @sdetweil //if another currency is required - usd is default
      var differentCurrency = false;
      if(that.config.currency.toLowerCase() != “usd”){
      differentCurrency = true;
      var requiredCurrency = this.config.currency.toUpperCase();
      }

      	for (var key in data) {
      		if (!data.hasOwnProperty(key)) {continue;}
      		var symbol = key;
      		var obj = data[key];
      		var current = obj[0];
      		var prev = obj[1];
      		var price = current["4. close"];
      		var change = prev["4. close"] - current["4. close"];
      
      		var html = "";
      		var priceClass = "greentext", priceIcon="up_green";
      		if(change < 0) {
      			priceClass = "redtext";
      			priceIcon="down_red";
      		}
      
      posted in Troubleshooting
      B
      brendan_c23
    • RE: MMM-Stock Cannot read property 'toLowerCase'

      @sdetweil Yes I made that change, but the error was still coming up for me

      posted in Troubleshooting
      B
      brendan_c23
    • RE: MMM-Stock Cannot read property 'toLowerCase'

      @brendan_c23 Uncaught TypeError: Cannot read property ‘toLowerCase’ of undefined

      posted in Troubleshooting
      B
      brendan_c23
    • RE: MMM-Stock Cannot read property 'toLowerCase'

      @sdetweil Hey I tried that, now it says Cannot read property ‘toLowerCase’ of undefined at MMM-stock.js:90
      Any other suggestions?

      u are only changing the word this to the word that on that one line

      posted in Troubleshooting
      B
      brendan_c23
    • RE: MMM-Stock Cannot read property 'toLowerCase'

      @sdetweil Could you help guide me on how to fix the code? Would you like me to post the .js file?

      posted in Troubleshooting
      B
      brendan_c23
    • MMM-Stock Cannot read property 'toLowerCase'

      Stock module used to run just fine, now I am given this error when pulling up ‘npm start dev’ can anyone offer any guidance on how to fix this?

      posted in Troubleshooting
      B
      brendan_c23
    • MMM-Spotify

      Can somebody elaborate on what the “sudo” command does and what it means in this context?
      0. Prevent
      Do not install MagicMirror or this module as root user ! (sudo)
      This is the first step when installing the Spotify module.
      Thanks

      posted in Troubleshooting
      B
      brendan_c23
    • RE: Problems With Weather

      @mykle1 So I emailed Openweathermap for help and he said I should use the “One Call Api” https://openweathermap.org/api/one-call-api but I am having trouble figuring out how to incorporate the API call code into the weather forecast module?

      posted in Troubleshooting
      B
      brendan_c23
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 2 / 6