this repo has no description
1#!/usr/bin/env python3
2
3import time
4
5import atproto
6import requests
7
8
9BSKY_HANDLE = 'bskycharts.edavis.dev'
10BSKY_APP_PASSWORD = ''
11BSKY_ACTIVITY_IMAGE_URL = 'https://bskycharts.edavis.dev/munin-cgi/munin-cgi-graph/edavis.dev/bskycharts.edavis.dev/bsky-day.png'
12
13
14def main():
15 client = atproto.Client('https://pds.merklehost.xyz')
16 client.login(BSKY_HANDLE, BSKY_APP_PASSWORD)
17
18 resp = requests.get(BSKY_ACTIVITY_IMAGE_URL)
19 resp.raise_for_status()
20
21 client.send_image(
22 text = '',
23 image = resp.content,
24 image_alt = 'munin chart showing daily bluesky network activity'
25 )
26
27
28if __name__ == '__main__':
29 main()