CSS for WebRemote

James Sentman james at sentman.com
Thu Jul 26 15:53:56 EDT 2018



> On Jul 26, 2018, at 1:45 PM, David Gregg <djgregg at icloud.com> wrote:
> 
> In the future it is likely I will be adding other controls through the html controls route.
> Adding in the direct handling of events would be nice. 
> A possible workaround at the moment might be just setting up a separate html server unit in XTension?

Certainly sending some info to the JSON server from your own embedded control would work fine. It’s just a pain in the neck, especially if you’re going to use it external to the local network as you’ll need to pass that port through as well. I could theoretically provide some javascript hooks that you could call to either control units or send other commands or something.

> 
> Does the framework have the option to pick up the source for the inline html/css/javascript from outside the framework in defined locations? 
> Thus providing for the opportunity to include folders for the html, javascript, css in XTension, maybe under the Views section of the db?

The framework doesn’t, but there isn’t any reason that I can’t do that. I’ve been planing at the back of my mind some way to let plugins create web controls beyond what they can do now. I’m not sure about that though as the path for information to flow between the web and the plugin code is through several hosts and i”m not entirely sure of it’s usability. It is something that I find myself wanting to do though so it will probably start appearing sometime after the framework update.

> 
> Any insights as to what will be included in the 2.0 upgrade?

Nothing immediately for you ;) But lots of work for me. Hopefully a lot more flexibility for CSS and other things than it has now and a lot fewer work arounds for me over bugs that it has now. I think they are going to base the UI on jquery instead of rolling their own. Thats both good and bad as there are a lot more libraries and sample code out there for that than there are without it, but it’s bad because it’s more overhead in loading into the browser. I’m especially concerned about it on the mobile side but since I haven’t seen it yet I have no idea anything beyond that and it won’t matter to anyone not wanting to write their own. Extending the plugin interface to provide for web controls would be terrific, but it makes running them in the inside XTension views more complicated since that is not a web browser. I don’t know yet, but we shall see :) 

Thanks,
 James


James Sentman                       http://www.PlanetaryGear.org		http://MacHomeAutomation.com




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.machomeautomation.com/pipermail/xtensionlist/attachments/20180726/bbd9a498/attachment.html>


More information about the XTensionList mailing list