{"action":"created","issue":{"url":"https://api.github.com/repos/geerlingguy/temperature-monitor/issues/14","labels_url":"https://api.github.com/repos/geerlingguy/temperature-monitor/issues/14/labels{/name}","comments_url":"https://api.github.com/repos/geerlingguy/temperature-monitor/issues/14/comments","events_url":"https://api.github.com/repos/geerlingguy/temperature-monitor/issues/14/events","html_url":"https://github.com/geerlingguy/temperature-monitor/issues/14","id":57126087,"number":14,"title":"Create Ansible build playbook to build a Pi for Pi/Uno","user":{"login":"geerlingguy","id":481677,"avatar_url":"https://avatars.githubusercontent.com/u/481677?v=3","gravatar_id":"","url":"https://api.github.com/users/geerlingguy","html_url":"https://github.com/geerlingguy","followers_url":"https://api.github.com/users/geerlingguy/followers","following_url":"https://api.github.com/users/geerlingguy/following{/other_user}","gists_url":"https://api.github.com/users/geerlingguy/gists{/gist_id}","starred_url":"https://api.github.com/users/geerlingguy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/geerlingguy/subscriptions","organizations_url":"https://api.github.com/users/geerlingguy/orgs","repos_url":"https://api.github.com/users/geerlingguy/repos","events_url":"https://api.github.com/users/geerlingguy/events{/privacy}","received_events_url":"https://api.github.com/users/geerlingguy/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/geerlingguy/temperature-monitor/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-02-10T03:31:51Z","updated_at":"2015-02-10T03:42:19Z","closed_at":null,"body":"There are a few steps:\r\n\r\n  1. WiFi configuration (add an automatic-wifi-restart script that will try to automatically reconnect on dropped wifi connection) — and add the script as a cron job.\r\n  2. Cloning this repository.\r\n  3. Creating the local config file (as a template, so sensor IDs can be configured).\r\n  4. Starting the proper script.\r\n\r\nEach of these would use inventory or host vars to set the proper settings and choose the proper script."},"comment":{"url":"https://api.github.com/repos/geerlingguy/temperature-monitor/issues/comments/73639554","html_url":"https://github.com/geerlingguy/temperature-monitor/issues/14#issuecomment-73639554","issue_url":"https://api.github.com/repos/geerlingguy/temperature-monitor/issues/14","id":73639554,"user":{"login":"geerlingguy","id":481677,"avatar_url":"https://avatars.githubusercontent.com/u/481677?v=3","gravatar_id":"","url":"https://api.github.com/users/geerlingguy","html_url":"https://github.com/geerlingguy","followers_url":"https://api.github.com/users/geerlingguy/followers","following_url":"https://api.github.com/users/geerlingguy/following{/other_user}","gists_url":"https://api.github.com/users/geerlingguy/gists{/gist_id}","starred_url":"https://api.github.com/users/geerlingguy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/geerlingguy/subscriptions","organizations_url":"https://api.github.com/users/geerlingguy/orgs","repos_url":"https://api.github.com/users/geerlingguy/repos","events_url":"https://api.github.com/users/geerlingguy/events{/privacy}","received_events_url":"https://api.github.com/users/geerlingguy/received_events","type":"User","site_admin":false},"created_at":"2015-02-10T03:42:19Z","updated_at":"2015-02-10T03:42:19Z","body":"For WiFi dropped connections, a simple script like the following should do nicely (and keep the network connection alive in general...). Maybe run it on a `*/5` minute schedule?\r\n\r\n```\r\nping -c 3 -W 10 192.168.2.1 >/dev/null\r\n\r\nif [ $? -ne 0 ]; then\r\n  service network-manager restart\r\n  sleep 5\r\nfi\r\n```\r\n\r\nAs seen [here](http://askubuntu.com/a/276027)."}}