{"id":19694590,"url":"https://github.com/petykowski/room-219","last_synced_at":"2025-09-08T03:39:29.160Z","repository":{"id":176069197,"uuid":"48720587","full_name":"petykowski/room-219","owner":"petykowski","description":"A small Python application that measures the room temperature and stores it to a MySQL Database.","archived":false,"fork":false,"pushed_at":"2017-02-05T21:30:19.000Z","size":9,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-10T09:21:52.740Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"server.myprevio.us","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/petykowski.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-12-29T01:28:28.000Z","updated_at":"2016-03-04T15:12:53.000Z","dependencies_parsed_at":null,"dependency_job_id":"aa916c3b-1b2e-498e-889d-48be974c6469","html_url":"https://github.com/petykowski/room-219","commit_stats":null,"previous_names":["petykowski/room-219"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/petykowski%2Froom-219","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/petykowski%2Froom-219/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/petykowski%2Froom-219/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/petykowski%2Froom-219/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/petykowski","download_url":"https://codeload.github.com/petykowski/room-219/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241005429,"owners_count":19892788,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-11T19:23:38.498Z","updated_at":"2025-02-27T10:48:04.558Z","avatar_url":"https://github.com/petykowski.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"Room 219\n=============\n\nObjectives\n-------\nMeasure room temperature and write to MySQL database for use on website, iOS, and Apple Watch app.\n\nExample\n-------\n[Temperature in 219] (https://server.myprevio.us)\n\nRequirements\n-----------\n* Raspberry Pi B+\n* DHT11 Temperature and Humidity Sensor\n* MySQL Server\n* [DHT11 Library] (https://github.com/szazo/DHT11_Python)\n\nInstallation\n-----------\nNavigate to your working directory in Terminal.app.\n```shell\n$ cd /path/to/working/directory\n```\nClone the repo to your directory.\n```shell\n$ git clone https://github.com/spetykowski/room-219.git\n```\nClone [szazo's DHT11 Python library](https://github.com/szazo/DHT11_Python) repo to your directory.\n```shell\n$ git clone https://github.com/szazo/DHT11_Python.git\n```\nRename file [config_example.py] (https://github.com/spetykowski/room-219/blob/master/config_example.py) to config.py.\n```shell\n$ mv config_example.py config.py\n```\n\nConfiguration\n-----------\nEdit your newly renamed config.py \n```python\nhost='hostname' # Host Name of MySQL Server\nuser='username' # Username used to conenct to MySQL Server\npassword='password' # Password used to conenct to MySQL Server\ndb='database' # Name of MySQL Database\ncharset='SQLcharset' # Charset for MySQL Database\npin=4 # refer to RaspberryPi GPIO pin layout\n```\n\nUsage\n-----------\nRoom 219 can be started a number of ways. First is by calling Python to run the script.\n```shell\n$ python Room219.py start\n```\nCall the process directly: (file requires execute permissions)\n```shell\n$ ./Room219.py start\n```\nTo run the script continiously in the background:\n```shell\n$ nohup ./Room219.py start \u0026\n```\nStop a background process with:\n```shell\n$ ./Room219.py stop\n```\n\nResources\n------------\n* DHT11 Sensor Library from [szazo](https://github.com/szazo/DHT11_Python). \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpetykowski%2Froom-219","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpetykowski%2Froom-219","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpetykowski%2Froom-219/lists"}