AndroidHDMI for Channels (ah4c): A virtual channel tuner using HDMI Encoder(s) + streaming stick(s)

This is what I'm getting.

@dabox
Could you post your portainer stack and environment variables files.
Really what to see what Volumes section looks like in Stack and what you specifically have "HOST_DIR=" set to in your environment variables.

Here you go. Let me know if this is not the correct info.


I am at a point now where I can select a channel in Channels DVR and it will not tune to a channel, just connects to the Chromecast home screen.

STREAMER_APP needs to be set to scripts/chromecast/youtubetv. Not sure if there are functioning scripts for that combo, but that's what you should use for a value.

Thanks, I updated that but still did not tune to a channel. Keep seeing this failure.

Are you using your own scripts? Looking at the repo, there are some in scripts/onn/youtubetv you could try. Nothing specifically for Chromecast yet though.

EDIT: Most people using YouTubeTV with deeplinks are running ADBTuner. Do you have a specific requirement that suits ah4c better?

Yes, I currently use ADBTuner. I thought I'd give ah4c a try since ADBTuner takes me about 6-7 seconds to change a channel.

FYI...I am using a linux docker/portainer setup so don't know windows as well for docker... I see in your volumes you are using both / and \ in the picture above.

C:\MSI/ah4c/...

I know it shouldn't matter, but who knows.

Here are my entries for the stack volumes and my host variable...

 volumes:
      - ${HOST_DIR}/ah4c/scripts:/opt/scripts # pre/stop/bmitune.sh scripts will be stored in this bound host directory under streamer/app
      - ${HOST_DIR}/ah4c/m3u:/opt/m3u # m3u files will be stored here and hosted at http://<hostname or ip>:7654/m3u for use in Channels DVR - Custom Channels settings
      - ${HOST_DIR}/ah4c/adb:/root/.android # Persistent data directory for adb keys
HOST_DIR=/srv/5ab84941-c842-42b9-9bce-80979edd927d/Pool/_AppData/androidtuner

Also if you manually navigate to the script directory are the prebmitune.sh, bmitune.sh and stopbmitune.sh files REALLY there?
In your case...

C:\MSI\ah4c\scripts\chromecast\youtubetv\

In ADBTuner are you running the youtube channels in compatability mode?
This shuts the app down completely everytime you leave a channel...so HAS to reload app every time.
If youtubetv doesn't require this you could turn off compatability mode that could gain some time after the first channel is tuned.

Thanks, the files are there. I tried linux but kept getting errors installing it.

So the actual files ARE in the scripts/chromecast/youtubetv/ directory???
Can you navigate all the way to that directory and post another pic?
It still looks like it says they are not there :man_shrugging:
Or maybe your portainer stack doesn't have permissions to run them?

image


Thanks
So from earlier it looks like the prebmitune.sh runs and completes without errors but still can't find the bmitune.sh file even though it is there.
How about rename bmitune.sh to something different then make a copy of the prebmitune.sh file and name it bmitune.sh.
Then try and tune a channel and repost the tuning part of the log. This will not "tune" the channel but it may tell us if the problem is with the current bmitune.sh file.

Done. It still does not tune.

Where are these scripts from?

From the forum and the repo.
It will now tune to a channel but for most of them it keeps asking to verify location using my mobile phone. MSNBC and NFL network tunes in and play but the other channels says location verification required. Once verified it a rinse and repeat never showing what's playing


Do you get this require location verification if you are tuning all the channels directly on the chromecast with the cromecast remote?

Edit 1:
Looking on internet...do your chromecasts have location services enabled, are you using a vpn, are you logging in to youtubetv on multiple devices with different internet providers. If verifying location with phone is it on the same network or using mobile network?

TY @ChannelSam and @bnhf
It is now working. For verification required I assume the m3u is west coast. I changed value of the m3u at the end YaqNgmedD7U (http://{{ .IPADDRESS }}/play/tuner/YaqNgmedD7U) to the value that is in my ADBTuner m3u. Thanks guys. I will now add all of the YTTV channels to the m3u.

1 Like