Giter Site home page Giter Site logo

Comments (7)

Ayagikei avatar Ayagikei commented on June 1, 2024

Hello, our APIs design is currently a generic design.

APIs calls are jumped through URL Schemes, and event callbacks support broadcasting 📢 events.

This means we don't need to do special adaptations for Tasker/Macrodroid or other automated tools.

As long as they support both of the above features. We have verified that Macrodroid supports calling APIs.

Regarding event broadcasting (which is also called "received intents" in Tasker), we will add it to the document after simple verification.

from lifeup.

Khozoa avatar Khozoa commented on June 1, 2024

Hello again, and thanks for replying too quickly.

I was quite sure it Does exist, but unfortunately I didn't figure it out myself..
I'm looking forward to see an example in your next document's update.
Thanks again !

from lifeup.

Ayagikei avatar Ayagikei commented on June 1, 2024

Hi, very sorry for the late reply.

Here is the usage tutorial, we take the query coin API as an example:

  1. Create a item and add API effects: lifeup://api/query?key=coin&broadcast=app.lifeup.query.coin

Because this is for use with automation tools, you need to add the "broadcast" parameter to send the intent as a broadcast. (Automated tools generally only accept this type of intent). The value of the broadcast parameter can be any string, which is only used to distinguish broadcast types.

  1. Open Macrodroid, switch to the Macros tab, create a new Macro, and name it something.
  2. Add a trigger: Device Events -> Intent Received
  3. Configure this trigger
    Action: app.lifeup.query.coin (action is the value of the broadcast parameter above)
    Extra name: value (Sourced from API Documentation)
    Extra value to match: * (we match all values)
    Save to variable: coin_value (Name it arbitrarily, here is just an example)
  4. Add an action Notification -> Popup Message
  5. Configure this action
    Pop up message: coin value is {lv=coin_value} (Macrodroid will replace the {lv=coin_value} as the real value)
  6. Save the macro.

After using the item, you should see the current value pop up from the Macrodroid.
The final configuration effect can be viewed in the screenshot I uploaded.

image
image
image
image

from lifeup.

Ayagikei avatar Ayagikei commented on June 1, 2024

By the way, thank you very much for sharing the API-related items. :D

from lifeup.

Khozoa avatar Khozoa commented on June 1, 2024

from lifeup.

Khozoa avatar Khozoa commented on June 1, 2024

from lifeup.

Ayagikei avatar Ayagikei commented on June 1, 2024

Hello again, Thank you for your reply! I really appreciate it. As for the API related item, I hope it helps others discover how decent your app is and who knows... Maybe these small steps I make as a user could bring you more success in your career. I'll do my best to be a good user of your app and, why not, a good friend too! Best regards.

On Fri, Oct 7, 2022, 18:11 AyagiKei @.> wrote: By the way, thank you very much for sharing the API-related items. :D — Reply to this email directly, view it on GitHub <#43 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/A2MJBZ74LVOAALUSC3YW4MLWCBKVDANCNFSM6AAAAAAQWEPM6Y . You are receiving this because you authored the thread.Message ID: @.>

Sure!
Feel free to contact us anytime :D
We will also continue to update and maintain LifeUp, which still has a lot of room for improvement and development plans.

I'll update that step into the documentation later.

from lifeup.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.