-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
374 additions
and
397 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
// Use IntelliSense to learn about possible attributes. | ||
// Hover to view descriptions of existing attributes. | ||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"name": "Python Debugger: Current File", | ||
"type": "debugpy", | ||
"request": "launch", | ||
"program": "${file}", | ||
"console": "integratedTerminal" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
dateutil | ||
requests |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,7 @@ | |
long_description = fh.read() | ||
|
||
requires = [ | ||
"dateutil", | ||
"requests", | ||
] | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,19 @@ | ||
"""Sunweg API constants.""" | ||
SUNWEG_URL = "https://api.sun.weg.net/" | ||
|
||
SUNWEG_URL = "https://api.sun.weg.net/v2/" | ||
"""SunWEG API URL""" | ||
SUNWEG_LOGIN_PATH = "login/autenticacao" | ||
"""SunWEG API login path""" | ||
SUNWEG_PLANT_LIST_PATH = ( | ||
"usinas/getpaineloperacao?procurar=" | ||
+ "&integrador=&franqueado=&portal=&alarme=&" | ||
+ "planos=%5B%220%22,%221%22,%222%22,%223%22,%224%22%5D&" | ||
+ "status=%5B%221%22,%222%22,%223%22,%224%22,%225%22%5D" | ||
"getpaineloperacao?procurar=&integrador=" | ||
+ "&franqueado=&manutencao=&portal=&alarme=&" | ||
+ "planos=%5B0,1,2,3,4%5D&status=%5B1,2,3,4,5%5D&" | ||
+ "limite=100&situacao=&paginaAtual=1" | ||
) | ||
"""SunWEG API list plants path""" | ||
SUNWEG_PLANT_DETAIL_PATH = "usinas/view?idusina=" | ||
SUNWEG_PLANT_DETAIL_PATH = "viewresumov2?agrupado=false&id=" | ||
"""SunWEG API plant details path""" | ||
SUNWEG_INVERTER_DETAIL_PATH = "inversores/view?id=" | ||
"""SunWEG API inverter details path""" | ||
SUNWEG_MONTH_STATS_PATH = "usinas/getgraficomes?" | ||
SUNWEG_MONTH_STATS_PATH = "usinas/graficomes?" | ||
"""SunWEG API month history path""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
{"success":true,"usinas":[{"id":16925}]} | ||
{"success":true,"conectadas":[{"id":16925}]} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
{"success":true,"usinas":[{"id":16925},{"id":16926}]} | ||
{"success":true,"conectadas":[{"id":16925},{"id":16926}]} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
{"success":true,"usinas":[]} | ||
{"success":true,"conectadas":[]} |
Oops, something went wrong.