We have moved at community.getvera.com

Author Topic: ALTUI : Alternate App Store  (Read 22671 times)

Offline akbooer

  • Beta Testers
  • Master Member
  • *****
  • Posts: 6387
  • Karma: +292/-70
  • "Less is more"
ALTUI : Alternate App Store
« on: June 18, 2016, 06:14:17 am »
From this release of AltUI: V 1.58.1763, you now have an alternative way to install and update plugins on either your Vera or openLuup systems.

Under Vera, you will need to install a plugin in order to use the AltAppStore, but that's not (yet) available from the MiOS App Store itself, so you have to install it manually. 

Attached is a A Lua script may be run in UI5 or UI7 Lua Test window which will download AltAppStore for the first time on those systems. openLuup systems do not need this since the plugin is part of the system install.

Note that you should now use the latest version available here: https://github.com/akbooer/AltAppStore/blob/master/altappstore_install.lua

Reload, and you should see the new plugin.  You don't interact directly with the plugin, it's simply there to respond to requests from the App Store under the More > App Store menu.  It displays the name of any plugin it downloads and occasionally suggests that a restart may be required to complete the update.

Acknowledgements:

Whilst a lot of thinking about this in general has been going on for a while, the final trigger was probably this discussion: An alternate Marketplace ?

Thanks to icons8 for the icon



The original files attached here were outdated and have been removed...

* altappstore_install.lua (1.25 kB - downloaded 407 times.)
* new_altappstore_install.lua (1.3 kB - downloaded 121 times.)
« Last Edit: March 14, 2019, 05:46:01 am by akbooer »
3x Vera Lite-UI5/Edge-UI7, 25x Fibaro, 23x TKB, 9x MiniMote, 2x NorthQ Power, 2x Netatmo, 1x Foscam FI9831P, 9x Philips Hue,
Razberry, MySensors Arduino, HomeWave, AltUI, AltHue, DataYours, Grafana, openLuup, ZWay, ZeroBrane Studio.

Offline akbooer

  • Beta Testers
  • Master Member
  • *****
  • Posts: 6387
  • Karma: +292/-70
  • "Less is more"
Re: ALTUI : Alternate App Store
« Reply #1 on: June 18, 2016, 06:45:27 am »
Publishing a Plugin in the AltAppStore

To publish a new plugin, or to edit an existing one, go to the More > App Store page and click on the Publish button at the lower left of the screen.

This takes you to a screen which starts with a Publish Application section, allowing you to create a new one, or modify an existing one after selecting a version, and below that is an extended menu of items (see attachment.)  There's a fair amount to fill in, but that's because the UPnP structures required to define a plugin are quite complex.  However, any seasoned application developer who has used the MiOS App Store to publish will be familiar with this, and hopefully find it a bit more user-friendly.


Edit Application Properties

App IDa short identifier for the plugin.  If this is one which is already in the MiOS App Store, it would be good to use the same numeric ID
App Titlethe title of your plugin.  It will also be used as the device name for the first plugin device created by the install process.
Descriptionslightly longer (but still short) text describing the plugin.  This appears on the banner on the App Store page.
Instructionsfully-qualified URL pointing to a page (often GitHub) with more extensive documentation.
AllowMultiple0 or 1 flag indicating the possibility of having multiple plugin devices.
AutoUpdate0 or 1 flag.  Unused at present, since there is no auto-update yet, except for AltUI itself, which checks for new versions on page refreshes.
IconHTTP reference to a xxx.png icon file
VersionMajorshort, often numeric, version number
VersionMinorditto


Device

DeviceFilenameUPnP Device D_xxx.xml file
DeviceTypeUPnP Device type, eg. urn:schemas-upnp-org:device:altui:1
ImplFileUPnP Implementation I_xxx.xml file
Invisible0 or 1 flag indicating device visibility (keep this 0)


GitHub

patternthis may be blank, but otherwise contains a Lua string pattern which matches ALL the files you want to download from your GitHub repository, which often contains lots of other things (documentation, licence, folders, ...) which you don't want to download.  If you have a bit of discipline in naming your files (eg. AltUI files all contain "ALTUI") then this is easy.  If you stick to the traditional Vera naming convention for device files, then this can be "[DIJLS]_%w+%.%w+"
sourcea string of the form "amg0/ALTUI", being simply <your username>/<your GitHub repository for the plugin>
foldersthis may be blank, in which case the files matching the pattern (above) are downloaded from the root folder of the repository.  However, multiple folders may also be defined, the top level one being simply "".  Example: "luup_files, more_files" or even  ",subfolder" for top level + subfolder
releaserelease name or GitHub tag or branch name


Vera Store

releaseMCV version number, See the attached screen to determine the version number of your plugin version in MCV store...

« Last Edit: November 03, 2016, 02:50:58 am by amg0 »
3x Vera Lite-UI5/Edge-UI7, 25x Fibaro, 23x TKB, 9x MiniMote, 2x NorthQ Power, 2x Netatmo, 1x Foscam FI9831P, 9x Philips Hue,
Razberry, MySensors Arduino, HomeWave, AltUI, AltHue, DataYours, Grafana, openLuup, ZWay, ZeroBrane Studio.

Offline Tommi

  • Sr. Newbie
  • *
  • Posts: 35
  • Karma: +0/-0
Re: ALTUI : Alternate App Store
« Reply #2 on: July 20, 2016, 08:17:14 am »
I have try to "publish" plugin from guthub (arduino gateway) and after reloading openluup it is no longer possible to see all plugins from AppStore (blank page and no plugins)
where data is stored or how to reset this to "default" ? i have already try to remove all device files and recreate it, no change.

Offline akbooer

  • Beta Testers
  • Master Member
  • *****
  • Posts: 6387
  • Karma: +292/-70
  • "Less is more"
Re: ALTUI : Alternate App Store
« Reply #3 on: July 20, 2016, 11:02:37 am »
I can try and fix that.  But I think that plugin owners should be the ones to publish.  Did you get hek's permission?

It turns out that openLuup is able to load MySensors without it being in the App Store anyway.  I can post those instructions when I'm back on my development system.
3x Vera Lite-UI5/Edge-UI7, 25x Fibaro, 23x TKB, 9x MiniMote, 2x NorthQ Power, 2x Netatmo, 1x Foscam FI9831P, 9x Philips Hue,
Razberry, MySensors Arduino, HomeWave, AltUI, AltHue, DataYours, Grafana, openLuup, ZWay, ZeroBrane Studio.

Offline d55m14

  • Sr. Member
  • ****
  • Posts: 449
  • Karma: +8/-1
Re: ALTUI : Alternate App Store
« Reply #4 on: July 20, 2016, 11:22:22 am »
Hi akbooer,

I don't see the ALTUI Appstore (blank page) since this morning. I've installed a basic RPI-Razberry-Openluup-ALTUI and was all ok.

tnks

donato

Offline amg0

  • Moderator
  • Master Member
  • *****
  • Posts: 3174
  • Karma: +210/-8
Re: ALTUI : Alternate App Store
« Reply #5 on: July 20, 2016, 11:34:40 am »
Hi akbooer,

I don't see the ALTUI Appstore (blank page) since this morning. I've installed a basic RPI-Razberry-Openluup-ALTUI and was all ok.

tnks

donato

your published plugin did not have a title. it crashed the app. I removed your plugin from the store for now

Offline d55m14

  • Sr. Member
  • ****
  • Posts: 449
  • Karma: +8/-1
Re: ALTUI : Alternate App Store
« Reply #6 on: July 20, 2016, 11:36:42 am »
Hi akbooer,

I don't see the ALTUI Appstore (blank page) since this morning. I've installed a basic RPI-Razberry-Openluup-ALTUI and was all ok.

tnks

donato

your published plugin did not have a title. it crashed the app. I removed your plugin from the store for now

Hi amg0,

tnks

but I didn't publish any plugin.

:-)

Offline amg0

  • Moderator
  • Master Member
  • *****
  • Posts: 3174
  • Karma: +210/-8
Re: ALTUI : Alternate App Store
« Reply #7 on: July 20, 2016, 12:27:11 pm »
Hi akbooer,

I don't see the ALTUI Appstore (blank page) since this morning. I've installed a basic RPI-Razberry-Openluup-ALTUI and was all ok.

tnks

donato

your published plugin did not have a title. it crashed the app. I removed your plugin from the store for now

Hi amg0,

tnks

but I didn't publish any plugin.

:-)
Ok no pb, someone did. No issue.

Offline akbooer

  • Beta Testers
  • Master Member
  • *****
  • Posts: 6387
  • Karma: +292/-70
  • "Less is more"
Re: ALTUI : Alternate App Store
« Reply #8 on: July 20, 2016, 01:20:31 pm »
It turns out that openLuup is able to load MySensors without it being in the App Store anyway.  I can post those instructions when I'm back on my development system.

If you use the Release 8.5 candidate, on the development branch, that should show the MySensors plugin on the Plugins page.  Simply press the adjacent Uppdate button to install the app... it won't even do a reload, but the app should come up and running.  It will, of course, need configuration. 

If you need further discussion on this, we should switch to the openLuup board.
3x Vera Lite-UI5/Edge-UI7, 25x Fibaro, 23x TKB, 9x MiniMote, 2x NorthQ Power, 2x Netatmo, 1x Foscam FI9831P, 9x Philips Hue,
Razberry, MySensors Arduino, HomeWave, AltUI, AltHue, DataYours, Grafana, openLuup, ZWay, ZeroBrane Studio.

Offline reneboer

  • Beta Testers
  • Hero Member
  • *****
  • Posts: 1574
  • Karma: +110/-31
Re: ALTUI : Alternate App Store
« Reply #9 on: August 24, 2016, 12:45:23 pm »
Hi akbooer,

I just tried adding the Harmony Hub Control plugin and I think I got it right but no files are getting downloaded looking at the logs.

First I tried just the Vera Store version, leaving all GitHub fields blank. Nothing happening, but maybe that only works on a Vera it self and not openLuup.

Then I added the GitHub details and it now creates an entry in the plugins list and a device gets created. However, it is not working. When I look at the log I am not seeing anything being downloaded.

The GitHub is reneboer/vera-Harmony-Hub, branch is master, and the code is in folder chm-ludl and the icons in folder icons. I left the pattern empty as all files need to get downloaded.

What am I doing wrong?

Update: i found the instruction for the sub folders is not entirely correct. You have the specify the folder names without brackets, quotes and spaces. I.e. in my case : chm-ludl,icons and not [ "chm-ludl", "icons"]

So, Harmony lovers, you can now install on openLuup with a single click. Nice..  :D

Cheers Rene
« Last Edit: August 24, 2016, 02:50:28 pm by reneboer »
2xVeraLite, VeraEdge, openLuup, ALTUI, 20 switches, 10 dimmers, 20 sensors, 10 scene controllers, 1 Harmony Hub, many plug-ins. Not enough time.

Offline akbooer

  • Beta Testers
  • Master Member
  • *****
  • Posts: 6387
  • Karma: +292/-70
  • "Less is more"
Re: ALTUI : Alternate App Store
« Reply #10 on: August 24, 2016, 02:52:12 pm »
Great.  I love it when problems are solved by the time you first read of them!
3x Vera Lite-UI5/Edge-UI7, 25x Fibaro, 23x TKB, 9x MiniMote, 2x NorthQ Power, 2x Netatmo, 1x Foscam FI9831P, 9x Philips Hue,
Razberry, MySensors Arduino, HomeWave, AltUI, AltHue, DataYours, Grafana, openLuup, ZWay, ZeroBrane Studio.

Offline Aaron

  • Hero Member
  • *****
  • Posts: 1985
  • Karma: +61/-193
Re: ALTUI : Alternate App Store
« Reply #11 on: August 29, 2016, 11:31:01 pm »
I just installed the Alt App Store... that went fine and seems to work BUT when I try to install beta 1.99 while the button turns green and says 'success' - the update never installs?

Offline akbooer

  • Beta Testers
  • Master Member
  • *****
  • Posts: 6387
  • Karma: +292/-70
  • "Less is more"
Re: ALTUI : Alternate App Store
« Reply #12 on: August 30, 2016, 02:41:48 am »
I just installed the Alt App Store... that went fine and seems to work BUT when I try to install beta 1.99 while the button turns green and says 'success' - the update never installs?

So it sounds like some things work and others don't?  Can you be a bit more specific?  This is on Vera or openLuup?

The download for AltUI is 2 Mbyte, or so, and can take over a minute - did you wait long enough?

The next version of the AltAppStore plugin will have some sort of progress indicator to make things clearer.
3x Vera Lite-UI5/Edge-UI7, 25x Fibaro, 23x TKB, 9x MiniMote, 2x NorthQ Power, 2x Netatmo, 1x Foscam FI9831P, 9x Philips Hue,
Razberry, MySensors Arduino, HomeWave, AltUI, AltHue, DataYours, Grafana, openLuup, ZWay, ZeroBrane Studio.

Offline Aaron

  • Hero Member
  • *****
  • Posts: 1985
  • Karma: +61/-193
Re: ALTUI : Alternate App Store
« Reply #13 on: August 30, 2016, 04:02:16 pm »
I just installed the Alt App Store... that went fine and seems to work BUT when I try to install beta 1.99 while the button turns green and says 'success' - the update never installs?

So it sounds like some things work and others don't?  Can you be a bit more specific?  This is on Vera or openLuup?

The download for AltUI is 2 Mbyte, or so, and can take over a minute - did you wait long enough?

The next version of the AltAppStore plugin will have some sort of progress indicator to make things clearer.

I'm using Vera3 UI5 and AltUI 1.60.1810

In AltUI...
'Misc' -> 'Check for Updates' result is "You already have the latest version"
Alt AppStore and click the blue Alt button it responds... "u:update_pluginResponse": { "JobID": "1543" }

Offline akbooer

  • Beta Testers
  • Master Member
  • *****
  • Posts: 6387
  • Karma: +292/-70
  • "Less is more"
Re: ALTUI : Alternate App Store
« Reply #14 on: August 30, 2016, 05:26:51 pm »
I'm using Vera3 UI5 and AltUI 1.60.1810

I've just checked this out on a UI7 system and it worked OK, upgrading build 1810 to 1812, which is the 1.99beta version.

Quote
In AltUI...
'Misc' -> 'Check for Updates' result is "You already have the latest version"

Yes, I believe that's correct, because it doesn't know about the beta version in the AltAppStore, it's only checking the tagged releases in GitHub.

Quote
Alt AppStore and click the blue Alt button it responds... "u:update_pluginResponse": { "JobID": "1543" }

Yes, that's good, it means the upload has started.  The question is what happens next?  It's at this point it would be very good to check the logs, because the plugin should log every file downloaded, or any error that it encounters.

You have, of course, done a refresh of your browser and checked again.
3x Vera Lite-UI5/Edge-UI7, 25x Fibaro, 23x TKB, 9x MiniMote, 2x NorthQ Power, 2x Netatmo, 1x Foscam FI9831P, 9x Philips Hue,
Razberry, MySensors Arduino, HomeWave, AltUI, AltHue, DataYours, Grafana, openLuup, ZWay, ZeroBrane Studio.