Jump to content
AT&T to end email-to-text ×

MWoods329

Members
  • Posts

    237
  • Joined

  • Last visited

Everything posted by MWoods329

  1. Here is the script I ran to register my ISY to the TV. Its literally a copy/paste from the API I mentioned. Just be sure to manually replace the "your.ISY.ip", "your.TVs.ip", and "YourAuthenticationCode". The authentication code comes from the manual registration page in settings on the TV itself. public bool sendAuth(string YourAuthenticationCode) { bool reg = false; string your.tvs.IP = this.Server_Name; string jsontosend = "{\"id\":13,\"method\":\"actRegister\",\"version\":\"1.0\",\"params\":[{\"clientid\":\"" + your.tvs.IP + ":34c43339-af3d-40e7-b1b2-743331375368c\",\"nickname\":\"" + your.tvs.IP + "\"},[{\"clientid\":\"" + your.tvs.IP + ":34c43339-af3d-40e7-b1b2-743331375368c\",\"value\":\"yes\",\"nickname\":\"" + your.tvs.IP + "\",\"function\":\"WOL\"}]]}"; try { var httpWebRequest2 = (HttpWebRequest)WebRequest.Create(@"http://" + your.ISY.IP + @"/sony/accessControl"); httpWebRequest2.ContentType = "application/json"; httpWebRequest2.Method = "POST"; httpWebRequest2.AllowAutoRedirect = true; httpWebRequest2.CookieContainer = allcookies; httpWebRequest2.Timeout = 500; using (var streamWriter = new StreamWriter(httpWebRequest2.GetRequestStream())) { streamWriter.Write(jsontosend); } string authInfo = "" + ":" + YourAuthenticationCode; authInfo = Convert.ToBase64String(Encoding.Default.GetBytes(authInfo)); httpWebRequest2.Headers["Authorization"] = "Basic " + authInfo; var httpResponse = (HttpWebResponse)httpWebRequest2.GetResponse(); using (var streamReader = new StreamReader(httpResponse.GetResponseStream())) { var responseText = streamReader.ReadToEnd(); _Log.writetolog("Registration response: " + responseText, false); this.Registered = true; reg = true; } string answerCookie = JsonConvert.SerializeObject(httpWebRequest2.CookieContainer.GetCookies(new Uri("http://" + your.ISY.IP + "/sony/appControl"))); System.IO.StreamWriter file = new System.IO.StreamWriter("cookie.json"); file.WriteLine(answerCookie); file.Close(); this.Cookie = answerCookie; } catch { _Log.writetolog("Registration process Timed Out", false); this.Registered = false; } return reg; } #endregion
  2. I'll send it to you. Check out this API: https://github.com/KHerron/SonyAPILib/blob/master/README.md My model (KDL-48W600b) requires a script to be run which "registers" the new virtual remote with the TV. Oddly, I copied and pasted the script from the API for registration into a network resource on the ISY - and the ISY registered as OK. I did the same for my PC, which also registered as OK. But, when I ran the commands from my PC, it worked fine - same commands on the ISY register a response of 500.
  3. Did anyone figure this out yet? I'm trying to do the same thing. Sent from my iPhone using Tapatalk
  4. HA is the most fun I've ever had with a hobby and the only one that I can't seem to grow out of it get bored with after a while. I find that researching up front, buying components little by little as you learn, and always buying used have prevented a lot of headaches that others have and I don't! Sent from my iPhone using Tapatalk
  5. I did the same thing you did for "bedtime" except it's a program; not a scene. Don't know if you had a specific reason for using a scene instead of a program but a program works great every time. I've never had a problem. Sent from my iPhone using Tapatalk
  6. Has anyone tried integrating a third party camera system like Arlo? I'm working on a solar powered gate project which is a decent distance from the house. I can get WiFi signal out at the area where I'm setting up the gates - but I don't want to have to wire an additional power source for a gate camera. I've seen the Arlo system which runs on its own router and batteries. Has anyone tried integrating a system like this? Or is there already something out there like this that works outdoors by battery? Sent from my iPhone using Tapatalk
  7. I have an ISY994i with the network module. We recently got a Harmony Ultimate Hub to control the entertainment center (the iphone app for it is easier for my wife to use). I have a sleep program in my ISY (countdown to turn off all appliances), and we use the sleep timer in the Harmony app. I've read in a few areas of this forum that a network resource can be created to push commands to the Harmony Hub. Also read a little bit more here (http://www.domoticz.com/forum/viewtopic.php?f=4&t=4676) I'm still trying to figure out the network resource. I'd like to be able to create a network resource that activates the sleep timer for the Harmony hub and add that into the sleep timer program I created in the ISY. Can anyone point me to an example I can follow?
  8. Any iphone or android apps that can modify or create programs and scenes on the ISY994i? Or does this all have to be done on a PC through the admin console?
×
×
  • Create New...