Reformatting
All checks were successful
ci/woodpecker/push/docker Pipeline was successful

This commit is contained in:
Thomas Renger 2024-11-25 10:13:52 +01:00
parent a818b0f99d
commit 7a7dcdfe55

View file

@ -6,14 +6,14 @@ from datetime import datetime
# Set up Mastodon
mastodon = Mastodon(
access_token = 'token.secret',
api_base_url = os.getenv('MASTODON_URL', 'https://mastodon.wazongtest.de/')
access_token='token.secret',
api_base_url=os.getenv('MASTODON_URL', 'https://mastodon.wazongtest.de/')
)
tz = timezone('Europe/Berlin')
now = datetime.now().astimezone(tz)
moon_text="Aktuelle Mondphase:\n"
moon_text+=moon.moon_phase_as_text(now)
moon_text = "Aktuelle Mondphase:\n"
moon_text += moon.moon_phase_as_text(now)
print(moon_text)
mastodon.status_post(moon_text, visibility='unlisted')