https://github.com/spanglelabs/sleep-pic-updater
A simple little telegram client script which checks my dailys data, and updated my profile photo if I am asleep
https://github.com/spanglelabs/sleep-pic-updater
Last synced: about 2 months ago
JSON representation
A simple little telegram client script which checks my dailys data, and updated my profile photo if I am asleep
- Host: GitHub
- URL: https://github.com/spanglelabs/sleep-pic-updater
- Owner: SpangleLabs
- License: mit
- Created: 2019-07-08T15:58:03.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2022-01-04T12:54:32.000Z (over 4 years ago)
- Last Synced: 2025-06-13T21:05:45.419Z (about 1 year ago)
- Language: Python
- Size: 38.1 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# sleep-pic-updater
A simple little telegram client script which checks my dailys data, and updated my profile photo if I am asleep
## Setup
On the rare case another person wants to use this, add a config.json file like so:
```json
{
"api_id": 12345,
"api_hash": "0123456789abcdef0123456789abcdef",
"dailys_url": "http://dailys.example.com/views/sleep_status.json",
"dailys_auth_key": "",
"awake_pic": {
"path": "./awake.png"
},
"asleep_pic": {
"path": "./asleep.png"
}
}
```
Swapping their api_id and api_hash for the ones available at https://my.telegram.org/and putting the address to your own [dailys API](https://github.com/joshcoales/Dailys-API) instance.
dailys_url needs pointing to your [Dailys API](https://github.com/joshcoales/Dailys-API) instance, and dailys_auth_key should be the view_auth_key.
asleep_pic.path and awake_pic.path need setting to what you want, then they should add an asleep_pic.id and awake_pic.id for later use, rather than re-uploading the same files over and over.