{"action":"created","issue":{"url":"https://api.github.com/repos/felixfischer/node-red-contrib-fritzbox-presence/issues/1","repository_url":"https://api.github.com/repos/felixfischer/node-red-contrib-fritzbox-presence","labels_url":"https://api.github.com/repos/felixfischer/node-red-contrib-fritzbox-presence/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/felixfischer/node-red-contrib-fritzbox-presence/issues/1/comments","events_url":"https://api.github.com/repos/felixfischer/node-red-contrib-fritzbox-presence/issues/1/events","html_url":"https://github.com/felixfischer/node-red-contrib-fritzbox-presence/issues/1","id":186451427,"number":1,"title":"Processing output ","user":{"login":"protolyser","id":22727985,"avatar_url":"https://avatars.githubusercontent.com/u/22727985?v=3","gravatar_id":"","url":"https://api.github.com/users/protolyser","html_url":"https://github.com/protolyser","followers_url":"https://api.github.com/users/protolyser/followers","following_url":"https://api.github.com/users/protolyser/following{/other_user}","gists_url":"https://api.github.com/users/protolyser/gists{/gist_id}","starred_url":"https://api.github.com/users/protolyser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/protolyser/subscriptions","organizations_url":"https://api.github.com/users/protolyser/orgs","repos_url":"https://api.github.com/users/protolyser/repos","events_url":"https://api.github.com/users/protolyser/events{/privacy}","received_events_url":"https://api.github.com/users/protolyser/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-11-01T03:39:03Z","updated_at":"2016-11-01T13:08:22Z","closed_at":null,"body":"Hi,\r\nhow do I correctly process the output of the node to check if a client is in the network or not (detect if I'm at home with my smartphone).\r\n\r\nI tried it with a function node and:\r\n`return msg = false;\r\nvar jsonData = JSON.parse(msg.payload);\r\nfor (var i = 0; i < jsonData.length; i++) {\r\n    var names = jsonData[i];\r\n     if (names.name == \"Phone\"){\r\n         {\r\n             msg.payload = true;\r\n             return msg;\r\n         }\r\n    }\r\n}`\r\n\r\nBut this doesn't detect if it's not there anymore.\r\nDo you have an example of how to use it correctly?"},"comment":{"url":"https://api.github.com/repos/felixfischer/node-red-contrib-fritzbox-presence/issues/comments/257562072","html_url":"https://github.com/felixfischer/node-red-contrib-fritzbox-presence/issues/1#issuecomment-257562072","issue_url":"https://api.github.com/repos/felixfischer/node-red-contrib-fritzbox-presence/issues/1","id":257562072,"user":{"login":"felixfischer","id":426606,"avatar_url":"https://avatars.githubusercontent.com/u/426606?v=3","gravatar_id":"","url":"https://api.github.com/users/felixfischer","html_url":"https://github.com/felixfischer","followers_url":"https://api.github.com/users/felixfischer/followers","following_url":"https://api.github.com/users/felixfischer/following{/other_user}","gists_url":"https://api.github.com/users/felixfischer/gists{/gist_id}","starred_url":"https://api.github.com/users/felixfischer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/felixfischer/subscriptions","organizations_url":"https://api.github.com/users/felixfischer/orgs","repos_url":"https://api.github.com/users/felixfischer/repos","events_url":"https://api.github.com/users/felixfischer/events{/privacy}","received_events_url":"https://api.github.com/users/felixfischer/received_events","type":"User","site_admin":false},"created_at":"2016-11-01T13:08:22Z","updated_at":"2016-11-01T13:08:22Z","body":"I can only test this on my own Fritz!Box 7490 running firmware version 6.60, but it works fairly well for me. Sometimes I cannot see a phone online, which may be because of some kind of sleep mode they go into after some time.\r\n\r\nAnyway, you should see the same list of connected devices as in your Fritz!Box interface. If you see a device there which is not listed by my node, please tell me and I'll investigate further."}}
{"actor":{"display_login":"felixfischer"}}