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

    Posts

    Recent Best Controversial
    • RE: MMM-MyGarbage

      On my TEST System, I just did a fresh install of MM2 and after that a fresh install of MMM-MyGarbage. Copy and Paste the configuration as in the README.md into the config.js and no errors. MMM-MyGarbage displays 2 entries with the garbage_schedule.csv that is installed with the git clone…

      @Chris62, @werffje, if you still expirience problems, than:

      • add config.js into reply
      • look at the javascript console if you see any errors in the Console tab

      Open Javascript Console:
      Press Command+Option+J (Mac) or Control+Shift+J (Windows, Linux, Chrome OS) to open the Console

      • any other information that maybe relevant

      I’ll look at it and try to reproduce and/or correct the issue.

      posted in Utilities
      htilburgsH
      htilburgs
    • RE: MMM-MyGarbage

      @werffje I’m sorry to hear that, but if it’a keep saying loading, than there is a configuration error. Can you post your config. js.
      Further take a look at the java console in you browser if you can see an error.

      posted in Utilities
      htilburgsH
      htilburgs
    • RE: MMM-MyGarbage

      @Chris62 can you post a picture and the config.js?

      posted in Utilities
      htilburgsH
      htilburgs
    • RE: How do I access my Pi from an externel network to install modules and change config.js?

      @MWel1977 Or make use of builtin VNC with a VPN, what also can run on the Pi. But Teamviewer would be the most simple to use.

      posted in General Discussion
      htilburgsH
      htilburgs
    • RE: How to "halt" autostart for some time...?

      I don’t exactly get what you’re saying, but I assume you’re not connecting through SSH with your mirror? Because when you connect through SSH, you come in the RPI shell and can configure your modules.

      posted in Troubleshooting
      htilburgsH
      htilburgs
    • RE: My first Mirror (45cm x 65cm) with 24" monitor (Netherlands)

      @jmigoliva, I use a simple python script for the PIR sensor. I’ve used the instructions on https://www.magicmirrorcentral.com/pir-sensor-raspberry-pi-magic-mirror/
      This page provided me everything I needed to get the PIR sensor working.

      posted in Show your Mirror
      htilburgsH
      htilburgs
    • RE: Displaying a Shared iCloud calendar with default calendar module - possible?

      @valid8r That’s not the case. As I’m also using the Apple Family calendar and it is possible.
      See the procedure in the earlier reply from me. You have to do it from an Apple device like iPhone, iPad or Mac and than you’re able to share it in a public link.

      posted in Troubleshooting
      htilburgsH
      htilburgs
    • MMM-MyDutchWeather

      Description
      MyDutchWeather is a simple Module, that shows the actual weather from the KNMI 10-minutes network for any location in the Netherlands, based on your GPS coördinates .

      Screenshot
      alt text

      alt text

      alt text

      Download
      [card:htilburgs/MMM-MyDutchWeather]

      Extra
      I’m not an experienced programmer and do this for fun. Feel free to suggest any ideas.

      Versions
      07-04-2019 - v1.0.0 - Initial release
      08-04-2019 - v1.1.0 - Added option for Simple or Additional information

      posted in Utilities
      htilburgsH
      htilburgs
    • RE: [Remote-Control] Shutdown, Configure and Update your MagicMirror

      Same issue here 🤔

      posted in System
      htilburgsH
      htilburgs
    • RE: Displaying a Shared iCloud calendar with default calendar module - possible?

      @valid8r Did it work?

      posted in Troubleshooting
      htilburgsH
      htilburgs
    • RE: Displaying a Shared iCloud calendar with default calendar module - possible?

      You can make it ‘public’:

      IPhone

      • Go to Calendar app
      • At the bottom you see ‘calendar’
      • click on it
      • click on the ‘i’ behind the family calendar
      • go to the bottom and make sure ‘public calendar’ is selected
      • select option ‘share’ and then select copy

      Now you have the public url and can use it

      Public Share Calendar iPhone

      Mac

      • open calendar app
      • select the family calendar on the left
      • right click on the ‘wifi’ symbol
      • select settings for sharing
      • select public calendar and you can copy the url

      Good luck

      posted in Troubleshooting
      htilburgsH
      htilburgs
    • RE: Getting API data in table

      @sdetweil Thank you for the reply. I’m going to play with it and see which kind suited me the best.

      posted in Development
      htilburgsH
      htilburgs
    • RE: Getting API data in table

      @sdetweil, so what you’re saying is continu as I’m started with table, row, cells manual?

      I was hoping something in the next style would work.

         for (i = 0; i < this.MWB.length; i++) {
      	var MWB = this.MWB[i];
      

      and combining this with the text of the result. But I can’t figure it out.

      posted in Development
      htilburgsH
      htilburgs
    • Getting API data in table

      I get data through an API, lets say:

      alarm: "0"
      d0neerslag: "4"
      d0tmax: "12"
      d0tmin: "5"
      ....
      

      Currently I’m making a table, row and cells in the getDOM function to display the data:

      var TemperatuurRow = document.createElement("tr");
      TemperatuurRow.className = "temperatuur-row";
      		
      var TempTextCell = document.createElement("td");
      TempTextCell.className = "small";
      TempTextCell.innerHTML = "Neerslag";
      TemperatuurRow.appendChild(TempTextCell);
      table.appendChild(TemperatuurRow);
      			
      var TempDataCell = document.createElement("td");
      TempDataCell.className = "small fas fa-thermometer-half";
      TempDataCell.innerHTML = "  " + MWB.d0neerslag;
      TemperatuurRow.appendChild(TempDataCell);
      table.appendChild(TemperatuurRow);
      ...
      return table;	
      

      This is a lot of type-work. I was thinking isn’t there a better way?
      I was thinking of creating a table with the names and combine this with the results from the API. Can this be done? And how?

      (still trying to learn JS, but not afraid to ask) :smiling_face:

      posted in Development
      htilburgsH
      htilburgs
    • RE: Uncaught SyntaxError: Unexpected token return

      @sdetweil Oké, thank you for the explanation.

      posted in Troubleshooting
      htilburgsH
      htilburgs
    • RE: Uncaught SyntaxError: Unexpected token return

      @sdetweil YES, that did the trick! Learning a lot these few days.
      Thanks again.

      Is this notation always like this if you’re working with numbers?

      posted in Troubleshooting
      htilburgsH
      htilburgs
    • RE: Uncaught SyntaxError: Unexpected token return

      No luck…
      I’ve tried both of the options:

      	var MWB = this.MWB;
      	var n = 0;
      
      	// creating the tablerows
      	var WoonplaatsRow = document.createElement("tr");
      	WoonplaatsRow.className = "woonplaats-row";
      	
      	var WoonplaatsCell = document.createElement("td");
      	WoonplaatsCell.className = "small";
      	WoonplaatsCell.innerHTML = MWB.n.plaats;
      	WoonplaatsRow.appendChild(WoonplaatsCell);
      	table.appendChild(WoonplaatsRow);
      

      Error: Uncaught (in promise) TypeError: Cannot read property ‘plaats’ of undefined

      	var MWB = this.MWB;
      
      	// creating the tablerows
      	var WoonplaatsRow = document.createElement("tr");
      	WoonplaatsRow.className = "woonplaats-row";
      	
      	var WoonplaatsCell = document.createElement("td");
      	WoonplaatsCell.className = "small";
      	WoonplaatsCell.innerHTML = MWB.['0'].plaats;
      	WoonplaatsRow.appendChild(WoonplaatsCell);
      	table.appendChild(WoonplaatsRow);
      

      Error: Uncaught SyntaxError: Unexpected token [

      So both of the options give an error.

      posted in Troubleshooting
      htilburgsH
      htilburgs
    • RE: Uncaught SyntaxError: Unexpected token return

      @sdetweil , thanx, missed that.
      Now that this part is running the JSON data is fetched. But when I trying to show the data I get an error:

      Uncaught SyntaxError: Unexpected number
      

      This error is created by the zero in the line:
      WoonplaatsCell.innerHTML = MWB.0.plaats;

      		var MWB = this.MWB;
      
      		// creating the tablerows
      		var WoonplaatsRow = document.createElement("tr");
      		WoonplaatsRow.className = "woonplaats-row";
      		
      		var WoonplaatsCell = document.createElement("td");
      		WoonplaatsCell.className = "small";
      		WoonplaatsCell.innerHTML = MWB.0.plaats;
      		WoonplaatsRow.appendChild(WoonplaatsCell);
      		table.appendChild(WoonplaatsRow);
      

      The problem seems that I cannot use the 0 in the command.

      This is the JSON result

      object{1}
      	liveweer[1]
      		0{49}
      			alarm: "0"
      			d0neerslag: "4"
      			d0tmax: "12"
      			plaats: "Amsterdam"
      			...
      

      I used a JSON checker and it says that it’s valid JSON.
      How do I display the data from this result, if I cannot use the 0?

      posted in Troubleshooting
      htilburgsH
      htilburgs
    • Uncaught SyntaxError: Unexpected token return

      I’m creating a new module. I’m testing and get the error “Uncaught SyntaxError: Unexpected token return” at the line where is

      return table;
      

      This is the part where it goes wrong.
      I’ve been looking for typos and other errors, but cannot find them.
      Has anybody a clue?

      
      	getDom: function() {
      		
      		// creating the table
      		var table = document.createElement("table");
      		table.className = "small";
      		
      		// creating the wrapper
      		var wrapper = document.createElement("div");
      		wrapper.className = "wrapper";
      		wrapper.style.maxWidth = this.config.maxWidth;
      	
      		// The loading sequence
              	if (!this.loaded) {
                  	    wrapper.innerHTML = "Loading....";
                  	    wrapper.classList.add("bright", "light", "small");
                  	    return wrapper;
              	}	
      		
      		var MWB = this.MWB;
      
      		// creating the tablerows
      		var WoonplaatsRow = document.createElement("tr")
      		WoonplaatsRow.className = "woonplaats-row";
      		
      		var WoonplaatsCell = document.createElement("td");
      		WoonplaatsCell.className = "small";
      		WoonplaatsCell.innerHTML = "Regel1";
      		WoonplaatsRow.appendChild(WoonplaatsCell);
      		table.appendChild(WoonplaatsRow);
      		
      		var TemperatuurRow = document.createElement("tr")
      		TemperatuurRow.className = "temperatuur-row";
      		
      		var TemperatuurCell = document.createElement("td");
      		TemperatuurCell.className = "small";
      		TemperatuurCell.innerHTML = "Regel2"
      		TemperatuurRow.appendChild(TemperatuurCell);
      		table.appendChild(TemperatuurRow);
      					
      		}		
      		return table;		
      	
      	}, // <-- closes the getDom function from above```
      posted in Troubleshooting
      htilburgsH
      htilburgs
    • RE: Develop module with API

      @Mykle1 Thanks for the MMM-UFO “templates”. This really helped me to get started.
      First one down, several to go…:winking_face:

      posted in Development
      htilburgsH
      htilburgs
    • 1
    • 2
    • 9
    • 10
    • 11
    • 12
    • 13
    • 11 / 13