Toggle Navigation
Hatchery
Eggs
Roparun Donaties Team 252
__init__.py
Users
Badges
Login
Register
MCH2022 badge?
go to mch2022.badge.team
__init__.py
raw
Content
import system, time, ujson as json, urequests as requests import uinterface, rgb, wifi if not uinterface.connect_wifi(): system.reboot() uinterface.loading_text("Fetching data...") url = "https://api.roparun.nl/api/donations/252/" response = requests.get(url) resultjson = json.loads(response.text) wifi.disconnect() rgb.clear() items = resultjson["items"] titles = [item["amount"] for item in items] for i in range(0, 20): for title in titles: uinterface.skippabletext(title) rgb.clear() time.sleep(1) system.start("roparundonaties")