Add Tasker Widget control script #4

Merged
sriramsv merged 1 commits from tasker-widget into master 2022-08-27 15:20:17 -04:00
sriramsv commented 2022-08-27 15:13:52 -04:00 (Migrated from github.com)

Adding a widget that can control adding/removing scripts from tasker tasks
This listens to broadcast intents from the tasker using the AIO launcher tasker API and adds or removes widgets on the home screen.

Few issues that I faced:

  • Sending broadcast with script name set to * works, but using the widget name tasker widget control or tasker-widget-control didn't work
  • I had found some widget names by trial and error e.g- using the widget name news feed or news or newsfeed didn't add or remove the news feed widget. Need help figuring those out
Adding a widget that can control adding/removing scripts from tasker tasks This listens to broadcast intents from the tasker using the AIO launcher tasker API and adds or removes widgets on the home screen. Few issues that I faced: * Sending broadcast with script name set to `*` works, but using the widget name `tasker widget control` or `tasker-widget-control` didn't work * I had found some widget names by trial and error e.g- using the widget name `news feed` or `news` or `newsfeed` didn't add or remove the news feed widget. Need help figuring those out
zobnin commented 2022-08-27 15:22:26 -04:00 (Migrated from github.com)

Issues:

  1. You need to use script name with extension.
  2. I will publish internal widgets names later. For now you can use main/on-off-widget.lua script as reference.
Issues: 1. You need to use script name with extension. 2. I will publish internal widgets names later. For now you can use `main/on-off-widget.lua` script as reference.
sriramsv commented 2022-08-27 15:51:53 -04:00 (Migrated from github.com)

@zobnin Also, I would like to hide this widget from the home screen since it doesn't do much sitting around there. will the script continue to function in the background if there was a way to hide it?

@zobnin Also, I would like to hide this widget from the home screen since it doesn't do much sitting around there. will the script continue to function in the background if there was a way to hide it?
zobnin commented 2022-08-27 15:57:44 -04:00 (Migrated from github.com)

There is methods aio:hide_widget() and aio:show_widget(). But please don't use it in the public scripts. It is not documented for a reason.

There is methods aio:hide_widget() and aio:show_widget(). But please don't use it in the public scripts. It is not documented for a reason.
Sign in to join this conversation.
No description provided.