@feuerball please press on main.js on the right so we can see on what it tries to execute the lower case thing.
Read the statement by Michael Teeuw here.
Posts
-
RE: Face Recognition with inferred light
-
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.
-
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 :) -
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 :)
-
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.
-
RE: PIR-Sensor - put your mirror to sleep if not used
-
RE: PIR-Sensor - put your mirror to sleep if not used
@incubik have you checked your Web inspector?
-
RE: Synchronous requests [solved]
I am on it but I can’t find the problem… :confounded:
WhenbroadcastItemsis fired and thereforefetcher.onReceivetriggered the lists are populated. But oncebroadcastTodos()collects the tasks by looping over thefetcherssome lists appear to be empty. Any chance you could have a look? -
RE: Synchronous requests [solved]
It is not the socket connection. The fetcher sometimes returns an empty list :/
-
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' ] } -
RE: Synchronous requests [solved]
I do not quite understand how the
itemsReceivedCallbackworks :confused: -
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 :) -
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.
-
RE: Wunderlist - your todos on the mirror
@jagerpower sorry forgot about those… Will add a Screenshot to this post when I am home.
-
RE: Wunderlist - your todos on the mirror
@jagerpower also toggle the array in the array until there is nothing else to toggle…
-
RE: Wunderlist - your todos on the mirror
@jagerpower toggle the array that’s logged by the module anything in there?
-
RE: Wunderlist - your todos on the mirror
@jagerpower are there any log after that from the module?
-
RE: Wunderlist - your todos on the mirror
@jagerpower check the log not the element should be another tab.
-
RE: Wunderlist - your todos on the mirror
@jagerpower checked the Web inspector?