The reason I suggest the call for an external script is because I currently use the Spectrum app on a Firestick streaming to an encoder and have to create separate config files for each Spectrum channel. I was able to create a config that allows me to enter the channel number (mapped through ADB keypad), so it would lend itself nicely to being scripted with one of the ADBTuner channel fields. One of my config files is shown (just using Hallmark Channel as an example) ... so you can see how having an external script would make this very easy by adapting the 3 keyevent fields to the channel number. Also providing the script for others with a similar setup.
{
"name": "Spectrum - Hallmark Channel",
"author": "User",
"version": "1.0",
"description": "Spectrum - Hallmark Channel",
"uuid": "782a44d8-7e21-4f1e-9276-809c9454152e",
"global_options": {
"wait_for_video_playback_detection": false,
"use_fixed_delay": true,
"fixed_delay_seconds": 10,
"wait_after_post_playback_start_commands_seconds": 0
},
"pre_tune_commands": [
"input keyevent KEYCODE_HOME",
"sleep 3",
"am force-stop com.spectrum.stva.firetv",
"sleep 1",
"am start -n com.spectrum.stva.firetv/com.spectrum.stva.androidtv.ui.HostedMainActivity",
"sleep 12"
],
"tune_commands": [
"input keyevent KEYCODE_BACK",
"sleep 1",
"input keyevent KEYCODE_DPAD_RIGHT",
"sleep 1",
"input keyevent KEYCODE_DPAD_RIGHT",
"sleep 1",
"input keyevent KEYCODE_DPAD_CENTER",
"sleep 1",
"input keyevent 8",
"sleep 1",
"input keyevent 9",
"sleep 1",
"input keyevent 10",
"sleep 1",
"input keyevent KEYCODE_DPAD_CENTER",
"sleep 1",
"input keyevent KEYCODE_DPAD_CENTER",
"sleep 1"
],
"tune_match_text_commands": [],
"post_playback_start_commands": [],
"post_tune_commands": [
"input keyevent KEYCODE_HOME",
"sleep 1",
"am force-stop com.spectrum.stva.firetv",
"sleep 1",
"input keyevent KEYCODE_SLEEP"
],
"timed_keep_active_commands": [],
"source_file": "/app/.config/user_configurations/782a44d8-7e21-4f1e-9276-809c9454152e.json"
}
, it seems like that would be an appropriate moment to deprecate ah4c. Probably the only reason to continue maintaining it at that point would be to have an open source alternative to ADBTuner.





