{"id":28790930,"url":"https://github.com/fairydevicesrd/thinklet.app.lifelog","last_synced_at":"2025-10-15T17:51:45.376Z","repository":{"id":299230600,"uuid":"938618696","full_name":"FairyDevicesRD/thinklet.app.lifelog","owner":"FairyDevicesRD","description":"THINKLET ライフログアプリ","archived":false,"fork":false,"pushed_at":"2025-02-25T08:40:43.000Z","size":114,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-06-15T13:56:29.213Z","etag":null,"topics":["lifelog","thinklet"],"latest_commit_sha":null,"homepage":"","language":"Kotlin","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/FairyDevicesRD.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,"zenodo":null}},"created_at":"2025-02-25T08:35:38.000Z","updated_at":"2025-02-25T08:43:11.000Z","dependencies_parsed_at":"2025-06-15T13:59:32.343Z","dependency_job_id":"2e96fc51-78b2-46c4-8fe4-fd15f41c4077","html_url":"https://github.com/FairyDevicesRD/thinklet.app.lifelog","commit_stats":null,"previous_names":["fairydevicesrd/thinklet.app.lifelog"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/FairyDevicesRD/thinklet.app.lifelog","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FairyDevicesRD%2Fthinklet.app.lifelog","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FairyDevicesRD%2Fthinklet.app.lifelog/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FairyDevicesRD%2Fthinklet.app.lifelog/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FairyDevicesRD%2Fthinklet.app.lifelog/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FairyDevicesRD","download_url":"https://codeload.github.com/FairyDevicesRD/thinklet.app.lifelog/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FairyDevicesRD%2Fthinklet.app.lifelog/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260457013,"owners_count":23012219,"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":["lifelog","thinklet"],"created_at":"2025-06-17T23:30:56.130Z","updated_at":"2025-10-15T17:51:45.358Z","avatar_url":"https://github.com/FairyDevicesRD.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# LifeLog\n最大８時間の無充電連続稼働可能な THINKLET向けのカメラ撮影，録音アプリです．  \nある程度Activityにベタ書きもできるように設計しています．\n## 開発時\n- Android Studio Ladybug Feature Drop | 2024.2.2\n# インタフェース\n- 起動時の引数として以下をサポートしています．\n\n| パラメータ        | 型                | デフォルト | 説明                     |\n| ----------------- | ----------------- | ---------- | ------------------------ |\n| `longSide`        | String or Int     | 640        | 撮影する画像の長辺       |\n| `shortSide`       | String or Int     | 480        | 撮影する画像の短辺       |\n| `intervalSeconds` | String or Int     | 300        | 撮影間隔の秒数．最小10． |\n| `enabledMic`      | String or Boolean | false      | 録音を有効化します       |\n\n\u003e [!NOTE]\n\u003e `longSide` と，`shortSide` はなるべくその大きさになるように指定するものです．サポートされていない組み合わせの場合，最も近い解像度に変更されます．\n\n# 機能\n## 定期撮影\n- 定期的に撮影し，Gifファイルに書き出します．\n- 書き出しファイルは，最大で600枚の画像撮影ごとに別ファイルに切り替えます．\n## （オプション）録音\n- 5chマイクを用いて録音し，2chの48kHzのRawファイル形式で保存します．\n- 使用すると，消費電力が増加します．\n- 書き出しファイルは，最大で1GByteごとに別ファイルに切り替えます．\n## MTP公開\n- 利用を簡便化するために，保存したデータをMTPモードで公開できるようにしています．\n  - `/内部ストレージ/DCIM/lifelog/20241122/20241122_085125.gif` のようなPathに保存されます．\n\u003e [!TIP]\n\u003e THINKLETでは，以下のコマンドを実行することで，MTPモードへ一時的に切り替えることができます．  \n\u003e `adb shell svc usb setFunction mtp true`\n# 開発\n- `local.properties` に以下を追記します．GithubPackagesにあるライブラリを取得するために使います．\n    ```diff\n    # GitHub Packages経由でライブラリを取得します．下記を参考にアクセストークンを発行ください．\n    # https://docs.github.com/ja/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token\n    # read:packages の権限が必須です\n    + TOKEN=\u003cgithub token\u003e\n    + USERNAME=\u003cgithub username\u003e\n    ```\n- 画像などをアップロードしたいときは，`MicRecordUseCase.kt`, `SnapshotUseCase.kt` の下記の部分で，ファイル保存が完了したときのイベントが記述できます．ここに追記や拡張することで実現できます．\n    ```kotlin\n    gifEncoderRepository.savedEvent {\n        Log.i(TAG, \"savedEvent gif: ${it.absoluteFile}\")\n        fileSelectorRepository.deploy(it)\n    }\n    ```\n\n    ```kotlin\n    audioCaptureRepository.savedEvent {\n        Log.i(TAG, \"savedEvent mic: ${it.absoluteFile}\")\n        fileSelectorRepository.deploy(it)\n    }\n    ```\n- インストールは，AndroidStudio あるいは，`./gradlew installDebug` 等で行います．\n- 実行前に，[scrcpy](https://github.com/Genymobile/scrcpy) を用いて，設定アプリからすべてのPermissionを許可します．\n# KeyConfig\n- [開発者ポータルのKeyConfig](https://fairydevicesrd.github.io/thinklet.app.developer/docs/keyConfig/) を使ったキーコンフィグ設定例です．\n- `adb push 1440_1080.json /sdcard/Android/data/ai.fd.thinklet.app.launcher/files/key_config.json \u0026\u0026 adb reboot` で設定可能です．\n  - [1440x1080 マイク無し](./keyConfigs/1440_1080.json)\n  - [2592x1944 マイクあり](./keyConfigs/2592_1944_withMic.json)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffairydevicesrd%2Fthinklet.app.lifelog","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffairydevicesrd%2Fthinklet.app.lifelog","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffairydevicesrd%2Fthinklet.app.lifelog/lists"}