11

In Built Json Key value store with Variable value context trigger

Tasker should have its own "No-SQL" like database to store and retrieve complex data rather than  just variables. 

This will also allow variable backup and any data can be queried remotely without having to setup a profile for each of the stuff

1 reply

You could do this pretty easily using JavaScript actions, storing a JavaScript object in JSON in a global variable. That is, it would be really easy if you know JavaScript, and not super hard if you don't. Can suggest that you give it a try?

If you try and fail or get stuck, reply to this comment and I'll help out.

That said, global variables are already a key-value style database. What additional features do you actually want?

I can't speak for OP, but the reason this one caught my eye is because I wanted to do testing against an unspecified number of keys with a pattern matching on the key.

Alternatively adding and subtracting values from a set and testing all current values of the set against a pattern match.

I ended up implementing the latter with variable appends and search/replaces for the adding and removing of the "set" within a single comma separated variable value.

First class handling of json objects would make this kind of thing easier.