Author Topic: ALTUI : Version Log  (Read 48950 times)

Offline amg0

  • Moderator
  • Master Member
  • *****
  • Posts: 3057
  • Karma: +206/-8
Re: ALTUI : Version Log
« Reply #15 on: September 13, 2015, 04:02:01 pm »

V 0.68.660
  • IE11 fix
  • display lux instead of % for light devices
  • try to fix room filter async issue reported (tbc)


« Last Edit: March 27, 2016, 05:22:11 pm by amg0 »

Offline amg0

  • Moderator
  • Master Member
  • *****
  • Posts: 3057
  • Karma: +206/-8
Re: ALTUI : Version Log
« Reply #16 on: September 14, 2015, 02:36:39 pm »
V 0.76.696
  • support of old new as variables for the LUA expression of a watch. old = place holder for old watched variable value and new = place holder for new watched variable value. Watch expression like (new==20) and (old==10) are valid. -- suggestion akbooer
  • Visual Hint of house mode changing delay -- suggestion Lmet
  • House mode icon size & position to avoid truncation
  • pointer cursor over clickable image for favorite, pause and device icon - suggestion Lmet
  • quick fix for parameter less action description in JSON control panel - bug alurker
  • Add urn:schemas-upnp-org:device:VContainer:1 dashboard - contribution dklinkman
  • Localization fix for multistring dashboard

Akbooer had a great example of using old new in a Watch LUA expression so giving this as an example here. This way you can trigger a scene based on things like the value has passed the threshold value of 42 going in a positive direction
Code: [Select]
(new > 42) and (old < 42)
« Last Edit: September 14, 2015, 02:45:25 pm by amg0 »

Offline amg0

  • Moderator
  • Master Member
  • *****
  • Posts: 3057
  • Karma: +206/-8
Re: ALTUI : Version Log
« Reply #17 on: September 15, 2015, 05:13:48 pm »
V 0.77.704
  • UPNP dashboard; - dklinkman
  • device rename fix : (rename area was too long to fit on narrow screen)
  • device altuiid displayed in d3 chart node name of parent child graph
  • multistring dashboard update

Offline amg0

  • Moderator
  • Master Member
  • *****
  • Posts: 3057
  • Karma: +206/-8
Re: ALTUI : Version Log
« Reply #18 on: September 19, 2015, 04:26:57 am »
V 0.77.708
  • Adding TracRev parameter to the http GET issues to trigger an ALTUI autoupdate, (for openLuup)
  • Fixing plugin number width field issue on plugin page, on themed version of ALTUI

Offline amg0

  • Moderator
  • Master Member
  • *****
  • Posts: 3057
  • Karma: +206/-8
Re: ALTUI : Version Log
« Reply #19 on: September 20, 2015, 03:35:32 pm »
v0.78.718
  • Blockly integration to edit watch lua expression with a graphical blocky language
  • Default click behavior on favorites on home is to open control panel

Blockly https://developers.google.com/blockly/ was shown to me by a known plugin author ( vosmont ) and I found it interesting to integrated for the device watch expression which must be a valid LUA syntax. not everybody is fluent with lua , especially the not equal (~= ) operator so it could be useful. there are many possibilities open by this editor but it will require quite some time & work to do. cf screen shots

IMPORTANT NOTES:
  • Watch variable syntax slight increases to add a field for the xml description of the Blocky. it is now a semi column ( ; ) separated string of substrings like
Code: [Select]
service,variable,deviceid,scene to run id, lua expresssion, xml blocky description
  • Editing the lua expression by hand is still possible, but in that case , when you open the blockly editor, it will be empty as Blockly cannot read back a texual expression and make a block based expression of it.
  • I have included localization files for en, fr and it as these are the 3 languages supproted by ALTUI so far, but it could be increased.
  • this integration includes new ALTUI files in the distribution which are slightly renamed files of the Blockly distribution
Code: [Select]
-rw-r--r--    1 root     root        214734 Sep 20 21:20 J_ALTUI_b_blockly_compressed.js.lzo
-rw-r--r--    1 root     root         16046 Sep 20 21:20 J_ALTUI_b_blocks_compressed.js.lzo
-rw-r--r--    1 root     root          8636 Sep 20 21:20 J_ALTUI_b_en.js.lzo
-rw-r--r--    1 root     root          9640 Sep 20 21:20 J_ALTUI_b_fr.js.lzo
-rw-r--r--    1 root     root          9389 Sep 20 21:20 J_ALTUI_b_it.js.lzo
-rw-r--r--    1 root     root         14171 Sep 20 21:20 J_ALTUI_b_javascript_compressed.js.lzo
-rw-r--r--    1 root     root          9782 Sep 20 21:20 J_ALTUI_b_lua_compressed.js.lzo

    « Last Edit: September 20, 2015, 03:37:35 pm by amg0 »

    Offline amg0

    • Moderator
    • Master Member
    • *****
    • Posts: 3057
    • Karma: +206/-8
    Re: ALTUI : Version Log
    « Reply #20 on: September 24, 2015, 02:19:37 pm »
    v0.80.735
    • new Watch type ( WhenSince ) to trigger a scene when a watch expression is true since n seconds
    • Blockly editor for this new Watch type so people can graphically create the watch expression
    • PLEG TS dashboard - dklinkman

    IMPORTANT NOTE:
    • Watch Variable syntax had to change to use # as a separator character instead of the ",". so if you had watches, you probably need to delete and redo them. Sorry about that ! 
    • in the Watch Expression you can use the new function trueSince , example : trueSince((new == 1), 10) means new value of the variable is equal to 1 and for 10 seconds in a row
    • But the Best is to use the BLockly editor, you have a screen shot attached
    « Last Edit: September 24, 2015, 03:58:21 pm by amg0 »

    Offline amg0

    • Moderator
    • Master Member
    • *****
    • Posts: 3057
    • Karma: +206/-8
    Re: ALTUI : Version Log
    « Reply #21 on: September 28, 2015, 03:05:57 am »
    V 0.81.744
    • Bug fix for Glass Sensor
    • Bug fix for custom pages without children
    • LuaTest Code persistency
    • Lastupdate and Now variable in watch & Blockly

    Offline amg0

    • Moderator
    • Master Member
    • *****
    • Posts: 3057
    • Karma: +206/-8
    Re: ALTUI : Version Log
    « Reply #22 on: September 28, 2015, 03:20:59 pm »
    V 0.82.754
    • Better Lua test window with display of return object and console output prints
    • Bug fix for Blockly Lua generator

    NOTE
    • the code must be the body of a lua function. with or without a return statement
    • anything can be returned, the return is displayed in JSON format in the return window
    • anything printed by the lua code via print statement is displayed in the output window
    « Last Edit: September 28, 2015, 05:07:26 pm by amg0 »

    Offline amg0

    • Moderator
    • Master Member
    • *****
    • Posts: 3057
    • Karma: +206/-8
    Re: ALTUI : Version Log
    « Reply #23 on: September 29, 2015, 04:38:29 pm »
    Version History
    v0.84.765 ( EDIT: was 754 )
    « Last Edit: September 30, 2015, 03:57:32 am by amg0 »

    Offline amg0

    • Moderator
    • Master Member
    • *****
    • Posts: 3057
    • Karma: +206/-8
    Re: ALTUI : Version Log
    « Reply #24 on: October 02, 2015, 03:25:31 am »
    v0.84.771
    • Blockly device variable block for watches
    • bugfix:Null lua startup code issue ( tbc )

    screen shot is here just for demo but not a likely scenario since the condition does not use the value of the watch.
    Remember that the watch is on the variable you have declared prior to enter the Blockly editor and that its values are "new" or "old"

    Offline amg0

    • Moderator
    • Master Member
    • *****
    • Posts: 3057
    • Karma: +206/-8
    Re: ALTUI : Version Log
    « Reply #25 on: October 04, 2015, 11:56:53 am »
    V 0.85.783
    • Device Icon size issue fix
    • New timeOf() method for watch and Blockly block to ease comparison of timestamps
    • Fix for localBootstrap when used in remote mode ( custom bootstrap was not loaded )

    NOTE: a watch expression can be something like this
    Code: [Select]
    trueSince(((timeOf(lastupdate)) <= (17*3600+45*60+0) and new == 1), 10)which means , the new value ( which triggered the watch to fire ) is 1 and the timestamp of when it happened ( lastupdate ) was before 17h45 and it stayed true for 10 seconds in a row.

    you already knew about trueSince() which means a condition is true and stays true even after x seconds. 10 in this example
    now there is timeOf() which keeps only the H M S part of a timestamp ( like the lastupdate or now ones ) and be able to compare with a hard coded time in the day in seconds.

    I added a Blockly custom block to make this easier, cf the screen shot where you can see how to create such a watch
    « Last Edit: October 05, 2015, 04:28:45 am by amg0 »

    Offline amg0

    • Moderator
    • Master Member
    • *****
    • Posts: 3057
    • Karma: +206/-8
    Re: ALTUI : Version Log
    « Reply #26 on: October 06, 2015, 08:12:28 am »
    V 0.85.790
    • ToNumber Blockly for easy conversion of device variable into numbers : ToNumber block can be in front of a device variable block.
    • Edit ability of scene action Group 0 timing : feature was missing
    • Optimize small screen home page layout : removed weather widet from screen, these kind of devices have meteo apps typically
    • Lun Test run handler runs in global context ( instead of ALTUI context ) - contribution of AkBooer
    • Saving device variable from Settings screens does not require a SAVE on UI7 box

    EDIT: read http://forum.micasaverde.com/index.php/topic,34150.0.html
    See screen shot examples
    « Last Edit: October 06, 2015, 02:09:50 pm by amg0 »

    Offline amg0

    • Moderator
    • Master Member
    • *****
    • Posts: 3057
    • Karma: +206/-8
    Re: ALTUI : Version Log
    « Reply #27 on: October 11, 2015, 11:24:59 am »
    v0.88.800
    • MultiSwitch device type use the configuration table like other devices for customization - dklinkman contribution
    • Lua Test code can make use of a pretty() function to display complex objects - akbooer contribution. cf example in screen shot
    • localbootstrap variable : must be a relative path to a bootstrap.min.css file

    Offline amg0

    • Moderator
    • Master Member
    • *****
    • Posts: 3057
    • Karma: +206/-8
    Re: ALTUI : Version Log
    « Reply #28 on: October 16, 2015, 05:38:17 am »
    V 0.89.813
    • Lua Handler in global context ( but result is not displayed in json any more - bug fix )
    • Add/Delete zWave device configuration variable
    • bugfix for scene running history list
    • Device key dates ( lastupdate etc ) grouped under the configuration section of the device control panel
    « Last Edit: October 16, 2015, 12:13:49 pm by amg0 »

    Offline amg0

    • Moderator
    • Master Member
    • *****
    • Posts: 3057
    • Karma: +206/-8
    Re: ALTUI : Version Log
    « Reply #29 on: October 17, 2015, 05:39:57 pm »
    V 0.90.819
    • bugifx: Upgrade dialog box width (tentative)
    • Favorites option to use VERA mode ( same favorites as UIx dashboard ) or ALTUI favorites ( per client )
    • ServerOptions : new variable to hold some options values when localstorage is not maintained
    • Better SetAttribute api for UI7 ( avoid the reload we have on UI5 )

    Notes
    this release is maintly about a workaround to the issue reported by aaron and some minor bug fix.
    A new option is available to choose between the ALTUI mode of Favorite management or the VERA mode of management.

    ALTUI mode is
    • Favorites are stored on each client so they can be different per client
    • But they are independant and different from VERA dashboard favorites

    VERA mode of management for Favorite is
    • Favorites are the same as those appearing on UIx dashboard
    • They are the same for all the client devices
    • Note that on UI5 vera, setting or unsetting a favorite will trigger Luup reload
    • and on UI7 vera , setting or unsetting a favorite is immediate. Note that Altui supports setting a scene as a favorite but UI7 does not , or at least does not show it, but it seems to work

    ALTUI mode of favorite need LocalStorage HTML to be kept. if you do clear HTML 5 LocalStorage for some reason, you ll loose your favorites & settings so this version introduces a new ALTUI device variable called "ServerOptions" which holds some (not all ) of the options that ALTUI normally keeps in LocalStorage.

    You do not have anything to do ,this variable will be initialized according to your settings in ALTUI and whenever you change them in ALTUI

    Key Take away:
    • if you clear localStorage regularly, you have no choice , you will have to work with VERA favotite mode. this option must be indicated in the ALTUI option page and it will be remembered in the ALTUI Vera device in the ServerOptions variable so that, next time ALTUI starts, it knows that you want to use VERA Favorites
    • if you can work with localStorage, that is the default of ALTUI and you can therefore use ALTUI mode for favorite and enjoy different favorites per client device and immediate on/off setting when you click on the start

    ServerOptions variable is the format optoinname1=val1,optionname2=val2,etc  where option is the text that appear in a bubble when you hover the mouse over the option control in the optoin page ( not shown on mobile device )
    I hope this is clear enough, it is a bit convoluted
    « Last Edit: October 17, 2015, 05:43:10 pm by amg0 »