LOGIN  |  REGISTER
Smart Living Made Brilliant!
CASTLEOS FORUM

HomeScripting

A forum for information about scripting with CastleOS. Get samples, suggestions, and other help here

DirecTV and Global Cache TV Control Messages in this topic - RSS

Tommy Long
Tommy Long
Posts: 218


3/3/2015
Tommy Long
Tommy Long
Posts: 218
I'll start out saying Nick Bento got me started on this from a similar posting he made on Roku and Global Cache Control.
Attached is a similar script that will turn a DirecTV set top box on, followed by turning the TV on using a Global Cache GC100-06.
For those interested, I developed it on a Microsoft Visual Studio Express 2013 for Desktops to test it out and then moved over for Kinect to use.


Attachments:
TurnTVon.cs
0 link
Chris Cicchitelli
Chris Cicchitelli
Administrator
Posts: 3390


3/3/2015
Chris Cicchitelli
Chris Cicchitelli
Administrator
Posts: 3390
Thanks for the script Tommy!!!

Just one question, I assume your intent was to have one command to both turn on the receiver AND the TV? I ask because DirecTV functionality is built in. Just wanted that to be clear for anyone reading this in the future so there isn't confusion...
0 link
Tommy Long
Tommy Long
Posts: 218


3/3/2015
Tommy Long
Tommy Long
Posts: 218
Hi Chris, Yes indeed one voice command to run the script which turns on both the TV and DirecTV. It would also be quite easy to add to the script a way to have the GC100 also turn an AV system on and have it tune to the correct input.
0 link
mario rodriguez
mario rodriguez
Posts: 21


3/24/2015
mario rodriguez
mario rodriguez
Posts: 21
Hello Tommy, I am using your script only to turn on my VCR with my GC100-06.. and is not working this is what I have please advise; using System;
using System.Text;
using System.Threading.Tasks;
using System.IO;
using System.Net;
using System.Net.Sockets;
using CastleOSKinectService;

public class SystemStatusInterface
{
public void Main(string[] args)
{
//
// Setup the process with the ProcessStartInfo class.
//
ScriptingAPI.Speak("turning on VCR.");
string TargetAddress = "192.168.10.5"; //Where A.B.C.D is the IP address of the GC-100
string IrStringToSend = "sendir,2:1,1,40000,3,1,96,24,24,24,48,24,48,24,48,24,24,24,48,24,24,24,48,24,48,24,24,24,48,24,24,986\r";
SocketTest.StartClient(TargetAddress,IrStringToSend);

}
}
0 link
Tommy Long
Tommy Long
Posts: 218


3/28/2015
Tommy Long
Tommy Long
Posts: 218
Hi Mario, My only suggestion at the moment is that your script appears to be missing the Class SocketTest and method StartClient.
0 link