Uno Q TikTok Live Automation

I wanted to share a project I've been working on for the Arduino Uno Q. It's a complete, self-contained bridge that
lets your Uno Q listen to TikTok Live streams in real-time and react to comments (and easily adaptable for gifts,
likes, etc.).

You can check out the full code here: GitHub - r00ft0p/Uno-Q-TikTok-Live-Bridge: Uno Q TikTok Live Bridge For Automation · GitHub

### How it Works (No API Keys Needed!)

The coolest part about this setup is how it handles the TikTok data. It uses a Python backend running FastAPI and
the TikTokLive library to connect to TikTok's Webcast WebSocket API.
Because it mimics an anonymous viewer, it doesn't require any API keys, OAuth, or even a TikTok account. You just
spin up the web dashboard, type in the username of whoever is live, and it starts pulling down the stream's events
and bridging them over to the Arduino via the Arduino_RouterBridge .

### The LED Matrix & Zephyr Challenge

If you've played with the Uno Q (or the Zephyr platform in general), you might have noticed that getting the
Arduino_LED_Matrix text scrolling to work can throw missing beginDraw() and ArduinoGraphics errors depending
on your build environment.

To make this truly "plug-and-play" for the App Lab, I completely bypassed the library manager for the graphics
dependency. I bundled the entire ArduinoGraphics library directly into the sketch folder and defined the
MATRIX_WITH_ARDUINOGRAPHICS macro locally.

This means you can literally download the repo as a single folder, drop it into your workspace, and it compiles and
flashes perfectly the first time.

Would love to hear what you guys think or if anyone ends up using it to trigger physical hardware with TikTok
gifts!

I have downloaded your ZIF file and have successfully imported it in my App Lab project and clicked on Run button. The app is running with ascrolling message "TIKTOK LIVE" in every 15 sec on the LED Matrix Display Unit.

That's all ?

You have so many files under python folder -- what do they do?

@GolamMostafa open the URL of the UNO Q's IP address, port 8000 in your web browser, as instructed by the output the App prints in the Python console:

When you do that, you will see a web page that allows you to configure the username of the TikTok streamer for the UNO Q to react to.

I have typed the following in my browser and nothing happens.The UI should automatically appear like other apps of @philippe86220 and @jens-bongartz.

http://<UNO_Q_IP>:8000

The <UNO_Q_IP> is a placeholder. You must replace it with the actual IP address of the UNO Q.

IP of my UNO Q is: 192.168.0.188

I have tred with:
http://<192.168.0.188>:8000

and

http://192.168.0.188:8000

still nothing happesn -- np UI appears.

Thanks! The UI has appeared when I have clicked on the above green colored address.

@ptillisch
I have entered the user name after @ of the Dashboard. This is the error message.

Exception in tiktok_listener: The requested user 'Gm' is not capable of going LIVE on TikTok, or has never gone live on TikTok, or does not exist.
TikTokLive.client.errors.UserNotFoundError: The requested user 'Gm' is not capable of going LIVE on TikTok, or has never gone live on TikTok, or does not exist.

You must enter the username of a TikTok user who is streaming.

Try entering the username bonusmom70 (this is just a random stream I grabbed off the TikTok LIVE feeds listing).

That usually means user is not online or not found . My github read me file has some important notes . A short YT example--> https://youtube.com/shorts/_86MbAD96Xo?is=SxeB0j12yTyN7NYO

Ooo.........! It works!! I have got te connection. Now, I will explore how to play the game? If you have tips, you may forward to me. Your tips do work always.

@Andrewbuilds

I dont't see any data exchange in your app between MPU and MCU using Bridge.call()/provide() functions. Then, why have you included the Arduino_RouterBridge.h Library in the sketch?

:man_shrugging: good question :thinking: " they say read between the lines , but it's the white space that hides the answers "