Mobile web page for your Apex

d0ughb0y

Active member
I created a new webpage for Apex controllers designed for mobile devices. The program is all self contained in one htm file. I also created an index.htm page that will automatically detect the browser and if it is a mobile browser, will load the m-apex.htm file, otherwise, it will load the regular apex page.

Download the m-apex.zip file attached to this post. Unzip and upload the m-apex.htm and index.htm files to your apex www directory on your controller.

Feature summary:
Displays all your sensors (probes) values and chart of last 24 hours data.
Display and control all your outlets.
Send feed command.
Integrated webcam display.
Searchable outlet and data log display.
Modify your outlets and profiles.
Displays your apex info.

Screenshots.
B43F1E82-F06D-47E9-87E3-3264F73B63F8-9313-00001083D312B842_zpsadc1419d.jpg
0160B9E8-6456-4B3F-AD88-FD7188AC658C-9313-00001083E0BDB41A_zps6c5e7304.jpg
A4CDFECF-D80D-41FD-8BC0-96FBD3E90BCE-9313-00001083E7CBC3FA_zps0572bd6c.jpg


ED0B8325-928C-415C-8637-E21613D8C879-9313-00001083ED81C569_zpsef679f34.jpg
49C91606-53A8-4930-8872-5A55A00F5FD9-9313-00001083F2C33A1C_zpsd463c9d2.jpg
52F95A5E-F4F1-4721-9153-7F05DD410AEB-9313-0000108512C9F471_zps84d26218.jpg


Thanks to RussM for providing access to his apex to test this program.
 

Attachments

Last edited:
I was just about to write something like this for use in IOS7 since the app doesn't send commands.

I'll give it a go and let you know how it works for me.

Are you planning to package this for app store distribution?
 
I've got it up and running. Some challenges with IOS7 though. Looks like Safari's user agent isn't matching or something since I'm getting the default UI.

Opening in Chrome on IOS7 does work but creates a problem with the javascript trying to access data before credentials can be entered.

IOS6 is working just fine on my iPad.

EDIT: Found a workaround for now on IO7 Safari. Just bypassed the agent check and addressed the m-apex.htm directly (e.g. 192.168.1.5/m-apex.htm). However, I still run into times when the javascript is updating the sensor data before I can login.

Thanks for the great work!
 
Last edited:
My Apex is still sitting in the box it came in earlier today, so I'll probably be trying this out soon.
 
Download the m-apex.zip file attached to this post. Unzip and upload the m-apex.htm and index.htm files to your apex www directory on your controller.

I just updated to newest firmware and want to try your mobile HTML file out. Can you tell me how to access the www folder on my apex? I don't want to mess anything up, it's all working fine right now!
 
I just updated to newest firmware and want to try your mobile HTML file out. Can you tell me how to access the www folder on my apex? I don't want to mess anything up, it's all working fine right now!

This is the instruction I got from RussM

To upload a file, just add it into the www folder of the extracted firmware update utility and then update the web pages using the firmware utility"¦ all files in that folder are uploaded. To remove a file, use telnet and delete the file by name (the command is "˜del')

backup the index.htm before replacing it.[FONT=&quot]





[/FONT]
 
What a great idea, way better than the (gray) Neptune app! A web page makes more sense than a phone widget, I always had a fear of pocket connecting to my Apex via the widget and turning something on or off that I didn't want on or off. Maybe it's just me but it seems a litter safer.
Thanks for taking the time to put it together.

John

FYI Galaxy 3 with Chrome.
 
you got the initial page displayed then got failure to connect?
or did you not get the initial page at all?
are you able to bring up the regular apex page?
if you can bring up the regular apex page, there there is no reason for the mobile page to not work (assuming it got loaded to apex), as they use exactly the same server commands.
 
ok, I see they are not outlets. I can add an Inputs section.
does apex log the change of state for inputs?
 
Hi Jerry,
No they show up separately on the main Apex page.
This is from the Dash script file where I changed the font color for my Apex pages.

function genInputHTML(b) {
var a;
if (b.v == 0) {
Status = "Open" .fontcolor("#009900") /* open color for switches*/
} else {
Status = "Closed" .fontcolor("#ff0000") /* closed color for switches*/
}
It's located around line 600 if beautified. Maybe something in there will help you locate the other code for the switches. I'm pretty hit or miss when if comes to JScript and figured I would miss if I attempted to figure out where it's at.......

John
 
Back
Top