{"action":"created","issue":{"url":"https://api.github.com/repos/tatobari/hx711py/issues/15","repository_url":"https://api.github.com/repos/tatobari/hx711py","labels_url":"https://api.github.com/repos/tatobari/hx711py/issues/15/labels{/name}","comments_url":"https://api.github.com/repos/tatobari/hx711py/issues/15/comments","events_url":"https://api.github.com/repos/tatobari/hx711py/issues/15/events","html_url":"https://github.com/tatobari/hx711py/issues/15","id":319165836,"number":15,"title":"remember zero point ","user":{"login":"sebi85","id":11717909,"avatar_url":"https://avatars2.githubusercontent.com/u/11717909?v=4","gravatar_id":"","url":"https://api.github.com/users/sebi85","html_url":"https://github.com/sebi85","followers_url":"https://api.github.com/users/sebi85/followers","following_url":"https://api.github.com/users/sebi85/following{/other_user}","gists_url":"https://api.github.com/users/sebi85/gists{/gist_id}","starred_url":"https://api.github.com/users/sebi85/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sebi85/subscriptions","organizations_url":"https://api.github.com/users/sebi85/orgs","repos_url":"https://api.github.com/users/sebi85/repos","events_url":"https://api.github.com/users/sebi85/events{/privacy}","received_events_url":"https://api.github.com/users/sebi85/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":16,"created_at":"2018-05-01T10:27:10Z","updated_at":"2018-05-01T19:58:32Z","closed_at":null,"author_association":"NONE","body":"Hello everybody, I've broken my head for days\r\n\r\nI have a Pi3 with HX711\r\n\r\nMeanwhile, I've got the balance as a service and loads the values sent via UDP.\r\n\r\nNow I have only one problem the balance reset after each restart and that must not be.\r\nBottles are measured by weight. These bottles can not be taken off the balance every time the machine is restarted but must remain permanently on it.\r\n\r\n\r\n\r\n```python\r\n#!/usr/bin/env python\r\nimport time\r\nimport sys\r\nimport os\r\nimport socket\r\nfrom hx711 import HX711\r\n\r\ndef cleanAndExit():\r\n    client.disconnect();\r\n    print \"Cleaning...\"\r\n    GPIO.cleanup()\r\n    print \"Bye!\"\r\n    sys.exit()\r\n\r\nhx = HX711(27, 17)\r\nhx.set_reading_format(\"LSB\",)\r\n\r\nhx.set_reference_unit(92)\r\n\r\nhx.reset()\r\nhx.tare()\r\n\r\nUDP_IP = \"192.168.210.113\"\r\nUDP_PORT = 1234\r\n\r\nwhile True:\r\n    try:\r\n        val = hx.get_weight(5)\r\n        print val\r\n\r\n   val2 = str(val)\r\n        MESSAGE = \"GewichtGas=\"+ val2\r\n   sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)\r\n   sock.sendto(MESSAGE, (UDP_IP, UDP_PORT))\r\n\r\n        hx.power_down()\r\n        hx.power_up()\r\n        time.sleep(0.5)\r\n    except (KeyboardInterrupt, SystemExit):\r\n        cleanAndExit()\r\n```"},"comment":{"url":"https://api.github.com/repos/tatobari/hx711py/issues/comments/385772577","html_url":"https://github.com/tatobari/hx711py/issues/15#issuecomment-385772577","issue_url":"https://api.github.com/repos/tatobari/hx711py/issues/15","id":385772577,"user":{"login":"sebi85","id":11717909,"avatar_url":"https://avatars2.githubusercontent.com/u/11717909?v=4","gravatar_id":"","url":"https://api.github.com/users/sebi85","html_url":"https://github.com/sebi85","followers_url":"https://api.github.com/users/sebi85/followers","following_url":"https://api.github.com/users/sebi85/following{/other_user}","gists_url":"https://api.github.com/users/sebi85/gists{/gist_id}","starred_url":"https://api.github.com/users/sebi85/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sebi85/subscriptions","organizations_url":"https://api.github.com/users/sebi85/orgs","repos_url":"https://api.github.com/users/sebi85/repos","events_url":"https://api.github.com/users/sebi85/events{/privacy}","received_events_url":"https://api.github.com/users/sebi85/received_events","type":"User","site_admin":false},"created_at":"2018-05-01T19:58:32Z","updated_at":"2018-05-01T19:58:32Z","author_association":"NONE","body":"in 1 till 20000 gramm "}}
{"actor":{"display_login":"sebi85"}}