-
Notifications
You must be signed in to change notification settings - Fork 34
Feature suggestion: Send update intent / Tasker interface #55
Comments
Will definitely do. What extras would you need along with the change? And how would you like it to work when #17 is implemented? Should the intent be launched whenever the message changes (which will happen cyclically even if the weather doesn't change), or just when the weather changes? |
Good question! According to http://tasker.dinglisch.net/userguide/en/intents.html you can send multiple extras which are all accessible in Tasker. So maybe you just send the intent whenever the message changes and also include a variable with some weather code. This way, the Tasker script can decide to not do anything if the weather code is the same as before. The texts should be sent in 2 ways:
|
I'm scheduling this for v3.0. Tentatively, I'll have this intent launched whenever the widget gets updated: Action:
How would that sound to you? I could pass along the raw HTML instead of the pre-parsed CharSequence, but it'd only be more difficult in the script side to work with it. If the script doesn't care about coloring, it's just as fast as casting the CharSequence to a String to drop all color spans. |
I'm not really sure if Tasker provides the necessary methods to cast the SpannedString to a normal String without formatting. But for the moment this should be sufficient. If not, you can maybe add |
Oh ok I'm not familiar with Tasker's scripting. If you want I'd ask you for |
Sure, it'd be a pleasure! 👍 |
Great then! I'll update this once this is being worked on. |
Send an intent on changes to the displayed texts so that we can use a Tasker "Received Intent" filter, to re-use the text in Tasker or maybe even forward it to a custom Zooper Widget.
The text was updated successfully, but these errors were encountered: