SageTV Community  

Go Back   SageTV Community > SageTV Development and Customizations > SageTV Studio
Forum Rules FAQs Community Downloads Today's Posts Search

Notices

SageTV Studio Discussion related to the SageTV Studio application produced by SageTV. Questions, issues, problems, suggestions, etc. relating to the Studio software application should be posted here.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 12-21-2009, 11:18 AM
wayner wayner is offline
SageTVaholic
 
Join Date: Jan 2008
Location: Toronto, ON
Posts: 7,491
Newbie Questions - Home Automation Interface

I want to develop an addin to be able to control my home automation system, made by Control4, through Sage including extenders.

As a proof-of-concept I want to create a screen with some simple buttons that will toggle some of my lights. When the button is pressed it would send a simple http command which is very similar to the commands used by the Sage Web server remote control. An example of this command is http://C4server/cgi/c4control.cgi?co...glelight&id=25 . I am assuming that I could do this through a batch file using curl or netcat or something similar or there may even by better ways.

Can anyone point me in the right direction for an example of something similar.

Is Studio the right tool to be using for this stuff?
__________________
New Server - Sage9 on unRAID 2xHD-PVR, HDHR for OTA
Old Server - Sage7 on Win7Pro-i660CPU with 4.6TB, HD-PVR, HDHR OTA, HVR-1850 OTA
Clients - 2xHD-300, 8xHD-200 Extenders, Client+2xPlaceshifter and a WHS which acts as a backup Sage server
Reply With Quote
  #2  
Old 12-21-2009, 11:25 AM
MitchSchaft MitchSchaft is offline
Sage Expert
 
Join Date: Jan 2008
Posts: 717
I wonder what happened to the guy who was gonna do the same for mControl.
Reply With Quote
  #3  
Old 12-21-2009, 11:28 AM
GKusnick's Avatar
GKusnick GKusnick is offline
SageTVaholic
 
Join Date: Dec 2005
Posts: 5,083
Studio is the right tool for creating screens with buttons on them in SageTV. The best place to start learning how to do that is the Studio manual and tutorials. (See the Studio Information Resources sticky.)

There are no built-in HTTP methods in the SageTV API; however you can call Java runtime APIs, or run external command-line tools using the ExecuteProcess() API method.
__________________
-- Greg
Reply With Quote
  #4  
Old 12-21-2009, 01:24 PM
wayner wayner is offline
SageTVaholic
 
Join Date: Jan 2008
Location: Toronto, ON
Posts: 7,491
Thanks Greg - can you think of anything similar that someone else has written that would get me started. I find that I learn best by looking at examples.
__________________
New Server - Sage9 on unRAID 2xHD-PVR, HDHR for OTA
Old Server - Sage7 on Win7Pro-i660CPU with 4.6TB, HD-PVR, HDHR OTA, HVR-1850 OTA
Clients - 2xHD-300, 8xHD-200 Extenders, Client+2xPlaceshifter and a WHS which acts as a backup Sage server
Reply With Quote
  #5  
Old 12-21-2009, 01:35 PM
GKusnick's Avatar
GKusnick GKusnick is offline
SageTVaholic
 
Join Date: Dec 2005
Posts: 5,083
The tutorials walk you through simple examples of every major Studio feature. That would be the place to start. Beyond that, the Downloads section of the forum is full of working examples of add-ons people have written, some simple, some complex, including some related to home automation. (I don't use any HA add-ons myself, so I have no specific recommendations there.)
__________________
-- Greg
Reply With Quote
  #6  
Old 12-21-2009, 01:43 PM
wayner wayner is offline
SageTVaholic
 
Join Date: Jan 2008
Location: Toronto, ON
Posts: 7,491
I looked in the STVi section of the downloads and I didn't see anything that looked applicable - I just checked out the External Plugins and Utilities and found some stuff there including a CQC app. I was thinking that this would be a STVi.
__________________
New Server - Sage9 on unRAID 2xHD-PVR, HDHR for OTA
Old Server - Sage7 on Win7Pro-i660CPU with 4.6TB, HD-PVR, HDHR OTA, HVR-1850 OTA
Clients - 2xHD-300, 8xHD-200 Extenders, Client+2xPlaceshifter and a WHS which acts as a backup Sage server
Reply With Quote
  #7  
Old 12-21-2009, 03:37 PM
sic0048 sic0048 is offline
Sage Icon
 
Join Date: Nov 2007
Posts: 1,400
The CQC app was designed to expose the Sage functionality to the automation system and allow it to control the SageTV system. What you are desiring is the opposite - you want to expose the automation system controls to SageTV and use the SageTV GUI to control you automation system. I know that type of functionality is not available in the CQC program.

You might drop Fonceur a line and see if he has any suggestions, but I know that was more than he was willing to bite off at the time he wrote the CQC program.
__________________
i7-6700 server with about 10tb of space currently
SageTV v9 (64bit)
Ceton InfiniTV ETH 6 cable card tuner (Spectrum cable)
OpenDCT
HD-300 HD Extenders (hooked to my whole-house A/V system for synched playback on multiple TVs - great during a Superbowl party)
Amazon Firestick 4k and Nvidia Shield using the MiniClient
Using CQC to control it all

Last edited by sic0048; 12-22-2009 at 02:49 PM. Reason: Changed "CQC" to generic "automation system" - I was not trying to be CQC specific and rereading my post it sounded confusing
Reply With Quote
  #8  
Old 12-21-2009, 05:42 PM
CollinR CollinR is offline
Sage Icon
 
Join Date: Dec 2004
Location: Tulsa, OK
Posts: 1,305
The HAL plugin I use and it's fine by me although no CQC interface by any means. I use an ocelot as my primary control but have HAL setup as well just because there is a SageTV plugin for it.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Does anyone have Control4 home automation? wayner General Discussion 12 12-07-2012 04:59 AM
Do you want to use SageTV for Home Automation? heatvent SageTV Customizations 33 07-05-2010 01:37 AM
Home Automation jaminben SageTV United Kingdom 15 12-20-2009 03:54 PM
Home automation SageGk Hardware Support 6 09-17-2009 12:00 PM
Oy! Look at what Home Automation really costs... IVB The SageTV Community 6 05-01-2006 11:46 AM


All times are GMT -6. The time now is 06:04 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2023, vBulletin Solutions Inc.
Copyright 2003-2005 SageTV, LLC. All rights reserved.