Author Topic: Remote control app for Voxcommando (Android)  (Read 3530 times)

0 Members and 1 Guest are viewing this topic.

PegLegTV

  • $upporter
  • Sr. Member
  • *****
  • Posts: 498
  • Karma: 43
    • View Profile
Remote control app for Voxcommando (Android)
« on: May 20, 2016, 06:40:24 PM »
This is a remote Control app that works with VC's TCP Plugin,

On first launch you will see a setup window, you will need to give your device a name, enter your IP Address and port number for your Voxcommando TCP plugin, optionally you can set an event prefix (this event prefix will be set every time you launch the app)

the remote is simple, similar to a set top box remote,
it has a search scene and a menu scene, if you long press any of the buttons (except
menu) it will generate a different event then taping the button, you can also trigger 5 additional events by long pressing and stroking the remote background up, down, left and right for a minimum of 33 events

You can select different event prefixes to use on the main scene of the remote, once you relaunch the app it will default back to your main event prefix or no prefix depending on your settings when you set up the remote

App Menu:
 
Device Information – Shows your current device setup (Device name, Event Prefix, IP:Port)

Reset Remote - This will allow you to change the device name and IP:Port
(Same Device setup you see on first launch)

Edit Event Prefix -  In this section you can Add or Remove event prefixes, spelling and capital letters must match when removing an event prefix, do NOT add the (.) after the event prefix

Help - launches your web browser and brings you to this forum post

Exit Menu - Exit the menu


App Permissions

Storage
Modify or delete the contents of your SD Card

The app writes two text files containing remote configuration

Network Communication: Full network access
The app uses HTTP Get to trigger events in Voxcommando

System tools
Disable your screen lock, prevent phone from sleeping

I'm not sure why this one is listed, my app does not prevent your phone from sleeping, or disable screen lock

Development tools: test access to protected storage
the app checks to see if the two text files exist to determine if it should launch the remote or if it should launch device setup

Installation:
in order to install this app you will need to make sure you check "Unknow sources" in your security Settings on your phone (More info here)

Download the app to your android device, and click install

Update: with the new update of Remote Lite you will need to uninstall the old version before installing the new version as I changed the way it stores your remote information so I could add Voxcasting to the remote
« Last Edit: May 19, 2018, 03:03:06 AM by PegLegTV »

PegLegTV

  • $upporter
  • Sr. Member
  • *****
  • Posts: 498
  • Karma: 43
    • View Profile
Re: Remote control app for Voxcommando (Android)
« Reply #1 on: May 20, 2016, 06:41:00 PM »
Update: with the new update of Remote Lite you will need to uninstall the old version before installing the new version as I changed the way it stores your remote information so I could add Voxcasting to the remote

Voxcasting:

only shows up when the url that is being coppied contains:

netflix.com
youtu


it then performs regex to get the video ID from the url  and triggers an event in Voxcommando

Event Payloads
{1} Video ID
{2} the word "Youtube" or Netflix Video Title
{3} Device Name


this voxcasting command will load the youtube video in Kodi or trigger an event for the Control Netflix.com using RoboBrowser group

Voxcasting Command: if you want to use an event prefix with voxcasting you will need to edit the event for this command
Code: [Select]
<?xml version="1.0" encoding="utf-16"?>
<!--VoxCommando 2.2.2.2-->
<command id="278" name="VoxCasting" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
  <if ifBlockDisabled="False" ifNot="False">
    <ifType>(A)==(B)</ifType>
    <ifParams>{2}&amp;&amp;Youtube</ifParams>
    <then>
      <action>
        <cmdType>TTS.Speak</cmdType>
        <params>
          <param>Loading You Tube video, please wait</param>
        </params>
        <cmdRepeat>1</cmdRepeat>
      </action>
      <action>
        <cmdType>XJson.Raw</cmdType>
        <params>
          <param>player.open</param>
          <param>"item": {"file":"plugin://plugin.video.youtube/play/?video_id={1}"}</param>
        </params>
        <cmdRepeat>1</cmdRepeat>
      </action>
    </then>
    <else>
      <action>
        <cmdType>TTS.Speak</cmdType>
        <params>
          <param>Loading your Netflix Selection, {2}, Please Wait</param>
        </params>
        <cmdRepeat>1</cmdRepeat>
      </action>
      <action>
        <cmdType>VC.TriggerEvent</cmdType>
        <params>
          <param>Netflix.Cast</param>
          <param>{1}</param>
        </params>
        <cmdRepeat>1</cmdRepeat>
      </action>
    </else>
  </if>
  <event>VoxCasting</event>
</command>

if you don't want two TTS.Speak when using Voxcasting for Netflix you will need to modify your "*Netflix RoboB Cast" command to look similar to this:
commercial photography locations


If you are using an older device or a tablet and you don't have a "copy" or "Copy to clipboard" option in your share menu, I have found that Copy to Clipboard from the google play store works great


« Last Edit: August 28, 2017, 08:52:48 PM by PegLegTV »

PegLegTV

  • $upporter
  • Sr. Member
  • *****
  • Posts: 498
  • Karma: 43
    • View Profile
Re: Remote control app for Voxcommando (Android)
« Reply #2 on: September 01, 2016, 03:47:30 PM »
New version of Remote Lite

moved "Change Event Prefix" to the main Scene of the remote

Search scene now uses Event Prefixes

Voxcasting scene to  trigger event in VC with the Video ID's for Youtube and Netflix Videos (More information in the Post Above)




jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: Remote control app for Voxcommando (Android)
« Reply #3 on: September 01, 2016, 08:11:00 PM »
Thanks PegLeg.

Impressive features and great job with the demo video too.  :clap

Very interesting that you can intercept the share / copy to clipboard like that.  ::hmm

PegLegTV

  • $upporter
  • Sr. Member
  • *****
  • Posts: 498
  • Karma: 43
    • View Profile
Re: Remote control app for Voxcommando (Android)
« Reply #4 on: September 02, 2016, 12:38:36 AM »
Thanks PegLeg.

Impressive features and great job with the demo video too.  :clap

Very interesting that you can intercept the share / copy to clipboard like that.  ::hmm

Thanks, I just wish that Tasker could receive a wider range of intents, would have made it so I could get the Remote Lite app to show up in the share menu instead of using the clipboard workaround. but this works well so I can't complain to much  :-X