Mobile web page for your Apex

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

Can you email me a screenshot on how it looks on apex page?
Russ uses (virtual) outlets to display the state of the input switch I believe, hence they all simply show up in the outlets section.

I can display the switch name color coded to green if open and red if closed.
 
Its javascript using jquery get right? It could totally be packaged as an actual app for droid/iphone/windows mobile/etc.. using phone gap. you'd just have to change the "$.get("/cgi-bin/" to the full address of the controller. The username/password and full address could be stored in local storage. I've done some mobile apps using phone gap. if you'd like a quick run through on doing it, send me a PM.
 
I don't see a way to get it to App Store without costing me $ on something I am offering for free. Even phone gap charges for their service (I don't own a Mac).
 
thats weird..

on safari i can now log into my apex page but its the main webpage and not the mobile platform.

I am logging on to the site with my external address but the web image is coming from my internal address
 
if you just updated the m-apex.htm file to v1.02, try to access the page directly using http://<external addr:port>/m-apex.htm
if the old page shows up, try to do a refresh and it should display the new page. Then try to access using http://<external addr:port> to see if it automatically load the mobile page. On the mobile page, if you click on the info button (lower left), it will display the version number on the top bar so you know if you are using the correct version.
 
Looks great, works better than the app in my opinion. Couple things...
If I use chrome I get the regular apex dashboard, stock browser gives me your dashboard. Problem is im always using chrome. I can call the page directly and it works.

Is there any way to make one of the sensors open by default. So at a quick glance I can see my readings?

Awsime work.
 
Looks great, works better than the app in my opinion. Couple things...
If I use chrome I get the regular apex dashboard, stock browser gives me your dashboard. Problem is im always using chrome. I can call the page directly and it works.

Is there any way to make one of the sensors open by default. So at a quick glance I can see my readings?

Awsime work.

That is a problem with chrome. You can do a web search and see it has the same problem of not loading mobile version of websites because it's user-agent is mozilla/5. You can modify the index.htm to include that user-agent to identify a mobile site.

To make say the Sensor section open by default, edit the m-apex.htm file as follows. Search for the string id="SensorBar"> and change it to
id="SensorBar" data-collapsed="false">

I can add this to the next version update.
 
updated to v1.03

Added Inputs section that displays input switch status.
Added Feed cycle countdown. When a feed cycle is started, the button will display a countdown timer.
Updated documentation section.
Moved Save button to upper right corner in Setup page.
The program now always gets the latest status data from Apex every time you open a section.
 
I don't see a way to get it to App Store without costing me $ on something I am offering for free. Even phone gap charges for their service (I don't own a Mac).

There isn't a charge for phone gap, and last I checked phonegap air was free for a single app.... the andriod fee is $5. You can "rent a mac" online for about $20 if air isn't working. Apple does charge way too much for their developer fee though.
I don't have a personal apple license yet (we have one at work), but have plans to get one down the line for a personal app I've been developing. Maybe I'll be smart enough to remember this.
 
This is from phonegap faq

Note: Since PhoneGap Build uses Apple's standard development process to build applications, you will need to sign up for their developer program to build iOS applications on PhoneGap Build. You will also need a Mac to configure your certificate and provisioning profile.

Apple developer program costs $99/year.
I'm pretty sure phonegap charges for building for mac/ios if you do not have your own mac (I researched this before), but can't seem to find it now.

I'll be glad to do this if someone is willing to sponsor. :)
For now, uploading to apex seems to work fine for most users.
 
This is from phonegap faq
You will also need a Mac to configure your certificate and provisioning profile.
^ that is the only part you need the mac for.. and I hate that apple feels they need to be so "closed" with their dev process. The fee is insane considering they are forcing you to buy their product to do it. But, that part can definitely be done with the rent a mac I noted earlier. Once you've done that, you won't need a mac or even an iphone other than for testing, and for the most part, unless you get into things that are phone specific, you can actually do your testing safari. All phonegap is is a webkit browser that holds your files locally, with a few addons/plugins that allow access to the device api.
https://build.phonegap.com/ pricing plan is 3/4 the way down the screen.
1 private app is free
You upload it builds. You absolutely still need the dev license from apple.
I'm not "pushing", I don't have an apex, and iphone or a mac. Just wanted to make your options clear. I love that people take the time do this stuff, and feel the need to encourage all who do open source/free development.
Having said all that, it is not "free" and it is not "easy", and it should not be considered as such...
Anyone noting that they "want" this, please consider the idea that this is someones time and money... its not free, and even if the OP were to do this, you would have no "rights" to expect any support or help if it does get published. Apex having their own app means they have a IT department at least semi-dedicated to the task. This is a hobbyist with commitments, family, a job, a tank...(or at least a few of those) If you've read anything on the app subject in this forum, you might know that the guy who did the android app for the ACIII pulled the thing because people didn't understand that, and he didn't have time to deal with the volume of questions and requests.
If you "sponsor" it as noted, you should also consider that you are sponsoring the original version, not upgrades, fixes, special requests, etc. unless otherwise promised.
Anyone who does anything professionally, or semi-professionally tends to get requests from their friends and family when it comes to what they do. If you are a plumber, some how everyone expects that you will plumb their house for free. While someone may CHOOSE to help you, they are not required, and their time is just as valuable as yours.
Just wanted to note that because doing something like this requires a commitment, and that commitment should be respected and appreciated. These things start with best intentions, they just don't always end that way... Regardless of whether this ever becomes and app, all those things apply.
 
hi d0ughb0y i loaded it up, so i am guessing to access it i would put in ip address for home and my dns url for external connection??? i can get the page too load but it keeps asking me for user name and password. when i put this in it just pops up and asks again. any idea??? i even took out password from apex and it still did the same. using on galaxy s3 with chrome.

thanks
 
It's a Chrome issue, I had the same problem. Cancel the login (generally twice) until it say it can't connect and hit OK. Reload the page in the address bar and you will get a good login. Or do as I have and just use Firefox.

John
 
thanks john, i downloaded firefox, does not do the login thing as i temp took out password from the apex but just sits on updating
 
Back
Top