Skip to content

Commit

Permalink
Merge pull request #7 from jchuerva/patch-1
Browse files Browse the repository at this point in the history
add estadoCielo in response
  • Loading branch information
pablo-moreno authored Oct 13, 2019
2 parents 86f0095 + a2c4ba1 commit 9cae624
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions aemet/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ def from_json(data):
sens_termica=dia.get('sensTermica', ()),
humedad_relativa=dia.get('humedadRelativa', ()),
temperatura=dia.get('temperatura', ()),
estado_cielo=dia.get('estadoCielo', ()),
cota_nieve_prov=dia.get('cotaNieveProv', ()),
viento=dia.get('viento', ()),
prob_precipitacion=dia.get('probPrecipitacion', ()),
Expand All @@ -92,6 +93,7 @@ def ver(self):
print('Sensación térmica: {}'.format(self.sensTermica))
print('Humedad relativa: {}'.format(self.humedadRelativa))
print('Temperatura: {}'.format(self.temperatura))
print('Estado del cielo: {}'.format(self.estadoCielo))
print('Cota de nieve: {}'.format(self.cotaNieveProv))
print('Viento: {}'.format(self.viento))
print('Probabilidad de precipitación: {}'.format(self.probPrecipitacion))
Expand Down

0 comments on commit 9cae624

Please sign in to comment.