Hi all,
when i go out biking my Garmin device share live position through a webpage.
Link referring to this webpage changes at every session and it’s sent via email.
My aim is to have updated link on my HA web-page view and I’d automate this action.
I’ve played around IMAP email integration which is limited to just value parsing.
I’m wondering which is the easiest way to extract url from email and then perform requested operation.
below an extract of template email source code. highlighted link I want to extract
.............
<tr> <!-- Spacing -->
<td height=3D"24"></td>
</tr>
<tr> <!-- Button -->
<td>
<table cellpadding=3D"0" cellspacing=3D"0" border=
=3D"0" class=3D"full-button">
<tr>
<td width=3D"100%" align=3D"left" style=3D"-web=
kit-border-radius:10px; -moz-border-radius:10px; border-radius:10px; backgr=
ound-color:#11a9ed; box-shadow:0 3px 0 0 #0c7cad; text-align:center; paddin=
g-top:8px; padding-right:20px; padding-bottom:8px; padding-left:20px;" clas=
s=3D"full-button">
<a href=3D"https://livetrack.garmin.com/sessi=
on/51190c98-d9ea-4eb1-9ef8-bacfa25452e9/token/241E46459ED6527EE9CF5F6B9142C=
588" title=3D"Follow Me" style=3D"color:#fafafa; font-size:14px; font-famil=
y:'Open Sans', 'Lucida Grande', 'Lucida Sans Unicode', Helvetica, Arial, sa=
ns-serif; text-decoration:none; line-height:150%; -webkit-border-radius:10p=
x; -moz-border-radius:10px; border-radius:10px;">
Guarda la mia attivit=C3=A0 in tempo reale
</a>
</td>
</tr>
<tr> <!-- Spacing -->
<td height=3D"4"></td>
</tr>
</table>
</td>
</tr>
..............```
I can use a website editable via FTP, maybe useful in order to not change frontend web-page view each time.
can you help me sorting out this?
thank you in advance