{"action":"created","issue":{"url":"https://api.github.com/repos/freifunk-gluon/gluon/issues/427","labels_url":"https://api.github.com/repos/freifunk-gluon/gluon/issues/427/labels{/name}","comments_url":"https://api.github.com/repos/freifunk-gluon/gluon/issues/427/comments","events_url":"https://api.github.com/repos/freifunk-gluon/gluon/issues/427/events","html_url":"https://github.com/freifunk-gluon/gluon/issues/427","id":97711853,"number":427,"title":"Autoupdater: connect as client if no mesh possible","user":{"login":"rubo77","id":1591563,"avatar_url":"https://avatars.githubusercontent.com/u/1591563?v=3","gravatar_id":"","url":"https://api.github.com/users/rubo77","html_url":"https://github.com/rubo77","followers_url":"https://api.github.com/users/rubo77/followers","following_url":"https://api.github.com/users/rubo77/following{/other_user}","gists_url":"https://api.github.com/users/rubo77/gists{/gist_id}","starred_url":"https://api.github.com/users/rubo77/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rubo77/subscriptions","organizations_url":"https://api.github.com/users/rubo77/orgs","repos_url":"https://api.github.com/users/rubo77/repos","events_url":"https://api.github.com/users/rubo77/events{/privacy}","received_events_url":"https://api.github.com/users/rubo77/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-07-28T13:48:18Z","updated_at":"2015-09-18T01:50:48Z","closed_at":null,"body":"If a node without uplink cannot connect to any other node, it should automatically connect to any open wifi to search for updates (and maybe serve more stuff ;) )"},"comment":{"url":"https://api.github.com/repos/freifunk-gluon/gluon/issues/comments/141304707","html_url":"https://github.com/freifunk-gluon/gluon/issues/427#issuecomment-141304707","issue_url":"https://api.github.com/repos/freifunk-gluon/gluon/issues/427","id":141304707,"user":{"login":"CodeFetch","id":4960948,"avatar_url":"https://avatars.githubusercontent.com/u/4960948?v=3","gravatar_id":"","url":"https://api.github.com/users/CodeFetch","html_url":"https://github.com/CodeFetch","followers_url":"https://api.github.com/users/CodeFetch/followers","following_url":"https://api.github.com/users/CodeFetch/following{/other_user}","gists_url":"https://api.github.com/users/CodeFetch/gists{/gist_id}","starred_url":"https://api.github.com/users/CodeFetch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CodeFetch/subscriptions","organizations_url":"https://api.github.com/users/CodeFetch/orgs","repos_url":"https://api.github.com/users/CodeFetch/repos","events_url":"https://api.github.com/users/CodeFetch/events{/privacy}","received_events_url":"https://api.github.com/users/CodeFetch/received_events","type":"User","site_admin":false},"created_at":"2015-09-18T01:50:48Z","updated_at":"2015-09-18T01:50:48Z","body":"The problem that I see with these suggestions is that it looks like as though you want to let the node stay in client mode. As I already mentioned we have communities that have nodes which never have a connection to the internet/update servers and are only used to communicate peer to peer via wifi.\r\nWe don't want them having to build a separate image for this purpose.\r\n\r\nThus my suggestion is to add code to the beginning of the autoupdater script to test whether the updateserver can be reached via the nodes own client or wan interface. \r\nIf not then set up a cronjob for another script that checks all open wifi networks nearby whether the update server is reachable via one of that networks. If it is, do an update if available. \r\nWhether that attempt was successful or not -> remove cronjob that started that script.\r\n\r\nWith this method the node operates like an ordinary node most of the time."}}