# Analog Clock demo help

**URL:** <https://community.info-beamer.com/t/analog-clock-demo-help/869>\
**Category:** How-to and Tutorials\
**Created:** [April 29, 2020, 10:59am UTC](https://community.info-beamer.com/t/analog-clock-demo-help/869 "2020-04-29T10:59:46Z")\
**Posts on this page:** 1\
**Showing post:** 23

<div class="post-metadata">

**Author:** ![infobeamer-fw](https://community.info-beamer.com/user_avatar/community.info-beamer.com/infobeamer-fw/32/3_2.png) [@infobeamer-fw](https://community.info-beamer.com/u/infobeamer-fw)\
**Post date:** [May 1, 2020, 12:23pm UTC](https://community.info-beamer.com/t/analog-clock-demo-help/869/23 "2020-05-01T12:23:59Z")

</div>

> [@Wassini](#):
>
> So let me get this right. If I want to use the “util.data\_mapper” - I also need to implement something in the “service” file - and not in the “clock.py” file?

Not quite. Let me explain: info-beamer (the process on each Raspberry Pi) always opens up a local UDP/TCP listen socket on port 4444. This allows other local processes to send data to the running info-beamer process. This can be useful as info-beamer (again, the process) itself cannot, for example, contact any outside service on its own. So it needs to be fed additional non-static data in some way. Using UDP/TCP for that is one way to do that.

Now there are various ways you can do that: If you open the info-beamer port to other machines on the network ([here](https://info-beamer.com/doc/device-configuration#exposeinfobeamerports) for how to do that, but doing so it usually not recommended as there’s no authentication in any way), another program on another machine can send data. That’s what my `netcat` call in my previous post did. Another way is to use the [device command API call](https://info-beamer.com/doc/api#devicecommand), which essentially allows you to send such UDP packets from anywhere using the API.

The final method is to have a local [package service](https://info-beamer.com/doc/package-services) running on each Pi. This isn’t something magic: It’s just that any file named `service` within a package will be marked executable and will be executed on the Pi when installing that package. Such a package service can be written Python, like [this one in the repository you linked](https://github.com/info-beamer/package-screen-info/blob/master/service). Such a service can also send UDP packets locally to the info-beamer process by sending data to `127.0.0.1:4444`.

---

_[View the full topic](https://community.info-beamer.com/t/analog-clock-demo-help/869)._
