ianadd
(ian)
November 21, 2022, 2:33am
1
I want two scrape sensors to collect from the same area of a web page. Both have the same items to use in select but I can’t work out how to get the 2nd one.
I want the 46.7 and the 66.0 shown in this below.
This gets the first one:
- platform: scrape
resource: https://www.wunderground.com/dashboard/pws/ISYDNEY39
select: ".weather__data.weather__wind-gust .wu-value-to"
How do I select the 2nd value?
You can use the index
parameter to chose the second occurence (default is 0
which picks the first occurrence):
- platform: scrape
resource: https://www.wunderground.com/dashboard/pws/ISYDNEY39
select: ".weather__data.weather__wind-gust .wu-value-to"
index: 1
1 Like
WallyR
(Wally)
November 21, 2022, 6:17pm
3
Any reason not to use the integration?
ianadd
(ian)
November 22, 2022, 2:06am
4
I havent got my own weather station otherwise it looks good.
WallyR
(Wally)
November 22, 2022, 2:25am
5
Ahh, I thought those using their products all had such weather station.