See instructions here, just use mdns-reflector instead of Avahi, or use Avahi.
But trying to get Sure Universal Remote crap to find the Apple TV.
I know mDNS is working, cause Pyatv in Termux can find it, using the wizard. And looking at the status of mdns-reflector after running the wizard, it shows the Apple TV’s IP. But I was having issues last time I tried Pyatv, I only want a keyboard. No idea if Sure Universal Remote has a keyboard, so far can’t even find the Apple TV. I was connecting probably directly to the IP before I started messing with mDNS.
So maybe mDNS only works in Termux.
And I can’t find an app that works to show mDNS on Android. If you try to use avahi-browse in Termux, well you probably need to disable the built in mDNS crap, and then run avahi-daemon. Too much work.
I was able to cancel the subscription for the inFuse Pro app for the Apple TV from a web browser. So perhaps I’ll just stop using the Apple TV. Just use AtariVCS instead. I can get an app that has a remote keyboard for it most likely, and that probably lets you connect using the IP instead of mDNS.
You have to do something to get mDNS working over isolated VLANs.
Another good reason to not use the Apple TV.
Hmm, maybe my Apple TV isn’t supported, or wants an IPv6 address. I set mdns-reflector to IPv4 only. Can’t connect the Apple TV to a VPN directly, and I’m too lazy to assign some static IPv6 address to the Apple TV. I already poked a hole for the Apple TV. So it should use it. I have no keyboard, and I’m not using a regular remote to type on the Apple TV. The reason I’m trying to get this app to detect it, so I can see if it even has a keyboard.
Guess if I had WireGuard working with IPv6, I could maybe enable IPv6 in mdns-reflector. But I’m lazy.
Also, Android sucks ass. I can’t access my router’s IP from a work profile, but can from my main profile. So I had to put the Sure crap in the main profile, and it still can’t find shit. WireGuard is in kernel mode. But perhaps NetGuard in the work profile, is messing that up. In Linux, you can use multiple VPNs no issue.
But the app might be getting it to forward the Apple TV to it, based on systemctl status and the time.
Too bad it shows nothing.
Nope, might not getting anywhere, since mdns-reflector says nothing. Might need to force it to a specific interface. No idea how to do that in Android. The app apparently has zero settings.
and if the VPN Firewall is breaking mDNS, why does Termux work without using sudo?
Maybe I need to add a route. But that makes no sense, cause Termux works. Maybe delete all multicast routes, that aren’t on the WireGuard VPN. But Termux works.
Well, I guess Android, and some of the apps for it, just suck.
Last time I looked for an Apple TV remote app, that is open source, I found nothing. The AI thinks the Sure crap is open source as well, I doubt it. And if you search for mdns, or zeroconf, you won’t even find service browser using F-Droid, and the repo that has it. Also, that app doesn’t work anymore apparently.
There’s an app that only shows certain services, so finds nothing.
Some Bluetooth keyboard app I tried using, the Apple TV couldn’t even find it. There could be a paid app, but that’ll cost you a lot more then money.
Can’t remember if I tried the Bluetooth remote app for Android TV. No idea why it doesn’t work with Apple TV. I need a generic Bluetooth keyboard app, I only care about keyboard. I use the regular remote for everything else.
I only pay for apps that aren’t on Google Play. I don’t support bad behavior.
The AI says Remote Mouse has a keyboard function, and you can download the apk from their site. But if you have to pay for the keyboard, how do you pay?
Also might have tried it already. Also, lies, you need to download software on your computer. Good job AI.
No FAQ if you can use without app, mentions Bluetooth, but not if you need the app.
One way to find out, download it, install it, then try connecting to Laptop, after putting laptop in discovery mode. Now if it shows too many Bluetooth devices, that might take a while.
Nice LocalSend can find my phone now, without manually entering the IP. Doesn’t really matter, added the VPN IP to the favorites anyways. VPN was off on laptop, guess I forgot to turn it back on.
Waste of time, the app says upcoming for Bluetooth. You can’t enable it. And might even require Pro. And when starting the app, says you need their software. So it’s useless.
Not messing with the Sure crap anymore, as LocalSend can detect the Linux app over WireGuard, using mDNS most likely. So the Sure app is junk. “Make sure you’re on the same network, we refuse to support that at all, in fact we make it so using mdns-reflector won’t work”.
There’s this, but no Apple TV app, and to install app on Apple TV, you have to enter your password. Not typing a long ass random ass password in with a regular remote.
Apple probably doesn’t allow such apps on Apple TV anyways.
Maybe there’s something for Linux that gives you a Bluetooth keyboard for a different device. And maybe it works in Termux.
And might have found something, the site that has the github URL, makes it a real pain in the ass to copy it, get a shitty popup, in it’s stupid fancy code viewer thing.
There’s this, may or may not work, you got to compile it.
Maybe I should search for “Bluetooth server”.
Well, BlueZ can do it, but that might not work in Termux, maybe if you get a full Linux distro in Termux, but that is a shitty solution.
I know I somehow got my Linux desktop to act like a speaker, and connect my Bluetooth thing to it, and send a record player to it.
But that record player isn’t great, and I don’t want to buy a new one. Or records, or anything.
Nope, no BlueZ in Termux.
Well, Termux probably won’t work at all. Looks like no Bluetooth support in it.
You know what might work? Make a Pyatv web app using Python of course, since I sort of know how to use Tornado, it might be possible. You could look for one, but good luck.
Most of the Google Play apps are using Pyatv most likely anyways. That are Apple TV Remotes. You could make your own app using Pyatv as well.
Both methods are a lot of work though. Think I’d rather just use the AtariVCS, that I can install any Linux app to.
Hmm, but I might just need a simple HTML page, with an input and maybe a button, or just a post form, and click enter. Do all the configuration with Pyatv on the computer.
Or run the Python web app on phone directly. Since that might work in Termux. Don’t even need it to be a web app possibly. Maybe just a terminal app.
Does Termux support Python GUIs without X11 or Wayland? No idea if X11 or Wayland works in Termux. Maybe there’s a library for Python for making Android GUI apps, that work in Termux. Cause I don’t want to fuck around with making an apk app or any of that crap. Too much work.
And you might need a full thing to do it. Like Kivy. Too much work. Well, too much disk space.
I already learn Python the very hard way, no need for their link. I haven’t learned it yet. I know the syntax.
Going to install it on laptop, since you install it using virtualenv, it might not need too much disk space.
And the code will be released, to say fuck you to the app developers charging for apps that use Pyatv. Hmm, or maybe not, might result in more paid Google Play BS.
I think I had 6 GB of space free, before installing the venv crap, and now it’s installing the Kivy crap. Hopefully it doesn’t need 6GB+.
It has no IDE? Lame.
I want a GUI to make the GUI, cause doing that manually is a real pain in the ass.
Maybe this will work.
Well, if the site works in LibreWolf.
And it costs money. No thanks. Rather make my own IDE then pay them for their’s. Now to lookup Python IDEs, and see if any support Kivy, even with a plugin would be fine.
Need a Python IDE anyways, Kate is a dick, and I’m too lazy to change the settings, so it stops messing with my quotes.
And maybe I need to search for open source Python IDE. Don’t want one bad enough to pay $100+.
Nice site, AI says there’s a community version of Pycharm. Their site, says for individuals $100+.
Also, why pay for an app made in Python? You can do that yourself easily, and for free. Also, depending on the app, and what it does, that might be a slow app. And depending on who made the app. You might get a really shitty app in other words. My app won’t be pretty, maybe even shitty, but it’ll work for me, and be free.
And Kivy might work with Pycharm, good, cause it’s almost done downloading.
Only instructions on the Kivy wiki for Windows and macOS. LOL.
Pycharm doesn’t use venv? That means I might have to reinstall it, and using system Python, will be a pain in the ass.
Oh yeah, I can put stuff on my external drive. Even Python crap, anything really.
And in Linux Pycharm can use venv, does by default.
Might have no GUI for making GUIs, still better then using Kate.
You just go into the folder, source the .venv, and install with the Python command on the Kivvy site. After making a project. At least in Linux.
It’s a pain in the ass, cause you got to read a lot.
There’s a web app for making Kivy crap. Don’t want a web app though.
This might work.
Why the fuck did I put that in the PycharmProjects folder?
And the requirements apparently doesn’t install distutils.
And it says to use setuptools instead.
Well, installing setuptools with pip did the trick. Didn’t even need to modify anything.
I might need to modify it though, hard to see on 4k monitor.
Why did they have to make this in Python and Kivy? Might need to find something else.
Also, I guess you could make the entire app in it. But Pycharm is easier to see. So copy everything to it.
It found Glade, but that’s on Gnome’s site, and probably not for Kivy. What’s the KDE program for that? And does it do Kivy? Probably not.
Does Kivy use QT?
Why not use Flutter? Well it is made by a bad person. Or a person that does bad things.
Right, I can make a mDNS exploder, I mean browser with Python. Might do that first.
And with Pycharm, you might have to type everything to make the GUI. See this.
Their example code still works somehow, bad thing about Python. You might need to fix code you find, if you can’t, well good luck with coding anything.
Now what is it looking for with the color? Probably not HTML. Maybe hex.
I’m too lazy to keep reading. That’s why it takes me even longer. I do it the very hard way.
Hmm, no idea what the color is in, there’s four pairs of numbers.
Might be RGB. It can have four numbers. Or RGBA. That site doesn’t do .xx. That isn’t white.
Well, 0 0 0 0, is black, does that mean white is f f f f?
Is there an html color number for ffff? Cause if you put #ffff in CSS it’s white. And if you put #0000, I’m pretty sure it’s black. I could just lookup Kivy Window.clearcolor.
Window.clearcolor = (255, 255, 255, 255)
Did the trick, if you keep first 0, 0, it’s blue. Now what that number is supposed to be for a different color, I can’t tell you. Maybe RGBA.
It’s RGBA, thought was hex, but then saw that it’s actually RGBA, change the last 255 to 1.
IDEs are great for lazy people, make a variable called BLACK, and it does mostly what I want, might need one more zero, or maybe you don’t need that.
#!/usr/bin/env python3
import kivy
from kivy.app import App
from kivy.core.window import Window
from kivy.uix.boxlayout import BoxLayout
from kivy.uix.label import Label
from kivy.uix.textinput import TextInput
BLACK = (0, 0, 0)
Window.clearcolor = (255, 255, 255, 1)
class ApplicationFormApp(App):
def build(self):
layout = BoxLayout(orientation="vertical", padding=[20, 30])
title_label = Label(
text="pytv-keyboard", color=BLACK, font_size=24
)
keyINPUT = TextInput(
hint_text="Keyboard", padding=[5, 5], multiline=False
)
layout.add_widget(title_label)
layout.add_widget(keyINPUT)
return layout
ApplicationFormApp().run()
See, you don’t need to read that much. Except I need another TextInput to put the TextOutput from pyatv in. Then I need to lookup a lot of stuff. Or not, I forgot I’m using an IDE.
Who said I was going to have keyboard keys? It should use whatever your keyboard is in Android. The Apple TV remote on iOS, just gives you a text field, smaller then that.
The code on Kivy’s site doesn’t work, the value isn’t the value.
If you use a function with instance & value, it only sends one argument. But if you just do instance.text, you can get it. Maybe they should tell you to send the text to it, if you want the value argument. Bad example code.