Skip to content

Commit

Permalink
Merge pull request #5 from Andrews-abnormalYT/patch-1
Browse files Browse the repository at this point in the history
Removed non-functional functions.
  • Loading branch information
tonyallan authored Nov 29, 2023
2 parents cc7763e + 2619e45 commit cc9ccdc
Showing 1 changed file with 0 additions and 33 deletions.
33 changes: 0 additions & 33 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,6 @@ print(f"\nObservations (temp): {observations['temp']:2}")
forecast_rain = w.forecast_rain()
print(f"Forecast Rain: amount:{forecast_rain['amount']}, chance:{forecast_rain['chance']}")

print('\nHourly:')
for f in w.forecasts_hourly():
print(f"{f['time']} temp:{f['temp']:2}, {f['icon_descriptor']}")
```


Expand All @@ -75,36 +72,6 @@ Modules:
Where possible WeatherApi, should be used as it uses an API rather than scraping the web page.


### Sample for Parkville in Melbourne Vic Australia

```python3
from weather_au import place, observations, uv_index

# Parse http://www.bom.gov.au/places/vic/parkville
place_data = place.Place('vic', 'parkville')
print(place_data.acknowedgment)

station_id = place_data.station_id()
print('Station ID',station_id)

air_temperature = place_data.air_temperature()
print('Air Temperature', air_temperature)

forecast = place_data.forecast()
print('Forecast', forecast)


uv_data = uv_index.UvIndex('Vic')
print('\n' + uv_data.acknowedgment)

location_name = 'Melbourne'
uv_message = uv_data.uv_message(uv_data.get_aac(location_name))

print('UV Message for', location_name, uv_message)
```



## Disclaimer

This project is not related to or endorsed by the Australian Bureau of Meteorology (BOM).
Expand Down

0 comments on commit cc9ccdc

Please sign in to comment.