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

    Posts

    Recent Best Controversial
    • RE: Face Recognition with inferred light

      @feuerball please press on main.js on the right so we can see on what it tries to execute the lower case thing.

      posted in Troubleshooting
      paviroP
      paviro
    • RE: PIR-Sensor - put your mirror to sleep if not used

      @Bangee Wait! That’s just all modules logging they received the notification, thats probably the same message over and over again logged by different modules.

      posted in Troubleshooting
      paviroP
      paviro
    • RE: PIR-Sensor - put your mirror to sleep if not used

      @Bangee you can always try to add some logging to the code console.log("something") to see where it is triggered and if the script is the cause or something else :)

      posted in Troubleshooting
      paviroP
      paviro
    • RE: PIR-Sensor - put your mirror to sleep if not used

      When I checked it did not work, maybe the dependencies were updated since then. If not install v5 :)

      posted in Troubleshooting
      paviroP
      paviro
    • RE: PIR-Sensor - put your mirror to sleep if not used

      @incubik Looks fine, the hardware does not influence the module behavior tough, you could also run it without something connected.

      posted in Troubleshooting
      paviroP
      paviro
    • RE: PIR-Sensor - put your mirror to sleep if not used

      @incubik I don’t use that browser, Google it :)
      @pugsly Node v6 is not supported at the moment.
      @Bangee yes, the pin has to be an int :) @incubik you also made that mistake!

      posted in Troubleshooting
      paviroP
      paviro
    • RE: PIR-Sensor - put your mirror to sleep if not used

      @incubik have you checked your Web inspector?

      posted in Troubleshooting
      paviroP
      paviro
    • RE: Synchronous requests [solved]

      Thanks! :)

      posted in Development
      paviroP
      paviro
    • RE: Synchronous requests [solved]

      I am on it but I can’t find the problem… :confounded:
      When broadcastItems is fired and therefore fetcher.onReceive triggered the lists are populated. But once broadcastTodos() collects the tasks by looping over the fetchers some lists appear to be empty. Any chance you could have a look?

      posted in Development
      paviroP
      paviro
    • RE: Synchronous requests [solved]

      It is not the socket connection. The fetcher sometimes returns an empty list :/

      posted in Development
      paviroP
      paviro
    • RE: Synchronous requests [solved]

      Does work great now! The only problem is sometimes a list is empty on a refresh even tough it should not be :/

      { inbox: [],
        'ViRO Entertainment': 
         [ 'Todo1',
           'Todo2',
           'Todo3' ]
       }
      
      posted in Development
      paviroP
      paviro
    • RE: Synchronous requests [solved]

      I do not quite understand how the itemsReceivedCallbackworks :confused:

      posted in Development
      paviroP
      paviro
    • RE: Synchronous requests [solved]

      I won’t pretend I completely understand what you did there :sweat_smile:
      Is it okay if I copy that code, I managed to modify it in a way that seems to work :)

      posted in Development
      paviroP
      paviro
    • Synchronous requests [solved]

      I am just working on some changes in my Wunderlist module and have a problem caused by not knowing JavaScript enough…

      One instance of my module can display multiple Wunderlist lists. In order for that to work I have to do one requests for every list to the Wunderlist API.

       request({url: "https://a.wunderlist.com/api/v1/tasks?list_id=" + id, method: "GET", headers: {"X-Access-Token": this.config.accessToken,"X-Client-ID": this.config.clientID}}, function(error, response, body) {
            if (!error && response.statusCode == 200) {
            ....
            callback(tasks);
       }
      });
      

      My problem is I can’t think of a way to combine the todos from all those requests into a single array and then after all todos are received send them to the interface.

      posted in Development
      paviroP
      paviro
    • RE: Wunderlist - your todos on the mirror

      @jagerpower sorry forgot about those… Will add a Screenshot to this post when I am home.

      posted in Troubleshooting
      paviroP
      paviro
    • RE: Wunderlist - your todos on the mirror

      @jagerpower also toggle the array in the array until there is nothing else to toggle…

      posted in Troubleshooting
      paviroP
      paviro
    • RE: Wunderlist - your todos on the mirror

      @jagerpower toggle the array that’s logged by the module anything in there?

      posted in Troubleshooting
      paviroP
      paviro
    • RE: Wunderlist - your todos on the mirror

      @jagerpower are there any log after that from the module?

      posted in Troubleshooting
      paviroP
      paviro
    • RE: Wunderlist - your todos on the mirror

      @jagerpower check the log not the element should be another tab.

      posted in Troubleshooting
      paviroP
      paviro
    • RE: Wunderlist - your todos on the mirror

      @jagerpower checked the Web inspector?

      posted in Troubleshooting
      paviroP
      paviro
    • 1 / 1