{"id":18650248,"url":"https://github.com/zuki/raspible_mac","last_synced_at":"2025-07-02T09:32:11.060Z","repository":{"id":149401937,"uuid":"194611468","full_name":"zuki/RasPiBLE_Mac","owner":"zuki","description":"RasPiとMacをつないでLチカ","archived":false,"fork":false,"pushed_at":"2019-07-01T06:23:24.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-06-14T16:51:46.457Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/zuki.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":"2019-07-01T06:18:42.000Z","updated_at":"2019-07-01T06:23:26.000Z","dependencies_parsed_at":null,"dependency_job_id":"4d954cfa-0a0e-44fe-a956-6766e124c458","html_url":"https://github.com/zuki/RasPiBLE_Mac","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/zuki/RasPiBLE_Mac","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zuki%2FRasPiBLE_Mac","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zuki%2FRasPiBLE_Mac/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zuki%2FRasPiBLE_Mac/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zuki%2FRasPiBLE_Mac/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zuki","download_url":"https://codeload.github.com/zuki/RasPiBLE_Mac/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zuki%2FRasPiBLE_Mac/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263111303,"owners_count":23415423,"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-07T06:43:03.480Z","updated_at":"2025-07-02T09:32:11.039Z","avatar_url":"https://github.com/zuki.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# RasPiとMac/ChromeをBLEでつないでLチカ\n\n## インストール\n\n### RasPi側\n\n[pybleno](https://github.com/Adam-Langley/pybleno)をインストールする\n\n```bash\n# 必要なパッケージのインストール\n# [bleno](https://github.com/noble/bleno#prerequisites)による\n$ sudo apt-get install bluetooth bluez libbluetooth-dev libudev-dev\n\n# bluetoothd の停止\n$ sudo systemctl stop bluetooth       # とりあえず今回だけ\n# $ sudo systemctl disable bluetooth    # 起動時にも停止\n\n# hci0のマニュアル起動\n$ sudo hciconfig hci0 up\n\n# pybleno のインストール\n$ pip install pybleno\n```\n\n### Mac側\n\n[BlueJelly](https://github.com/electricbaka/bluejelly.git)をインストールする\n\n```bash\n$ git clone https://github.com/electricbaka/bluejelly.git\n```\n\n## 操作方法\n\n### RasPi側\n\n1. ペリフェラルを立ち上げる\n\n  ```\n  $ cd /home/pi/examples/ble_switch\n  $ sudo ./peripheral.py\n  ```\n\n### Mac側\n\n1. 「設定」でBluetoothを有効化\n2. `Chrome` を立ち上げる\n3. `file:///Users/dspace/source/bluejelly/src/notify.html`に接続\n4. [Start Notify] ボタンを押して接続\n5. スイッチのオンオフでLEDがオン・オフし、`read data`値が変更される\n6. [Stop Notify] ボタンを押して切断\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzuki%2Fraspible_mac","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzuki%2Fraspible_mac","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzuki%2Fraspible_mac/lists"}