Applications menu (Web; Games; Power): YouTube, Google; Games; Shutdown, Reboot, Return

Autyzmiasty
Posts: 3
Joined: Tue Oct 07, 2025 7:36 am

Re: Applications menu (Web; Games; Power): YouTube, Google; Games; Shutdown, Reboot, Return

Post by Autyzmiasty »

Hi i got a problem with this - if i exit hudiy to rpi bookworm os and in terminal paste 127.0.0.1:44480/google it's working but in hudiy first i had red shoutmarks *my eng is poor*. But finally it start running in hudiy but no internet connection :/. When in bookworm it's working fine shutdown, restart, return, and games works perfectly fine
Autyzmiasty
Posts: 3
Joined: Tue Oct 07, 2025 7:36 am

Re: Applications menu (Web; Games; Power): YouTube, Google; Games; Shutdown, Reboot, Return

Post by Autyzmiasty »

nvm i figure it out
v864
Posts: 6
Joined: Mon Oct 06, 2025 7:06 pm

Re: Applications menu (Web; Games; Power): YouTube, Google; Games; Shutdown, Reboot, Return

Post by v864 »

Could you describe how you solved this problem? My problem is likely an issue with my phone, but I have been unable to get mobile internet connectivity working with either wireless or wired android auto. I can't USB tether as the AA connection break the tether (both for wired and wireless AA). I also can't get AA to work by having both the RPi and my phone connected to the same WiFi network. At this point the only option I can think of is to plug a USB hotspot into the Pi, but I'd rather not have to eat that expense if I don't have to.
Leeuw_12
Posts: 5
Joined: Tue Oct 28, 2025 10:25 pm

Re: Applications menu (Web; Games; Power): YouTube, Google; Games; Shutdown, Reboot, Return

Post by Leeuw_12 »

Goodevening,
Thanks for your hard work.
I seem to have a problem with the py file i dont have the servive file in etc systemd sytem...
What my problem is that the buttons shows but when i press i get a red window with a stop sign in my screen.

I think the py file dont start.
I now have both files in a document folder and i managed to put in the right path for my py file but i dont know what i am doing wrong right now.

Thanks
Michal
Posts: 15
Joined: Thu Aug 07, 2025 10:58 am
Location: Slovakia

Re: Applications menu (Web; Games; Power): YouTube, Google; Games; Shutdown, Reboot, Return

Post by Michal »

To create a .service file, change into direcotry of system: "cd /etc/systemd/system/" and then "sudo nano hudiy_server.service" and then insert the code inside.:
_____________________________________
[Unit]
Description=Hudiy Flask server for system actions
After=network.target

[Service]
ExecStart=/usr/bin/python3 /home/path/to/your/hudiy_server.py
User=pi #choose your user
Restart=always

[Install]
WantedBy=multi-user.target
_______________________________________

! Take in mind here, to change the path in "ExecStart=/usr/bin/python3 /home/path/to/your/hudiy_server.py". to e.g.:
"ExecStart=/usr/bin/python3 /home/pi/Document/hudiy_server.py".
! Also there is a "User=pi", if you are logged in as someone else, then change the user corresponding to yours, e.g.: "User=Leeuw_12".

Then use "sudo systemctl daemon-reload", "sudo systemctl enable hudiy_server.service" &
"sudo systemctl start hudiy_server.service".
You can check out, if the service is working.: "sudo systemctl status hudiy_server.service". And you should see, it is active or in the case of failure -dead.

Addiotionaly, if you are sure, the service is right but the "hudiy_server.py" doesnt start. You can change into directory were the "hudiy_server.py" is stored, e.g.: "cd /home/pi/Document" and then run "python3 hudiy_server.py". You should see in the terminal the errors that could case a problem.


Hope this helps.
Leeuw_12
Posts: 5
Joined: Tue Oct 28, 2025 10:25 pm

Re: Applications menu (Web; Games; Power): YouTube, Google; Games; Shutdown, Reboot, Return

Post by Leeuw_12 »

Good evening,

So i manached to get it started, i am a bit noob in this...
I can now shut down or reboot no problem. But with web still i get a red screen with a stop sign.
I was thinking how do i connect to the internet ?
I have android auto wireless set up. So i think maybe this is my problem. But i cant find where i can connect to internet ?
Sorry bit noob but maybe you can help again.
Michal
Posts: 15
Joined: Thu Aug 07, 2025 10:58 am
Location: Slovakia

Re: Applications menu (Web; Games; Power): YouTube, Google; Games; Shutdown, Reboot, Return

Post by Michal »

Hi Leeuw_12,

I never had in the car till today. I think I will have to see how to forward the internet from phone to the raspberry pi. I always had Hudiy setup on the desk while connected directly to the internet.
If I will find a solution, I will let you know.
Leeuw_12
Posts: 5
Joined: Tue Oct 28, 2025 10:25 pm

Re: Applications menu (Web; Games; Power): YouTube, Google; Games; Shutdown, Reboot, Return

Post by Leeuw_12 »

So i was going trough all the files. When i open hudiy_py file i dont see any command for going to youtube. But maybe this isnt needed?? Because its not local ? But i dont know.
Michal
Posts: 15
Joined: Thu Aug 07, 2025 10:58 am
Location: Slovakia

Re: Applications menu (Web; Games; Power): YouTube, Google; Games; Shutdown, Reboot, Return

Post by Michal »

Youtube and Google are locaten in applications.json and applications_menu.json

In applications.json - he is defined action - open youtube, which opnes the url: https://youtube.com

{
"applications": [
{
"action": "open_youtube",
"url": "https://youtube.com",
"allowBackground": true,
"controlAudioFocus": true,
"audioStreamCategory": "ENTERTAINMENT"

In applications_menu.json - here is defined what you see in the menu in Hudiy. A new created section "Web" and in this section is "Google" and "Youtube". When you click on "Youtube" it calls the action - open youtube. Based on the action defined in applications.json, it knows what it should do.

"categories": [
"Web"
],
"iconFontFamily": "Material Symbols Rounded",
"iconName": "youtube_searched_for",
"action": "open_youtube",
"label": "YouTube"
Leeuw_12
Posts: 5
Joined: Tue Oct 28, 2025 10:25 pm

Re: Applications menu (Web; Games; Power): YouTube, Google; Games; Shutdown, Reboot, Return

Post by Leeuw_12 »

Yeah, i saw all this files.. they are right....
Thats why i think there must be something wrong with internet or so. When i click it just pop up with red stopscreen
Post Reply