Comments (7)
from easer.
@ildar hi. Thanks for that. I'll look in to it, but the WiFi was an example, so it's probably a bit too specific for my needs.
from easer.
Yup, I like this idea :)
Actually I've thought about it once, but can't decide the proper semantics for this kind of events. Suggestions wanted:
Currently events are tree-structured. A child event will be checked only after all its parents (parent, grandparent, ...) are satisfied. Each event (together with its type) has a mark to control whether its child events should be sticky / put into top level (e.g. exactly at a time will have a different mark than after a time).
Are there any ways to keep the current semantics and add the ability to control something (and reverse it) after some time? I can think of the situation that we may want to open wifi every 10 minutes to sync data and then (maybe 5 minutes later) close it to save battery.
If the old semantics can't satisfy the new need, how should the new semantics be designed?
from easer.
@renyuneyun I would think it would just be a new event type like "TIme" and "Date", and the "repeating" event would simply be an integer that runs on an integer, every x minutes or x hours.
from easer.
@yamatt Then what about reversing / reverting or pairing that operation?
I mean, for example, turn on WiFi every 10 minutes, and then turn it off 2 minutes later.
I'm still not sure about what the semantics should be...
from easer.
Hi, just bumping log to get the follow up in the thread.
from easer.
Finally, that is implemented :)>
They are added in v0.5. (Thought due to a strange f-droid bug, the date when v0.5 enter the repo is unpredictable... Maybe a few days later, maybe weeks...)
The implementation is in the form of a "timer" which simply delays the detection and execution of its successors.
Therefore, if we want to connect to cellular network for 1 minute and then sleep for 10 minutes, the senario will be:
0. Add an event (A) checking that we have left home
- Add an event checking the network type is cellular, and set the parent to A
1.5. Add an event using timer of 1 minute, and active a profile which turns cellular data off - Add an event checking the network type is not cellular (or "none" or everything else if you like), and set the parent to A
2.5. Add an event using timer of 10 minute, and active a profile which turns cellular data on
They will work as intended in principle :)
I'm closing this issue. Feel free to open new issues if that doesn't work well.
from easer.
Related Issues (20)
- wifi or data does not work
- [FR] Monitor directory HOT 4
- Improving the usage example HOT 1
- [FR] "wait" profile command
- Wiki pages vandalized HOT 1
- [FR] Multiple conditions?
- Crash when opening `Pivot`
- Download link is dead.
- FeatureRequest: Add option to scan for available networks and connect to a better one if in range
- [FR] Wi-Fi disconnection trigger
- [FR] dynamics string sanitization
- [FR] Condition valid for <x> time (duration condition)
- Can I initiate power off/on, enabled/disable battery saving mode? HOT 1
- Broadcast not accepted by Android system HOT 2
- Profile triggering at the wrong time
- Media volume issue
- [FR] Detect USB connections/input devices.
- [support] Where is the user support forum? (sending contents of notification) HOT 3
- [FR] use WGTunnel for Wireguard intent
- Latest APK HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from easer.