# How can I use Homey Pro Flow to play a news broadcast on a Google Nest Hub (2nd Gen)?

**URL:** <https://community.homey.app/t/how-can-i-use-homey-pro-flow-to-play-a-news-broadcast-on-a-google-nest-hub-2nd-gen/83304>\
**Category:** Questions & Help\
**Tags:** homey-pro\
**Created:** [June 27, 2023, 6:22am UTC](https://community.homey.app/t/how-can-i-use-homey-pro-flow-to-play-a-news-broadcast-on-a-google-nest-hub-2nd-gen/83304 "2023-06-27T06:22:16Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Dominik](https://avatars.discourse-cdn.com/v4/letter/d/ee7513/32.png) [@Dominik](https://community.homey.app/u/Dominik)\
**Post date:** [June 27, 2023, 10:48am UTC](https://community.homey.app/t/how-can-i-use-homey-pro-flow-to-play-a-news-broadcast-on-a-google-nest-hub-2nd-gen/83304/3 "2023-06-27T10:48:44Z")

</div>

I’ve created a homey script (my first one - yeah 🙂 ):

```auto
// Create the request
const res = await fetch('https://www.tagesschau.de/multimedia/sendung/tagesschau_20_uhr/podcast-ts2000-video-100~podcast.xml');
if (!res.ok)
{
  throw new Error(res.statusText);
}

// Get the body text
const body = await res.text();

// Use a regex to find the MP4 URL
const regex = /<enclosure url="(https:\/\/.+?\.mp4)"/;
const match = body.match(regex);

if (match && match[1])
{
  await tag('tagesschau_url', `${match[1]}`);
}
else
{
  throw new Error('tagesschau_url mp4 no match');
}

```

Unfortunately, Homey Scripts NodeJS base doesn’t seem to have an XML parser, so I had to make it work with regex. But it works.

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/a/1/a1d363436a6a412aee1e2cfcc520890ecaad35be.png)

---

_[View the full topic](https://community.homey.app/t/how-can-i-use-homey-pro-flow-to-play-a-news-broadcast-on-a-google-nest-hub-2nd-gen/83304)._
