Newbie question - UART support for RaspberryPi

Hi all,
Maybe my question would seem ridiculous for some of you but I am complete newbie to WebThings. I need to send some data from another embedded system to WebThings gateway using hardwired serial port that RPi is equipped with (/dev/serial0/), which is existing and enabled. Is there any way to detect this as a WebThing? Or maybe I should do a workaround - have a Python script that is started as a service and whenever data is detected - it is then converted to “WebThing” input data…
I’d be very grateful for any help.

Greetings,

Piotr