MiOS new plugin framework and documentation

Yeah, I had tried that too, but apparently not correctly, because yours worked as expected. :stuck_out_tongue: Thanks!

Edit: oh, I see what I did wrong. I accidentally used bzip2 compression instead of gzip compression. Oops! :grinning_face_with_smiling_eyes:

1 Like

Slightly ironic that the forums require .zip and won’t accept .gz, while EZLogic requires .gz and won’t accept .zip… :joy:

fixed :slight_smile:

thanks.

2 Likes

ezlo_protocols.tar.gz (7.3 KB

Fix confirmed and thanks!

3 Likes

It works uploading that ezlo_protocols.tar.gz file and says the plugin was installed successfully.

However trying to do it the other way, where you download the plugin from the Marketplace and then install it from your My Private Plugins area, that does not work at all for me. Clicking the install button does nothing in that case.

Is there an easy way to Delete or uninstall devices - plugins that might not be working correctly in MIOS & Vera Android mobile app, I have had issues doing this when something went wrong?
This would be something good to add with an update in the future.

You can “manage installations” for Plugins…so you can delete a plugin today by clicking on “Manage Installation”…
does that answer your question?


This works for downloads from market that will not install yet but when downloaded as a zip file and installed as a
.tar.gz file it will not show any options.

This is what it shows for devises installed.

For what it’s worth, clicking “uninstall” on the manage plugins works to remove the devices created by the plugin for me, even when downloaded as a zip file and installed as a .tar.gz :man_shrugging:

ibrewsterAtom Evangelist

20m

For what it’s worth, clicking “uninstall” on the manage plugins works to remove the devices created by the plugin for me, even when downloaded as a zip file and installed as a .tar.gz :man_shrugging:

Appreciate the advice & I know that is how it is supposed to work but something is keeping it from working right.
I am new to this so always looking for advice.
Thank you.

It does work, you can in the My Private Plugins area click the “Manage Installations” button and then click the “Uninstall” button. This will uninstall a plugin that was upload / installed via the .tar.gz file.

The plugin will remain listed in the My Private Plugins area however now not installed etc. You may want to then press the “Delete” button to remove it from the listing.

The thing that is NOT working is downloading a plugin from the Marketplace and then installing it. That does not work for me.

So what does happen for you when you go to the private plugins page, manage installations, and click “uninstall”? Do you get some sort of an error? Or are you saying that nothing happens when you do that?

@blacey

I’ve just been told by a dev we should not enter https:// or http:// in to that field.

So it should look like this instead.

The http:// you can see on the screen shot under where it says “Domain” is just a label I have been told. The label seems static set at http:// as I have turned on https:// and that label still says http://

In the Device Settings for the HTTP Manager you can turn on HTTPS.

However that begs the question, what if you have two different Meshbot rules using the HTTP Manager in their actions. One rules needs http:// and the other rule needs to use https://

Would both rules just work?

Also as you said there seems to be no way to store the HTTP Servers End Point data output to a local meshbot variable ??? Like you can in MSR.

HTTP Manager - Device Settings

image

It does explicitly state “Use https server instead of http”.

image

EDIT:

If you click on “Enable HTTP Server” from that drop down menu, I then see this:

image

So maybe now both http and https are enabled and turned on? But if you can’t enter http or https in to the field in the Meshbot action then that is no good.

@Osman please can you clarify.

So should we enter either http:// or https:// in to the field ?

image

image

1 Like

It was not showing anything in the installed “My Private Plugins” area but I tried reinstalling the zip- .tar.gz file again then it showed and everything worked like you said it should. Fixed.

Thank you.

2 Likes

Makes me wonder: what happens if you delete a plugin from the “My Private Plugins” area without first uninstalling it from your devices? Do you wind up with “orphaned” devices that you can’t then remove without first re-installing the plugin? I’ll have to try that and see… :slightly_smiling_face:

That is what happened, I didn’t realize it would create a out of sequence issue.
Your advise made me ask the same question so I tried it and that was it.
Again, Thank You.

That’s a very good question ! What happens ?

Indeed. I would consider this a bug, or at least “undesirable behavior”. Ideally, I’d say that either a) you shouldn’t be allowed to delete a plugin that is installed on one or more devices at all, or b) the act of deleting the plugin would automatically uninstall it from all devices first.

*[quote=“ibrewster, post:38, topic:218744, full:true”]

Indeed. I would consider this a bug, or at least “undesirable behavior”. Ideally, I’d say that either a) you shouldn’t be allowed to delete a plugin that is installed on one or more devices at all, or b) the act of deleting the plugin would automatically uninstall it from all devices first.
[/quote]

My original thinking was that the act of deleting the plugin would automatically uninstall it from all devices too, a common assumption that was incorrect.

1 Like

When you uninstall the plugin, and if the plugin has the "“teardown”: “scripts/teardown”, section configured properly and has some cleanup code in it, it removes al lthe devices associated with it.
Our protocol plugin is configured that way so it should remove all devices.