Skip to content

Commit

Permalink
Merge pull request #9 from prefeitura-rio/apis_monitoramento
Browse files Browse the repository at this point in the history
Apis monitoramento
  • Loading branch information
patriciacatandi authored Mar 1, 2024
2 parents 91fb11c + 54f14bd commit 281ce10
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions api_dados_rio/v2/clima_pluviometro/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
"id_h3": "88a8a03989fffff",
"bairro": "Guaratiba",
"chuva_15min": 0.0,
"quantidade": 0.0,
"estacoes": null,
"status": "sem chuva",
"color": "#ffffff"
Expand Down Expand Up @@ -108,7 +109,7 @@ def list(self, request):
{
"id_h3": "88a8a03989fffff",
"bairro": "Guaratiba",
"chuva_15min": 0.0,
"quantidade": 0.0,
"estacoes": null,
"status": "sem chuva",
"color": "#ffffff"
Expand All @@ -123,7 +124,7 @@ def list(self, request):
)
class Last120MinRainView(LoggingMixin, ViewSet):
def list(self, request):
data_key = "data_chuva_passado_alertario"
data_key = "data_last_120min_rain"
try:
redis_url = getenv("REDIS_URL")
assert redis_url is not None
Expand Down Expand Up @@ -158,7 +159,7 @@ def list(self, request):
)
class LastUpdate120MinRainView(LoggingMixin, ViewSet):
def list(self, request):
last_update_key = "data_update_chuva_passado_alertario"
last_update_key = "data_last_120min_rain_update"
try:
redis_url = getenv("REDIS_URL")
assert redis_url is not None
Expand Down Expand Up @@ -193,7 +194,7 @@ def list(self, request):
{
"id_h3": "88a8a03989fffff",
"bairro": "Guaratiba",
"chuva_15min": 0.0,
"quantidade": 0.0,
"estacoes": null,
"status": "sem chuva",
"color": "#ffffff"
Expand Down Expand Up @@ -278,7 +279,7 @@ def list(self, request):
{
"id_h3": "88a8a03989fffff",
"bairro": "Guaratiba",
"chuva_15min": 0.0,
"quantidade": 0.0,
"estacoes": null,
"status": "sem chuva",
"color": "#ffffff"
Expand Down Expand Up @@ -363,7 +364,7 @@ def list(self, request):
{
"id_h3": "88a8a03989fffff",
"bairro": "Guaratiba",
"chuva_15min": 0.0,
"quantidade": 0.0,
"estacoes": null,
"status": "sem chuva",
"color": "#ffffff"
Expand Down Expand Up @@ -448,7 +449,7 @@ def list(self, request):
{
"id_h3": "88a8a03989fffff",
"bairro": "Guaratiba",
"chuva_15min": 0.0,
"quantidade": 0.0,
"estacoes": null,
"status": "sem chuva",
"color": "#ffffff"
Expand Down Expand Up @@ -533,7 +534,7 @@ def list(self, request):
{
"id_h3": "88a8a03989fffff",
"bairro": "Guaratiba",
"chuva_15min": 0.0,
"quantidade": 0.0,
"estacoes": null,
"status": "sem chuva",
"color": "#ffffff"
Expand Down Expand Up @@ -618,7 +619,7 @@ def list(self, request):
{
"id_h3": "88a8a03989fffff",
"bairro": "Guaratiba",
"chuva_15min": 0.0,
"quantidade": 0.0,
"estacoes": null,
"status": "sem chuva",
"color": "#ffffff"
Expand Down Expand Up @@ -703,7 +704,7 @@ def list(self, request):
{
"id_h3": "88a8a03989fffff",
"bairro": "Guaratiba",
"chuva_15min": 0.0,
"quantidade": 0.0,
"estacoes": null,
"status": "sem chuva",
"color": "#ffffff"
Expand Down

0 comments on commit 281ce10

Please sign in to comment.