r/AutomateUser • • 6d ago

Ideas

Hey guys. I'm new to automation, and I just downloaded the automation app on my Android. Any ideas on how to use it?
For now I'll make it useful for opening/closing a sleep analysis app without interacting with the phone in the morning, but I'm open for ideas!
Thanks

1 Upvotes

10 comments sorted by

2

u/4onen 5d ago

I like to track what I actually do throughout a day, so I made an automation that I can tap to name an event start, then present a notification I can tap when I'm done with the event. Goes right into my Google Calendar. Been incredibly effective for years.

I also did the same three to five steps every time I went to sleep for years and years, so I codified that into an automation I can start with one tap.

I have LLMs running on my phone in the Termux terminal emulator, but I didn't like typing all the setup commands every time I logged in. I wrote a script that launches the LLM and then had an automation launch that script.

There's a handful of additional things, but I don't want to put them on the public internet.

2

u/DementedJay 5d ago

Ok, now I'm curious about running LLMs on your phone via termux.

1

u/thealgorithm29 4d ago

Its easy to setup

1

u/DementedJay 4d ago

You're right, I'll just ask ChatGPT. 🙄

1

u/4onen 3d ago

Android is Linux. Termux is a terminal emulator for that linux. Just install the necessary build tools, build llama.cpp from source, and play around.

That said, while I did manage to find the narrow set of configurations necessary to run things on my phone's GPU (OpenCL -- I don't think I can do Vulkan without rooting) it wound up running slower than the phone's CPU because I chose incorrectly when shopping phones.

1

u/DementedJay 3d ago

Somewhat. I'm aware of what Android is under the skin. But it's also very sandboxed. Which is why I'm wondering if the goal is simply to run an LLM or actually have it do things. The former is easy. The latter can be a much bigger challenge.

1

u/4onen 3d ago

It can be setup to do as much as Termux can do, which depends on the permissions you give it. Kinda like Automate tbh. I think through a Tasker intent integration you can cause Termux to trigger Automate flows, but at that point you're going to a kind of absurd levels of effort.

That said, nah, I just set the llama.cpp up to chat with it and show people how weak a device can run things.

There was this one time I used my phone as extra RAM for a laptop LLM via llama-RPC over a USB hotspot cable. It actually worked. It maintained about 2/3rds the tok/s versus my laptop alone with 4GB of RAM offloaded, but dropped the computation cost on the PC to 1/3rd because of all the time it spent waiting for the RPC calls. As soon as I got a laptop with a GPU, though, that became completely silly and unnecessary.

1

u/Godeos64_ 5d ago

Hmm, you could try creating an automation that greets all of your friends good morning in the morning.

Or you could make a modular automation that controls when other automations run, for example you make a decision loop that decides which automations to run depending on where you are.

Like turning on your home lights on when you're back!

1

u/tom_flaske 5d ago

I made a calculator for a game, where I am asked to input certain values, and then it does some calculation and shows the result. You can do pretty much anything you can think of (except toggling hotspot, unfortunately!).

1

u/thealgorithm29 4d ago

Here i made some awesome automations But ill tell you some ideas Battery alerter 20% or 80+%, Reminders and automating that thing in that specific time, UI automations, Weather reports, Fetching data through api at specific time, Automating UI like opening apps at specific time(s), Many more.