I have some Tasker variables (profile status, unread notifications, battery level, etc.) that I would like displayed…

I have some Tasker variables (profile status, unread notifications, battery level, etc.) that I would like displayed on the home screen as formatted text (using Tasker variables to control font style, color, size) on a LLX home screen. These would then be refreshed by a Tasker-controlled cycle

Would anyone here have a sample script I can reference that shows how we can use the LL.getEvent().getData() event to achieve this?

I know this can be done with Zooper, Minimalistic text, etc. I’m trying to avoid widgets altogether because they tend to be RAM-hungry and slow after adding one too many

]]>

8 Commentsto I have some Tasker variables (profile status, unread notifications, battery level, etc.) that I would like displayed…

  1. Anonymous says:

    < ![CDATA[

    LL.getItemById(01234).setLabel(LL.getEvent().getData());



    Where 01234 needs to be replaced with the id of the item whose label you want to change.


    As I said this will change the label of the item with the data passed to the script.


    I don’t have tasker so I can’t help in the ‘send the data’ part, only in the ‘receive and show’.

    ]]>

  2. Anonymous says:

    < ![CDATA[

    Good idea.


    Have a look at this link :


    http://www.pierrox.net/android/applications/lightning_launcher/wiki/doku.php?id=working_with_tasker



    There is a short paragraph at the beginning that explains the stuff on the Tasker side. Hope this helps.

    ]]>

  3. Anonymous says:

    < ![CDATA[

    TrianguloY Pierre Hébert thank you! have replaced two widgets (weather and launcher) so far, going to try to get rid of Zooper altogether



    does anyone happen to have a sample script for a digital clock to share?

    ]]>

  4. Anonymous says:

    < ![CDATA[

    You don’t need a script for that.


    Add item -> dynamic text


    Then long click, customize item, more and modify it as you want (for a clock you need to choose ‘date & time’)

    ]]>

  5. Anonymous says:

    < ![CDATA[

    Yes I tried that, but the dynamic text feature is not very flexible. To maximize screen real estate, I’m using each digit of the clock as separately as a notification counter, so I’d like to manipulate the format of each digit (hh:mm) separately. Dynamic text doesn’t seem to allow me to do that

    ]]>

  6. Anonymous says:

    < ![CDATA[

    Well, you can use two dynamic texts, one for hh and another for mm (and an icon’s label for the ‘:’ )



    The problem with scripts is the refresh time. It is possible, but I’m not really sure if a timeout, or calling it from tasker, or something will consume not so much battery.



    Pierre Hébert: for this purpose what do you think is better(taking about battery)? What makes the dynamic text a better choice?

    ]]>

  7. Anonymous says:

    < ![CDATA[

    Dynamic text is extremely cheap. Using one for each part is not a problem (for performance).


    Calling a short script every second is not expensive neither, as long as what it is doing is not expensive. You should ensure that the script is paused when the item (or the container) is paused though. So that’s a bit more work.


    Involving Tasker is much more expensive as it requires to have two apps in memory, even if only one is on top, and furthermore Tasker does not know when Lightning is paused. Just for the clock this is quite an heavy path.

    ]]>

  8. Anonymous says:

    < ![CDATA[

    Thanks for your help! Will experiment more to see how I can get the latency lower

    ]]>

Leave a Reply

Your email address will not be published. Required fields are marked *