Jump to content

Ottermator

Members
  • Posts

    83
  • Joined

  • Last visited

Ottermator's Achievements

New

New (2/6)

0

Reputation

  1. I get a failure and an N/A response with POSTing this POST / HTTP/1.1 Host: 169.254.70.83:80 User-Agent: Mozilla/4.0 Connection: Close Content-Type: application/x-www-form-urlencoded Content-Length: 2593 public bool sendAuth(string YourAuthenticationCode) { bool reg = false; string 169.254.70.83 = this.Server_Name; string jsontosend = "{\"id\":13,\"method\":\"actRegister\",\"version\":\"1.0\",\"params\":[{\"clientid\":\"" + 169.254.70.83 + ":34c43339-af3d-40e7-b1b2-743331375368c\",\"nickname\":\"" + 169.254.70.83 + "\"},[{\"clientid\":\"" + 169.254.70.83 + ":34c43339-af3d-40e7-b1b2-743331375368c\",\"value\":\"yes\",\"nickname\":\"" + 169.254.70.83 + "\",\"function\":\"WOL\"}]]}"; try { var httpWebRequest2 = (HttpWebRequest)WebRequest.Create(@"http://" + 192.168.1.13 + @"/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 = "" + ":" + 3752Rvwj; 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://" + 192.168.1.13 + "/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 How does it look? I appreciate your time.
  2. ok. I selcted manual and then Other Methods i see the SSID and the WPA key. Are you referring to the WPA Key?
  3. Thanx Where is the manual registration page on the TV? I have a Sony KDL48W600B
  4. Would you send me your code too, please? Thanx Mike pazium@gmail.com
  5. Yes Mike (Pazium, Ottermator)
  6. Thanx. It doesn't spider the network, but I imagine that could be future code. I'll probably call. I need see how easy. Do I need added software to do it?
  7. My name is Ottermator and I am a Insteonoholic. Which is partially why I have the iGateway. I have an ISY-99i already working in the huse Could someone compare these two fine devices for me? I am planning on using the iGateway to give me outside the house control and keep the ISY as it is. The iGateway seems less work to set up for outside the house access. I am also a Pocket PC user not an iPhone or android user. Thx
  8. Smartphone works great! I forgot to mention the software upgrade was a snap! However now that I go this far, I notice that the 2nd floor linked fine, but the first floor insteons didnt link at all. need to check this out.hmmmmmmmm. OMR/Mike
  9. Thanx. It worx!!! Next I'll test on the smartphone OMR/Mike
  10. According to the About window I am running Insteon_UD99 v.1.0.0 Product ISY 99i(1020). Is this the latest? How do I get to the HTML site? Do I have to enable INternet Access? TIA OMR/Mike
  11. I want to be able to view my Insteon Network using my smartphone (AT&T Tilt with Windows Mobile 6 with the Esmertec JVM). When I run IE it tells me I need Java 2+. I tried Minimo it does work. I have yet to try Opera Mini. I read old posts about WEME not being supported. Is this true? Is there an HTNL version? Do I want that? What exactly do I need to do to run ISY on my phone? TIA OMR-Mike
×
×
  • Create New...