mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-12 03:46:49 +00:00
Remove BoM Weather example (#18249)
This commit is contained in:
parent
2b4061a9c6
commit
35a7ef2da9
@ -179,25 +179,3 @@ sensor:
|
|||||||
```
|
```
|
||||||
|
|
||||||
{% endraw %}
|
{% 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 %}
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user