{"action":"created","issue":{"url":"https://api.github.com/repos/node-red/node-red/issues/523","labels_url":"https://api.github.com/repos/node-red/node-red/issues/523/labels{/name}","comments_url":"https://api.github.com/repos/node-red/node-red/issues/523/comments","events_url":"https://api.github.com/repos/node-red/node-red/issues/523/events","html_url":"https://github.com/node-red/node-red/issues/523","id":53218257,"number":523,"title":"Error: connect ECONNREFUSED - wemo - port problems?","user":{"login":"Achronite","id":10363609,"avatar_url":"https://avatars.githubusercontent.com/u/10363609?v=3","gravatar_id":"","url":"https://api.github.com/users/Achronite","html_url":"https://github.com/Achronite","followers_url":"https://api.github.com/users/Achronite/followers","following_url":"https://api.github.com/users/Achronite/following{/other_user}","gists_url":"https://api.github.com/users/Achronite/gists{/gist_id}","starred_url":"https://api.github.com/users/Achronite/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Achronite/subscriptions","organizations_url":"https://api.github.com/users/Achronite/orgs","repos_url":"https://api.github.com/users/Achronite/repos","events_url":"https://api.github.com/users/Achronite/events{/privacy}","received_events_url":"https://api.github.com/users/Achronite/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/node-red/node-red/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/node-red/node-red/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":{"login":"dceejay","id":5375409,"avatar_url":"https://avatars.githubusercontent.com/u/5375409?v=3","gravatar_id":"","url":"https://api.github.com/users/dceejay","html_url":"https://github.com/dceejay","followers_url":"https://api.github.com/users/dceejay/followers","following_url":"https://api.github.com/users/dceejay/following{/other_user}","gists_url":"https://api.github.com/users/dceejay/gists{/gist_id}","starred_url":"https://api.github.com/users/dceejay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dceejay/subscriptions","organizations_url":"https://api.github.com/users/dceejay/orgs","repos_url":"https://api.github.com/users/dceejay/repos","events_url":"https://api.github.com/users/dceejay/events{/privacy}","received_events_url":"https://api.github.com/users/dceejay/received_events","type":"User","site_admin":false},"milestone":null,"comments":3,"created_at":"2015-01-01T11:53:12Z","updated_at":"2015-01-02T22:03:36Z","closed_at":null,"body":"I have a problem with node-red-node-wemo interacting with a wemo switch using the wemo in node.  Intermittently the wemo nodes in node-red report 'Error:  connect ECONNREFUSED'.  I have performed some research and it appears that the port the wemo uses can vary between 49152 and 49155, so I suspect this may be the problem.  Is there any way the node-red-node-wemo driver can be changed to automatically discover and use the correct port?\r\n\r\nFor example something like this shell script snippit from http://wemo.forumatic.com/viewtopic.php?f=2&t=5 :\r\n\r\n    for PTEST in 49152 49153 49154 49155\r\n    do\r\n            PORTTEST=$(curl -s -m 3 $IP:$PTEST | grep \"404\")\r\n                     \r\n            if [ \"$PORTTEST\" != \"\" ]\r\n               then\r\n               PORT=$PTEST\r\n               break\r\n            fi\r\n    done\r\n\r\nI have run the full script on that page and it says my wemo is currently on port 49153 - and I am getting the ECONNREFUSED error in node-red.\r\n\r\nEDIT: I have just found out that if i change the default port number in the file 'node_modules/node-red-node-wemo/node_modules/wemo/wemo.js' from 49154 to 49153 it fixes the issue - confirming that the problem is because the wemo does not always operate on port 49154."},"comment":{"url":"https://api.github.com/repos/node-red/node-red/issues/comments/68566826","html_url":"https://github.com/node-red/node-red/issues/523#issuecomment-68566826","issue_url":"https://api.github.com/repos/node-red/node-red/issues/523","id":68566826,"user":{"login":"knolleary","id":51083,"avatar_url":"https://avatars.githubusercontent.com/u/51083?v=3","gravatar_id":"","url":"https://api.github.com/users/knolleary","html_url":"https://github.com/knolleary","followers_url":"https://api.github.com/users/knolleary/followers","following_url":"https://api.github.com/users/knolleary/following{/other_user}","gists_url":"https://api.github.com/users/knolleary/gists{/gist_id}","starred_url":"https://api.github.com/users/knolleary/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/knolleary/subscriptions","organizations_url":"https://api.github.com/users/knolleary/orgs","repos_url":"https://api.github.com/users/knolleary/repos","events_url":"https://api.github.com/users/knolleary/events{/privacy}","received_events_url":"https://api.github.com/users/knolleary/received_events","type":"User","site_admin":false},"created_at":"2015-01-02T22:03:36Z","updated_at":"2015-01-02T22:03:36Z","body":"The user is unlikely to know what the port is, so allowing the set it isn't going to be that helpful. It should just work."}}