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)