From 44cf72caed0ac85ef9bec5866d5f789fe03a8328 Mon Sep 17 00:00:00 2001 From: Aaro Varis Date: Thu, 15 Jan 2026 10:12:46 +0200 Subject: [PATCH] =?UTF-8?q?Add=20sunrise=20and=20sunset=20calculations=20f?= =?UTF-8?q?or=20Sein=C3=A4joki=20in=20init.py;=20update=20requirements.txt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- init.py | 10 +++++++++- requirements.txt | 1 + 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/init.py b/init.py index e496923..23f200b 100644 --- a/init.py +++ b/init.py @@ -1 +1,9 @@ -print("testi") \ No newline at end of file +from astral import Astral + +CITY_NAME = "Seinäjoki" + +a = Astral() +city = a[CITY_NAME] +print(f"Sunrise in {CITY_NAME}: {city.sunrise()}") +print(f"Sunset in {CITY_NAME}: {city.sunset()}") + diff --git a/requirements.txt b/requirements.txt index e69de29..4df26ac 100644 --- a/requirements.txt +++ b/requirements.txt @@ -0,0 +1 @@ +astral \ No newline at end of file