From e038565c8ef2e9d263e3fdba309770ae9cffabe5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lucas=20Mind=C3=AAllo=20de=20Andrade?= Date: Wed, 29 May 2024 16:36:44 -0300 Subject: [PATCH] chore: requirements --- teste.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 teste.py diff --git a/teste.py b/teste.py new file mode 100644 index 0000000..9ae0bad --- /dev/null +++ b/teste.py @@ -0,0 +1,18 @@ +from sunweg.api import APIHelper + +api = APIHelper("lucas@mindello.com.br", "123456789Ab") +plants = api.listPlants() +for plant in plants: + print(plant) + for inverter in plant.inverters: + for prod in api.month_stats_production(2024, 5, plant, inverter): + print(prod) + if not inverter.is_complete: + api.complete_inverter(inverter=inverter) + print(inverter) + for phase in inverter.phases: + print(phase) + for mppt in inverter.mppts: + print(mppt) + for string in mppt.strings: + print(string)