Alternate UI to UI7

[quote=“Sjoerd, post:60, topic:185570”][quote=“amg0, post:20, topic:185570”]For the files, you can use this “link” : [url=http://code.mios.com/trac/mios_ipx800/changeset/176/trunk?old_path=%2F&format=zip]Diff from /@182 to trunk@182 – IPX800
but then please only install the files in the AltUI folder of the archive.[/quote]

Is it useful to add this link in the opening message? (if it is updated with the last version)

It would also be nice to keep a version history there.
It save a search trough all the replies to find if there is a new version.
Already 4 pages which proves the popularity of this development![/quote]
Yes I will improve this.

Also When I am back I will publish it as a plugin and it will be easier for every body.
Latest revision is 211 and full revision log can be seen here with date of changes and comments : / (log) – IPX800

When you click on the top left number you can have a nice view of code changes if interested.

Latest file download is [url=http://code.mios.com/trac/mios_ipx800/changeset/211/trunk?old_path=%2F&format=zip]Diff from /@211 to trunk@211 – IPX800

[quote=“Sjoerd, post:59, topic:185570”]I got also the “No handler” error.
I created the device, however is stayed empty.

after deleting the device recreated it, now respecting capitals in the D_ and I_ xml’s
Now it is working.

I get the same issue loading the first x devices.[url=http://forum.micasaverde.com/index.php/topic,30310.msg218325.html#msg218325]http://forum.micasaverde.com/index.php/topic,30310.msg218325.html#msg218325[/url]
Will check if any of the later updates solves the Issue

This looks very promising!

I am on UI5.[/quote]

No handler or empty response usually means either:

  • lua engine restart is still processing and on ui7 this takes time as it timesout on the USB initialisation infamous bug
  • or you did not create the device (step 3 of the instruction doc pdf which is included in the download
  • or you did not reload lump engine after creating the device. This is a must.

Whenever a new release only impacts .JS files you do not need the luup engine restart but whenever the new release impacts the .lua file , a reload is needed after the upload of new files

If display seems incomplete or non functional , first thing to check are:

  • make sure you are using the latest version
  • check the JavaScript console for a error, usually it will be quite precise including the line number of the code failure. Or even better with js debugger, all browsers have this built in now.
    Personally I only test on chrome and iPad iphone but I use jquery and bootstrap so I hope a large degree of cross browser portability. ( html5 though, no intention to deal with old browsers too much)

Hope this helps troubleshooting…

No handler error fix is to clear your browser cache, do a luup restart and then (most importantly) wait 2-3 minutes, be patient and when you do a F5 refresh in your browser it comes to life.

Cheers

D

[quote=“amg0, post:62, topic:185570”][quote=“Sjoerd, post:59, topic:185570”]capitals in the D_ and I_ xml’s
Now it is working.[/quote]

No handler or empty response usually means either:

  • lua engine restart is still processing and on ui7 this takes time as it timesout on the USB initialisation infamous bug
  • or you did not create the device (step 3 of the instruction doc pdf which is included in the download
  • or you did not reload lump engine after creating the device. This is a must.

Hope this helps troubleshooting…[/quote]

Thanks for the very responsive help.
May be not clear enough, I already solved the issue.
additional symptom: My ALTUI device stayed ‘empty’

While I was creating the device 1st time I had mixed capitals.
==> Second time I used CAPITALS as in the instruction.
that solved the problem.

Hopefully this helps other in finding this simple solution

As a windows man I am not always thinking of correct use of capitals and lowercase :stuck_out_tongue:

Revision 217 includes:

Files in zip under the altui folder.
http://code.mios.com/trac/mios_ipx800/changeset/217/trunk?old_path=%2F&format=zip

Or file by file from here:
http://code.mios.com/trac/mios_ipx800/browser/trunk/AltUI

Amazing!
And this took you how long to write? My only problem installing was that I didn’t wait long enough, and didn’t get the “Open Window” box. I took a break, did a CTRL F5 and it was there.

I’ve only been playing with it for 10 minutes, but already I like it much better than UI7. Vera REALLY should license this from you!

Just FYI, in the scene editor, I’m seeing
“Whenever DEVICE_NAME is closed whether is armed or disarmed”
And I see a “Broken Picture” Icon on a child sensor created by the MIMOlite plug in.

I’m very impressed. Can’t wait for Custom Pages to be implemented! Thank you amg0

[quote=“ilikelife, post:66, topic:185570”]Amazing!
And this took you how long to write? My only problem installing was that I didn’t wait long enough, and didn’t get the “Open Window” box. I took a break, did a CTRL F5 and it was there.

I’ve only been playing with it for 10 minutes, but already I like it much better than UI7. Vera REALLY should license this from you!

Just FYI, in the scene editor, I’m seeing
“Whenever DEVICE_NAME is closed whether is armed or disarmed”
And I see a “Broken Picture” Icon on a child sensor created by the MIMOlite plug in.

I’m very impressed. Can’t wait for Custom Pages to be implemented! Thank you amg0[/quote]
thank you. I started on 2015-01-17 and doing this off work hours & alone. so nothing that a full development team could not do (I would hope). I will however need help, for instance although I try as much as possible to reuse VERA & UI images/icons/json file for features, I cannot really reuse plugin control pages or javascript settings pages so I would need people to write the device specific custom javascript functions. one for the small device box, one for the full blown control panel display.

I made it all JS based so that all drawing are made in JS/HTML and not the complex JSON files any more. I just made the configuration of this completely dynamic in the latest trunk release in code.mios.com so that adding new Javascript modules & functions is now a completely customizable and dynamic task. it just requires to update the JSON object in the “PluginConfig” variable that controls the configuration of ALTUI app and determine what module & what functions are used for these custom displays for a given device type.

Regarding “Whenever DEVICE_NAME is closed whether is armed or disarmed”,I ll look into this

Regarding bad icons, I have a couple of these, and even different ones in UI7 or in UI5 boxes ( since I support both ). to help here would it be possible to give me the exact device-type and the device .JSON file used for this child sensor ? I need to see whats documented here in terms of icon and how to find it. please note I may need both the UI5 and the UI7 json file if the author made 2 files.

revision 221 includes this fix

Hi amg0

You are WAY too fast! Thanks for the quick fix.

The missing icon(s), looks like all mine in UI7 are the same device_type: urn:schemas-micasaverde-com:device:GenericSensor:1
And device_json is D_GenericSensor1.json

I can’t get back to UI5, but it’s a sensor created by the MIMOlite plugin App id:3816 Version 1.3 if that helps any?

While playing with this AltUi I’ve come up with a number of ideas for (what I would consider) enhancements or improvements. You, or other users might not see them as improvements :slight_smile:

Wonder if you would be open to a discussion for me and others to offer our “Wish List” for you to work on in all your spare time? I’m thinking most will be covered when you implement custom pages, and finishing the scene editor, but just wanted to offer suggestions.

Thanks again, and let me know if there is any more info I can provide?

[quote=“ilikelife, post:69, topic:185570”]Hi amg0

You are WAY too fast! Thanks for the quick fix.

The missing icon(s), looks like all mine in UI7 are the same device_type: urn:schemas-micasaverde-com:device:GenericSensor:1
And device_json is D_GenericSensor1.json

I can’t get back to UI5, but it’s a sensor created by the MIMOlite plugin App id:3816 Version 1.3 if that helps any?

While playing with this AltUi I’ve come up with a number of ideas for (what I would consider) enhancements or improvements. You, or other users might not see them as improvements :slight_smile:

Wonder if you would be open to a discussion for me and others to offer our “Wish List” for you to work on in all your spare time? I’m thinking most will be covered when you implement custom pages, and finishing the scene editor, but just wanted to offer suggestions.

Thanks again, and let me know if there is any more info I can provide?[/quote]

yes open to discuss these suggestions. I wonder if somebody could create a SubForum item like the IPhoneLocator one and we could then have several threads in it, one could be suggestoins/enhancements.

For those interested, I have significantly enhanced the documentation with new sceen shots and internal documentation ( source & architecture ) in the attached doc file.

PDF: [url=http://code.mios.com/trac/mios_ipx800/export/230/trunk/AltUI/doc.pdf]http://code.mios.com/trac/mios_ipx800/export/230/trunk/AltUI/doc.pdf[/url]
DOC: [url=http://code.mios.com/trac/mios_ipx800/export/230/trunk/AltUI/doc.docx]http://code.mios.com/trac/mios_ipx800/export/230/trunk/AltUI/doc.docx[/url]
FILES: in AltUI folder from
[url=http://code.mios.com/trac/mios_ipx800/changeset/230/trunk?old_path=%2F&format=zip]Diff from /@230 to trunk@230 – IPX800

VERA finally helped me to upgrade my EDGE to UI7.0.4 and it works ! YES !
one of the new thing in UI7.0.4 is the support for scene to be assigned to rooms.

So I added this in my ALTUI code, revision 234 includes

  • the scene page filtered by room and the scene editor enables to change the room… (Note it should work even if you did not upgrade to ui7.0.4)
  • the real time view of value when the slider of the dimmer device is moved.
  • display of backend plugin version in the footer

Tested on both UI7 and UI5.

I have noticed that LUA code for triggers disappeared from UI7 interface but they are still there, so I need test but possibly it is a feature I could re-enable via ALTUI … for the future

PDF: http://code.mios.com/trac/mios_ipx800/export/234/trunk/AltUI/doc.pdf
DOC: http://code.mios.com/trac/mios_ipx800/export/234/trunk/AltUI/doc.docx
FILES: in AltUI folder from
http://code.mios.com/trac/mios_ipx800/changeset/234/trunk?old_path=%2F&format=zip

amg0

Like the enhancements, and would REALLY like to see LUA for Triggers working again. I used that in UI5 and miss it a lot in UI7

I also just noticed in standard UI7, if I’m editing scenes and go into edit triggers, actions or LUA, there is nothing on the screen page that tells me which scene I’m editing. Sometimes I’m editing several scenes, and I forget which one I’m working on right now (OK, I’m old and forget a lot of things ;D)

I like the fact that you display both the scene numbers and names in all the edit screens.

yep, agreed.

V240
iPhone: cosmetic
OnOff button for UI5
DoorLock & DoorSensor device display, SetDoorLuck UPNP in UPNPHelper
Add Doorlock in default plugin Configuration
Improve Icon logic

Door stuff not tested as I do not have these devices, so appreciate any help/feedbacks. thx !

PDF: http://code.mios.com/trac/mios_ipx800/export/240/trunk/AltUI/doc.pdf
DOC: http://code.mios.com/trac/mios_ipx800/export/240/trunk/AltUI/doc.docx
FILES: in AltUI folder from
http://code.mios.com/trac/mios_ipx800/changeset/240/trunk?old_path=%2F&format=zip

Revision V256 gives remote access !

not fully nice though as ,
1- as expected, I have trouble getting access to icons. juste like on the UI7. all device icons specified by plugin authors as “http://…” in json files work, but all local icons on VERA box dont.
2- it is slow. I think in https, images cannot be cashed and VERA seems to have disabled the transport of img files from the relay servers. Either I have to install all images somewhere ( on my free hoster for instance ) or find some other solution.

However…

FILES: in AltUI folder from
http://code.mios.com/trac/mios_ipx800/changeset/256/trunk?old_path=%2F&format=zip

REMOTE ACCESS: http://amg0.site11.com/Veralogin.php ( this is a free hosting service so you may get a advertissement on some sort )

I uploaded all files (v240) but I get a strange view, see attached screenprint.

First few device are loaded, after that only lines.
none of the actions is working.

I think I completely followed the installation instruction.
The device in UI5 looks OK (including the latest json config)

Any idea want’s going wrong?

[quote=“Sjoerd, post:76, topic:185570”]I uploaded all files (v240) but I get a strange view, see attached screenprint.

First few device are loaded, after that only lines.
none of the actions is working.

I think I completely followed the installation instruction.
The device in UI5 looks OK (including the latest json config)

Any idea want’s going wrong?[/quote]

Typical of a JavaScript crash because of unexpected data or device type. Can you please check I. Your browser the content of the JavaScript console log and let me know.

Revision 269

[ul][li]Remote access for UI7 box via [url=http://amg0.site11.com/Veralogin.php]http://amg0.site11.com/Veralogin.php[/url] or [url=http://amg0.890m.com/Veralogin.php]http://amg0.890m.com/Veralogin.php[/url]. ( ignore advert, this is a free hosting service )[/li]
[li]Icons ([glow=red,2,300] including CUSTOM icons[/glow] ) on the remote interface. there is no preload of icons so all plugins icons from all authors should work[/li]
[li]Cache ( menu Optimization ) to save Icon & File DB in HTML local storage : not requires browser that suppors it ( HTML5 browsers should be ok )[/li]
[li]UI7 onoff toggle button , even for UI5 boxes[/li][/ul]

Warning : remote access is WAY LONG. it takes 2mn to get the answer to the request for user_data remotely… I ll see if I find workaround. for now, be patient the first 2mn

PDF: http://code.mios.com/trac/mios_ipx800/export/269/trunk/AltUI/doc.pdf
DOC: http://code.mios.com/trac/mios_ipx800/export/269/trunk/AltUI/doc.docx
FILES: in AltUI folder from
http://code.mios.com/trac/mios_ipx800/changeset/269/trunk?old_path=%2F&format=zip

Please find the attached screenprint of the console log.
It seems the on-off icons are missing
Checking with winscp, there is no folder ‘other’ under mios/www/…img

Does it explain the dashes as well?
The first device displaying a line is a temp sensor.

I am on UI5 (1.5.622)

Please find the attached screenprint of the console log.
It seems the on-off icons are missing
Checking with winscp, there is no folder ‘other’ under mios/www/…img

Does it explain the dashes as well?
The first device displaying a line is a temp sensor.

I am on UI5 (1.5.622)[/quote]

can you please try Version >= 273. since your version I radically changed icons so you should get the ON OFF even on UI5 and I fixed the tempFormat issue in 273. seems to be a parameter not availble on UI5.