Remove BoM Weather example (#18249)

This commit is contained in:
tomlut 2021-06-22 16:21:40 +10:00 committed by GitHub
parent 2b4061a9c6
commit 35a7ef2da9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -179,25 +179,3 @@ sensor:
```
{% endraw %}
### BOM Weather
The Australian Bureau of Meteorology website returns an error if the User Agent header is not sent.
{% raw %}
```yaml
# Example configuration.yaml entry
sensor:
- platform: scrape
resource: http://www.bom.gov.au/vic/forecasts/melbourne.shtml
name: Melbourne Forecast Summary
select: ".main .forecast p"
value_template: "{{ value | truncate(255) }}"
# Request every hour
scan_interval: 3600
headers:
User-Agent: Mozilla/5.0
```
{% endraw %}