Announcement

Collapse
No announcement yet.

Home Control Center (HCC) ... updated iPhone4HS Web Interface (ALPHA)

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Home Control Center (HCC) ... updated iPhone4HS Web Interface (ALPHA)

    Home Control Center



    Project Goal
    Build an easy to use touch friendly interface that is cross browser functional and formatted to fit on iPhone. iPod Touch, and most mobile touch screen phones.

    Browser Compatibility Goals (in priority order)
    1) iPhone/iPod Touch Safari browser *complete
    2) FireFox 3.x for PC *complete
    3) Windows Mobile Opera
    4) Windows Mobile IE
    5) Google Android
    6) Blackberry


    Disclaimer
    This code is in ALPHA stages... there will be bugs.
    Most of the main functions work for me, your mileage may vary.

    NO warranty expressed or implied. This is TEST software, use at your own risk.

    How to report a bug
    Don't whine or complain! If you suspect you found a bug post the following info... Exact steps needed to repro, device/event settings in Homeseer, expected results & actual results, screen shots only when necessary to illustrate the problem. I will do my best if/when I have time to work on the code. No promises on fixes or time frames.

    The code is based upon the work by the below authors and changed to work with Homeseer 1.7 & 2.x, with UI & code optimizations/changes.
    original authors... Tom Pepper (iphoneforhs) & Frank J. Perricone (Rover)


    Call to Action
    What I need from you is to test, test, test... on any version on HS you have.


    Notable changes to the code & UI

    Changed .NET specific code to work in non.NET environment
    - this makes it work in Homeseer 1.7, and should still work in 2.0 (please test and report back!)

    Changed the icon for the Home button at top of screen

    Added an Events button (star) at top of screen

    Changed the way some devices displayed
    - Fixed bug where some devices would show status icon and text but could not be controlled.
    - removed status text, kept icon, and added on/off toggle to control device. (this touched several functions, and I added one function of my own)

    Streamlined the interface
    - changed font to be easier to read, less text on the screen, and based on screen you are in the guidance text is more appropriate for the drop down.

    Known Issues

    HS1: Server Response screen displays for a quick moment when command sent to Homeseer
    - suspected: bug/incompatibility/error handling issue .NET handles without a problem, but classic ASP does not
    HS1 & 2: Some custom icons from Homeseer device string do not display on iPhone
    - suspected: pathing issue and/or bug from iphoneforhs, they display properly in FireFox on PC


    To Do List (in priority order)

    Convert to sliding on/off toggle buttons
    Convert the Home screen to a true iPhone style menu list
    Remove Options that don't work (from original iphoneforhs code)
    Option to disable Device links when not in Admin mode
    Create an Admin mode, password protected
    - enables 'Options'
    - enables device 'Ref' # link, to Homeseer device screen
    - otherwise, above are disabled
    Attached Files
    Last edited by ; October 23, 2009, 01:03 PM. Reason: uploaded alpha 1.1

    #2
    HS 2 Issue

    Hello Aaron and thanks for picking this ball up.

    Is HS2 there is a show stopper issue I think.

    Unsupported GetDeviceList,, see below.

    9/4/2009 6:51:07 AM - Error - Script or plugin called GetDeviceList which is no longer supported.
    9/4/2009 6:51:17 AM - Error - Script or plugin called GetDeviceList which is no longer supported.
    9/4/2009 6:51:27 AM - Info - Web Server authorized local login successful from: 127.0.0.1 User: Mark Esdale

    Any easy suggestions?

    thanks

    Mark Esdale

    Comment


      #3
      Originally posted by markesdale View Post
      Hello Aaron and thanks for picking this ball up.

      Is HS2 there is a show stopper issue I think.

      Unsupported GetDeviceList,, see below.

      9/4/2009 6:51:07 AM - Error - Script or plugin called GetDeviceList which is no longer supported.
      9/4/2009 6:51:17 AM - Error - Script or plugin called GetDeviceList which is no longer supported.
      9/4/2009 6:51:27 AM - Info - Web Server authorized local login successful from: 127.0.0.1 User: Mark Esdale

      Any easy suggestions?

      thanks

      Mark Esdale
      I fixed this and uploaded a new ZIP.

      The issue is that they changed the function for v2... for no obvious reason, seems like they could have kept it the same name, it looks like it does exactly the same thing.

      Anyway... the script now auto-detects what HS version you are using and uses the correct method call.

      Please try again... and thank you for helping debug!

      Comment


        #4
        Thanks for great work but I get error when trying to load the page. I think the error code is start at line 331 (For Each dev In devices)

        HS Version 2.3.0.122
        This is what I se when the page is loading.
        PHP Code:
        Script errorObject doesn't support this property or method

                For Each dev In devices
                '
        Set dev devices 
        /Thanks Tonlof
        Please excuse any spelling and grammatical errors I may make.
        --
        Tasker Plugin / Speech Droid
        Tonlof | Sweden

        Comment


          #5
          Tonlof,

          Replace line 332 (the one commented out) with this...

          Code:
          if hs_version <>1 then set dev = devices.GetNext  'needed for HS2
          and please report back... if this gets past the issue you are seeing then I will make a few more changes to the rest of the code.

          Comment


            #6
            I'm sorry but it did not help.
            It still stopping at line 331 For Each dev In devices
            PHP Code:
            Script errorObject doesn't support this property or method

                    For Each dev In devices 
            Thanks
            Please excuse any spelling and grammatical errors I may make.
            --
            Tasker Plugin / Speech Droid
            Tonlof | Sweden

            Comment


              #7
              Found the problem... an think I fixed it.

              There are 2 different methods HS uses to accomplish the same thing depending on version...

              HS1.x : GetDeviceList ... a collection
              HS2.x : GetDeviceListEnumerator ... an object

              thus, then need to be iterated through (looped) differently.

              At this point, at least the device lists, should all work on all versions of HS.

              uploading the latest ZIP now.

              Comment


                #8
                GREAT It's working... I will now test your application
                Please excuse any spelling and grammatical errors I may make.
                --
                Tasker Plugin / Speech Droid
                Tonlof | Sweden

                Comment


                  #9
                  I wrote a small example of how to distinguish different mobile browsers
                  PHP Code:
                  Dim UA,mobile,resolution
                  mobile 
                  true
                  UA 
                  UCASE(Request.ServerVariables("HTTP_USER_AGENT"))
                  if 
                  instr(UA,"HTC_TOUCH_HD"Then
                  resolution 
                  "480 x 800"
                  Response.Write "Hello HTC Touch HD" " [" UA "]"
                  elseif instr(UA,"HTC_TOUCH"Then
                  Response
                  .Write "Hello HTC Touch" " [" UA "]"
                  elseif instr(UA,"HTC_TOUCH"Then
                  Response
                  .Write "Hello HTC Touch" " [" UA "]"
                  elseif instr(UA,"IPHONE"Then
                  Response
                  .Write "Hello iPhone" " [" UA "]"
                  elseif instr(UA,"IPOD"Then
                  Response
                  .Write "Hello iPod" " [" UA "]"
                  elseif instr(UA,"MOBILE") and instr(UA,"SAFARI"Then
                  Response
                  .Write "Hello Google Android" " [" UA "]"
                  elseif instr(UA,"BLACKBERRY"Then
                  Response
                  .Write "Hello BlackBerry" " [" UA "]"
                  elseif instr(UA,"SYMBIANOS"Then
                  Response
                  .Write "Hello Symbian" " [" UA "]"
                  elseif instr(UA,"SERIES60"Then
                  Response
                  .Write "Hello Symbian" " [" UA "]"
                  elseif instr(UA,"PPC"Then
                  Response
                  .Write "Hello handheld" " [" UA "]"
                  elseif instr(UA,"NOKIA"Then 'NOKIA + Modelnumber, (NOKIA3510i)...
                  Response.Write "Hello Nokiaphone" & " [" & UA & "]"
                  else
                  hs.writelog "Unknown Browser", "Please send to email@some.com :" & " [" & UA & "]"
                  mobile = false
                  End if 
                  Please excuse any spelling and grammatical errors I may make.
                  --
                  Tasker Plugin / Speech Droid
                  Tonlof | Sweden

                  Comment


                    #10
                    Been a few days since I heard any rumblings... hows the testing going everyone?

                    My next step is to make an option to have the 'home' page an iPhone UI style menu with the locations - instead of the drop down.

                    Have not dug too much into it yet due to being short on time - always love to see other coders jump in if you'd like!

                    Comment


                      #11
                      ditto. Events access not working

                      Comment


                        #12
                        Originally posted by TrOjAn
                        Google Android,

                        HS 2.2.0.66

                        Script error: Object required: 'hs.GetEventList' Set events = hs.GetEventList 'HS1 If IsObject(events) Then


                        I get that when I click the star in the right corner..

                        TrOjAn
                        looks like an HS2 thing... I'll fix it this weekend.

                        Comment


                          #13
                          alpha 1.1 uploaded.

                          HS2.x should work for Events & Devices.

                          Please test and report back.

                          thx

                          Comment


                            #14
                            Seems to work great

                            Hi Aaron, Just confirming everything looks great for me here. HS2 no issues at all.

                            Thanks a ton.

                            Mark

                            Comment


                              #15
                              Hoping to get Tom's help on a few enhancements... maybe soon

                              Comment

                              Working...
                              X