Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] "Get LED brightness level" action for Shortcuts. #8

Open
theoccurrence opened this issue Feb 5, 2024 · 4 comments

Comments

@theoccurrence
Copy link

This really is the last feature request I'll do, I swear 😁

With the new and amazing shortcut actions I wanted turn the flashlight on and off with the same gesture (NiceBar X offers some Activator-like status bar actions), but to achieve that I need to know if the LEDs are currently on or off (or I have to save the state in a very roundabout way, which I want to avoid if possible). With the speed you implemented the other two actions I'm sure this is no problem for you 😉

@theoccurrence
Copy link
Author

Right now I'm doing it like this, which also works, but it's probably slower because I have to check an external variable.

https://www.icloud.com/shortcuts/0151e4a0b38c4ac78cb35f1e89ad0887

@PoomSmart
Copy link
Owner

@theoccurrence Technically, I'm not sure of the complexity involved yet. It sounds like your device is jailbroken and you just want to turn on the flashlight as amber. This maybe can be alternatively achieved by using Amber tweak plus some shortcut to change the flashlight mode.

@theoccurrence
Copy link
Author

@theoccurrence Technically, I'm not sure of the complexity involved yet. It sounds like your device is jailbroken and you just want to turn on the flashlight as amber. This maybe can be alternatively achieved by using Amber tweak plus some shortcut to change the flashlight mode.

Unfortunately I can't get amber to work on my iPhone. It shows the flashlight changing from normal to amber to both, but the flashlight itself doesn't change. And I know that it's supposed to change when changing the light level, but it doesn't work. I have yet to test if this is due to some tweak incompatibility.

@PoomSmart
Copy link
Owner

@theoccurrence It should work if the tweak is injected into mediaserverd process. You can try reinstalling the tweak to ensure the injection.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants