{"id":24101354,"url":"https://github.com/yxtay/raspberry-pi-sensortag","last_synced_at":"2025-05-08T01:11:34.935Z","repository":{"id":82529101,"uuid":"81627311","full_name":"yxtay/raspberry-pi-sensortag","owner":"yxtay","description":"Raspberry Pi wireless weather station with TI SensorTag CC2650 connected via Bluetooth Low Energy.","archived":false,"fork":false,"pushed_at":"2025-02-11T03:31:07.000Z","size":16,"stargazers_count":11,"open_issues_count":1,"forks_count":4,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-31T16:02:37.653Z","etag":null,"topics":["bluetooth-low-energy","cc2650","python","raspberry-pi","sensortag","weather-station"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yxtay.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2017-02-11T03:16:03.000Z","updated_at":"2024-03-01T01:54:16.000Z","dependencies_parsed_at":null,"dependency_job_id":"b383bcce-d37f-4c85-9738-7d2a9d38f5c4","html_url":"https://github.com/yxtay/raspberry-pi-sensortag","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yxtay%2Fraspberry-pi-sensortag","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yxtay%2Fraspberry-pi-sensortag/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yxtay%2Fraspberry-pi-sensortag/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yxtay%2Fraspberry-pi-sensortag/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yxtay","download_url":"https://codeload.github.com/yxtay/raspberry-pi-sensortag/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252978768,"owners_count":21834916,"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":["bluetooth-low-energy","cc2650","python","raspberry-pi","sensortag","weather-station"],"created_at":"2025-01-10T16:55:13.793Z","updated_at":"2025-05-08T01:11:34.925Z","avatar_url":"https://github.com/yxtay.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Raspberry Pi wireless weather station\nRaspberry Pi wireless weather station with TI SensorTag CC2650STK connected via Bluetooth Low Energy.\n\nThis project was developed with Python 2.7 on Raspbian. \nIt works on the Raspberry Pi 3 Model B, which includes a Bluetooth Low Energy receiver.\nIt requires the [TI SensorTag CC2650STK](http://www.ti.com/tool/CC2650STK).\n\nThe project is based on the \n[Mini Weather Station project on hackster.io](https://www.hackster.io/idreams/make-a-mini-weather-station-with-a-raspberry-pi-2-and-sense-447866)\nadapted for the SensorTag.\n\n## Setup\n\n```bash\n# clone the repository\ngit clone git@github.com:yxtay/raspberry-pi-sensortag.git\ncd raspberry-pi-sensortag\n\n# install dependencies\nsudo apt install python-pip virtualenvwrapper libglib2.0-dev\nmkvirtualenv sensortag  # OPTIONAL: create virtualenv\npip install -r requirements.txt\n```\n\n## Configuration\n\nPlease set the following variables at the top of `sensortag_weather.py` as described.\n\n### `SENSORTAG_ADDRESS`\n\nThe MAC address of the SensorTag can obtained by typing the following into the terminal.\n\n```bash\nsudo hcitool lescan\n```\n\nTurn on the SensorTag. You should see:\n\n```bash\n24:71:89:E6:AD:84 CC2650 SensorTag\n```\n\nSet `SENSORTAG_ADDRESS` accordingly.\n\n### `GDOCS_OAUTH_JSON`\n\nFollow the [`gspread` documentation instructions to obtain OAuth2 credentials from Google Developers Console](http://gspread.readthedocs.io/en/latest/oauth2.html).\n\nSet `GDOCS_OAUTH_JSON` to the name of the file.\n\nOpen up the credentials file and note the email address under `client_email`, which is required in the next section.\n\n### `GDOCS_SPREADSHEET_NAME` and `GDOCS_WORKSHEET_NAME`\n\nCreate a Google Spreadsheet and name it as you desire. Set `GDOCS_SPREADSHEET_NAME` to the name of the spreadsheet.\n\nRename the worksheet as you desire. Otherwise, it shall be \"Sheet1\" by default. Set `GDOCS_WORKSHEET_NAME` to the name of the worksheet.\n\nShare the spreadsheet with `client_email` in the credential file from the previous section.\n\n### `FREQUENCY_SECONDS`\n\nIt takes about 5-6 seconds to obtain readings from the SensorTag and upload them to Google Spreadsheet.\nFor approximiately per minute readings, set `FREQUENCY_SECONDS` to 55.\n\n## Run script\n\n```bash\nworkon sensortag  # activate virtualenv\npython sensortag_weather.py\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyxtay%2Fraspberry-pi-sensortag","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyxtay%2Fraspberry-pi-sensortag","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyxtay%2Fraspberry-pi-sensortag/lists"}