Premise jQuery Mobile MiniBrowser UI - Preview

Motorola Premise
It looks like your dimmer slider sends continuous commands as someone slides? This may be an issue depending on the design of the lighting system's driver (and the design of the lighting system for that matter). For example, you could cause massive delays on a z-wave network if you send 50 commands in succession to increase brightness in steps. Perhaps there could be a global variable to toggle the slides behavior? However, if someone can click anywhere on the slide control, what you have will work, and I just won't grab and slide.

How this type of issue is handled for thermostats in the z-wave VRc0P module is a timer is set when a new temp value is received. Then, if another value is received within a second, the timer restarts. This causes a delay of 1 second, but was the easiest way to handle things as the Automation Browser used a push button (not a push and hold button) that uses a script to subtract or add to the temperature setpoint: sys://Schema/Modules/Plugins/ControlsLibrary/ThermostatControls/CurrentSetPointControls/Decrease/OnClick

This is in contrast to the automation browsers implementation for dimmers as a brightness state change does not occur until the user stops raising brightness by releasing the push and hold type button; this meant that the VRC0P module did not require the same addtimer work around and so dimming is fast and accurate.

Also, the slides behavior may cause havoc for IR volume control as most IR controllers have a cache of IR commands. Imagine sliding to 80% from 50% and having to wait for 30 IR commands, each with a built in delay, to be sent. Typical IR command delays (minimum delay until the device will accept a new IR command) range from 50ms to 200ms; so the issue would depend on the device.
 
Good point, I think it is possible to set the control to execute onmouseup instead of onchange. I will have to see if there is a way to stop the polling when the control is being pressed. That way there will only be one command sent.

Again another reason for me to get all of Chucklyons changes added and released for beta testing. I am running premise without any devices as I wait for my house to be built.
 
That or if there's a way to have onchangeup have a 100-500 ms delay before the new status is sent to Premise to perform the device state change. Stopping the polling while the user does something is also a great point as it could overwrite what the user is doing if the control system is slow to respond. However, I'm not sure, would the slider move back to the polled value or stay where it's being dragged to (assuming a user was dragging the slider at the instant Premise was processing a poll)?

PS: I ended up making an Android webview app for displaying Premise's Minibrowser. It always hides the address bar, lets you define a set rotation etc. The app also let one define a refresh interval, desabled refresh while a user was touching the screen, has a delay refresh after touch option, etc...

You're welcome to the source code if you want to improve it for your new minibrowser. PM me if you want it!

http://cocoontech.co...ys-webview-app/
 
That or if there's a way to have onchangeup have a 100-500 ms delay before the new status is sent to Premise to perform the device state change. Stopping the polling while the user does something is also a great point as it could overwrite what the user is doing if the control system is slow to respond. However, I'm not sure, would the slider move back to the polled value or stay where it's being dragged to (assuming a user was dragging the slider at the instant Premise was processing a poll)?

PS: I ended up making an Android webview app for displaying Premise's Minibrowser. It always hides the address bar, lets you define a set rotation etc. The app also let one define a refresh interval, desabled refresh while a user was touching the screen, has a delay refresh after touch option, etc...

You're welcome to the source code if you want to improve it for your new minibrowser. PM me if you want it!

http://cocoontech.co...ys-webview-app/

Awesome, I would really like to have it as an android app. I hate having to deal with the address bar on the browser. I would like an iOS app also, but that will cost me.
 
After all of the Premise modules I posted, the only non-Premise app turned out to be the most popular (69 downloads). The link I previously posted should let you download the apk directly. I never posted it in Android's market/Google Play. You must enable "allow installation of apps from unknown sources."

It was compiled for Android 2.3, but still works on every phone I've tried. There's probably improvements to be made such as adding an https prefix option or just letting the user include the prefix when they type the server location.

EDIT: The source code always appends http:// to whatever server host-name you give. In retrospect, this is pretty stupid. I'm changing it so you'll just type the server path (leaving off port and username and password). When I get home this weekend, I'll compile a new version using the Android 4.0 and 3.0 API, however, the 2.3 API seems to still work just fine.
 
WOW. ANXIOUSLY awaiting a grab at this!! I just got started with Premise after being an Elk guy since 2006 and always wondering when such a gorgeous interface would make its way to a touch screen device!

One finger on the PayPal button with your name tattooed on it - Great work!

:)
 
SSNH: Welcome to the Premise forum!

W84no1: Sorry for the delay on the new version of the webview app. Do you plan to configure the Premise webserver to use https? I've been meaning to make the switch, but now I have too many devices pointing to mb links I'd have to redo... The Tasker Android app and AutoHotkey are two that access mb links directly to do things.

For example, with AutoHotkey, I remapped my HTPC keyboard's volume controls to its media zone using a http get request and the associated mb url. I also remapped some AVRs keys on the keyboard to actually turn on my A/V receiver:
http://www.amazon.com/gp/product/B008JGU3YA/ref=oh_details_o02_s00_i00

The keyboard was originally for google tv, but works under Windows. It's not bad as a secondary HTPC keyboard.
 
Neat, for some reason I thought you were an XBMC user.

At some point, we should get together and design a full-fledged Premise Media Center module (assuming you are going to keep using it). I started to make a module, but the main issue I had was how to resume/suspend/start WMC as vmcontroller does not do this since it's only an add-in for WMC.

I think EventGhost maybe the answer, but I'm having to learn Python first so it'll be a while before I post anything.

PS: I can post my autohotkey files for the keyboard unless you already went through mapping all the buttons.
 
Neat, for some reason I thought you were an XBMC user.

At some point, we should get together and design a full-fledged Premise Media Center module (assuming you are going to keep using it). I started to make a module, but the main issue I had was how to resume/suspend/start WMC as vmcontroller does not do this since it's only an add-in for WMC.

I think EventGhost maybe the answer, but I'm having to learn Python first so it'll be a while before I post anything.

PS: I can post my autohotkey files for the keyboard unless you already went through mapping all the buttons.

Not sure how you guys are controlling Media Center, but I've recently put some time into updating MCE Controller, the app I built to control Media Center from Crestron/Premise way back when. It's now actually pretty sophisticated and supports resume/suspend/start...

http://tig.github.com/mcecontroller/

Let me know if you have any issues with it.
 
I am switching over to XBMC, but right now I am using MCE. MCE seems to be forgotten by Microsoft and XBMC has finally added PVR support that I am going to test. I have DirecTV and use Hauppauge HD-PVRs to capture the HD signal, so MCE is not as attractive for me as it is for people with cable card tuners.

I have gotten my raspberry PI and I really like it, but the fact that I can run XBMC on all my devices (pc, iPad, phone, PI) makes me lean towards a whole house XBMC setup with Premise controlling XBMC over IP.

I am going to start a new thread with my future setup (breaking ground next week, I hope)
 
Charlie:
This is awesome as vmcrontroller went by the waste side as far as development. How did you implement skip (prev/next)? Do you use sendkeys to implement button commands? One of my gripes about vmcrontroller is that it doesn't use send keys, so the prev and next buttons do not work with the Arcsoft WMC add-in (but the other keys do work).

w84no1:
I may switch to XBMC too. I do not have cable or satellite. I use OTA for HDTV, but have a large blu-ray and HD DVD collection (backed up as ISO files) along with Netflix. Provided a player that supports blu-ray iso's with menus is added, I would definitely switch. I'm not sure if XBMC supports Netflix, I'll have to look into that.
 
What do you know, it looks like "My Movies" supports XBMC either by using the scraper or by saving the meta-data formatted for XBMC.

It also looks like with some configuring XBMC can launch Arcsoft TMT (if I want to use it in lieu of a non-licensed blu-ray player):
http://forum.xbmc.org/showthread.php?pid=911913%23pid911913

And that Netflix is supported:
http://wiki.xbmc.org/index.php?title=Add-on:XBMC_Flicks_-_Netflix_for_XBMC

So I guess I'll have to try XBMC...
 
Back
Top