[quote=“reneboer, post:648, topic:185570”][quote=“amg0, post:646, topic:185570”][quote=“reneboer, post:645, topic:185570”]Hi amg0,
I have one more for reading the dutch Smartmeter (electricity and gas usage) but I will be off line after today for a while, so that has to wait.
Also not quite sure how to make an update for the Harmony. As that can have up to 25 buttons on the panel that do fit on the normal Vera UI, but not on the compact ALTUI. May limit it to the first four or so. I’ll think on that.
What I also am not sure on is how the make the tabs work that use JS for UI7 (Settings, Devices, etc. for mine) can that be done? If so how? now it is just crash and burn.
Last question is on icons. For a lot of devices I am not getting the icons, even for standard z-wave ones. For one binary light I see the light bulb, for the next I do not. Any idea?
Cheers Rene[/quote]
for the 25 buttons, either keep the best, or make a cascade button which popups a small window with the 25 buttons ?
The JS tab is allways difficult. possible reasons of failure are:
-
first of all, if possible, only use jquery. if you do use other framework ( like prototype ) I have then to rewrite the source code on the fly ( see _fixScriptPostLoad() in J_ALTUI_uimgr )
-
maybe my simulation layer of Jsonp , or UI7 api , or UI5 api is incomplete , we then need to figure out which api is not correct and try to fix it so that it behaves like on VERA. it is possible but a bit tricky to debug
for the Icons, I also have some issues, it seems my latest UI7 firmware upgrade deleted lots of icons installed by plugins before and either I have to reinstall the plugin or fix the icon by hand. normally ALTUI takes the icon path from the device JSON, but here again, that code is tricky and could be wrong. the best is to get examples, one by one , see which icon is documented in the JSON and see why altui is not showing it ( by looking at the url it tries to open ). ALTUI in debug mode gives more information about it, or you can put a Javascript conditional breakpoint on function _getDeviceIconPath(device) to stop when device.id==nn then step through.
I do not have your devices but maybe I can try your plugin, tell me which plugin it is and I ll try to install it on my test UI5 box[/quote]
Hi amg0,
On UI7 JS I get that the library Utils is not found. I use that to write error messages to the console in UI7. Maybe I should just change those to console.log but the Utils function is used in MiOS own Philips hue plugin too. I do not know much about JQuery and I’m not using it. If that means I use prototype, no idea ;D. I can see if I can do some JQuery and see what happens as it is not much now. You can find my plugin code here [url=http://forum.micasaverde.com/index.php/topic,28689.0/topicseen.html]http://forum.micasaverde.com/index.php/topic,28689.0/topicseen.html[/url].
Cheers Rene[/quote]
I will take care of Utils with a stub implemented in AltUI UI compatibility layer. can you tell me what this call is supposed to do ? Utils.getLangString("ui7_device_cpanel_details_saved_success","Device details saved successfully.")
I have also seen some calls which are not clear to me. are they documented calls of api7 ? can you tell me what they are and I can try to implement them too.
api.ui.updateDevice(deviceID,ipa,'application.userData.devices['+devicePos+'].ip');
api.ui.startupShowModalLoading();
Lastly, where is myInterface.hideModalLoading() defined ? is this a MCV object or yours ?
I can then give you a version to try to improve compatibility