![]() |
|
|||||||
| mControl Add-in for Windows Home Server Discussions related to the mControl Add-in for Windows Home Server |
![]() |
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
One bug report and one change request (build V2.1.3015.3):
1. mobile_logic.js / cmbZone_SelectedIndexChanged() sets the incorrect path. It is missing the "/mControl" portion of the path (on WHS?). I modified it as follows to get it to work for me: HTML Code:
location.href = "http://" + location.host + "/mControl/Mobile.aspx?Zone=" + cmbZones.value; HTML Code:
<meta name="viewport" content="width = 240" />
|
|
#2
|
|||
|
|||
|
I thought the same thing - and made the same change. I believe you are using WHS's IIS server, is that correct?
Using the IIS server, I found that while the 'mobile' pages navigated correctly (after the modification), none of the pages functionality worked. Does it work for you? I found out that the 'mobile' functionality requires use of the mControl integrated web server - ie. the one listening on port 29990. Mash |
|
#3
|
|||
|
|||
|
Quote:
Code:
function cmbZone_SelectedIndexChanged()
{
var path = location.pathname;
var p = path.lastIndexOf("/");
if (p >= 0) { path = path.substring(0, p); }
location.href = path + "/Mobile.aspx?Zone=" + cmbZones.value;
}
For your other suggestion, we will check and see if it works with other clients as well. |
|
#4
|
|||
|
|||
|
Quote:
Quote:
If anyone is curious, I did roughly the following to set up an internal non-secured site so I can easily access mControl from my iPhone when at home: 1. Create a new web site in IIS, with the directory pointing to C:\Inetpub\wwwroot , set the port to something other than 80. 2. Right-click on the mControl folder. 3. Click "Create" under Application settings to create a new application. 4. Set the execute settings to "Scripts only". 5. Set desired security settings on the Directory Security-tab, such as as limiting access to the internal subnet. 6. (Optional) Add a 57x57 PNG with the name "apple-touch-icon.png" to the root folder so you can create a nice button on the iPhone springboard when you bookmark the site. //Tomi B. |
|
#5
|
||||
|
||||
|
Well, we finally got around to testing it - we borrowed an iTouch from one of our team member's cool kid. We made one change, as recommended by docbliny - that is, adding the meta element to fix the width and mControl's mobile page came in with no issues:
![]() Now I know what I want for my birthday
|
|
#6
|
|||
|
|||
|
Uh... Hey, this is awesome! I'm new to all this, started with mControl a couple of weeks ago and yesterday I put in another 8 dimmers.
I'm not sure why I didn't clue into this aspect yet, but this is very cool, especially since I happen to have an iPod Touch. I will have to try this out tonight! Two questions: since I'm using mControl's in-built web server, I'm assuming the path change doesn't need to happen? Also, for the extra line with the correct width, it was mentioned to change it in mobile.aspx (and the other pages) - the other pages referred to, are those the mobilecameraview, mobilesecurityview, and mobilethermostatview? Since I don't have those types of devices yet my assumption is that I just need to update mobile.aspx, is that correct? g. Last edited by groovejumper; 04-28-2008 at 10:02 PM. Reason: more questions |
|
#7
|
|||
|
|||
|
Very nice find guys. I had been using my Touch with MControl since initial installation and searched and searched for SOMETHING that would clue the iPod in to the "correct" level of zoom. I never would have guessed it would be in the form of a meta tag. Making that tweak right now.
Developers, does Iphone/Ipod Touch report a specific user-agent (besides some generic Safari string) so that future revisions of Mcontrol can automatically insert this tag if appropriate? Or does it not matter since the Ipod/Iphone are the only devices to pay attention to this tag? |
|
#8
|
|||
|
|||
|
One suggestion, it looks like on/off and macro run/stop commands are still being handled through JS, which is fine -- but is there a way to encode a command into a query string?
Here's why... the latest version of my Ipod touch's software allows me to place a Safari bookmark on the main page of the Ipod touch's interface. If I could encode a macro run command into a querystring I could put that link onto my main page and use the Touch for specfic, common macros, rather than firing up Safari, navigating to the right zone, scrolling to the macro (lots of devices in my zones) and clicking it. Thanks for reading.
|
|
#9
|
|||
|
|||
|
Hi, I have limited programming experience. Would somebody be able to post a basic step by step guide regarding how to add the new website via IIS and to get the Iphone functionaity working? I am learning as I go, but unfortunately that is still over my head.
Thank you so much for your time. |
|
#10
|
|||
|
|||
|
Quote:
//Jacob |
![]() |
| Thread Tools | |
| Display Modes | |
|
|