Search found 17 matches

by Helios
28 Oct 2018 19:06
Forum: User Help / Bug Reports
Topic: Syntax for dictionary in Script action?
Replies: 5
Views: 12364

Re: Syntax for dictionary in Script action?

@Desmanto You are totally right. In case you need a simple map, the newMapFromValues() function is sufficient. But in case you want to have a more complex object, e.g. obj = fromJSON( '{"key1": [1, 2, 3, 4], "key2": {"sub1": true, "sub2": false} }' ) vs. obj = newMapFromValues( "key1", newList(1, 2,...
by Helios
28 Oct 2018 18:03
Forum: User Help / Bug Reports
Topic: Syntax for dictionary in Script action?
Replies: 5
Views: 12364

Re: Syntax for dictionary in Script action?

I just learned that Automagic supports JSON. So we can do the following: dict = fromJSON('{"key1": "value1", "key2": "value2", "key3integer": 123, "key4boolean": true}') Please note the nesting quotation marks (outer single quotes, double quotes for strings) This post is just for the record 8-)
by Helios
27 Oct 2018 23:30
Forum: User Help / Bug Reports
Topic: How can I launch a home page link?
Replies: 3
Views: 9026

Re: How can I launch a home page link?

Wow. Nice to know! I used to do this by "Start Activity" -> Packagename: "com.android.chrome" -> Data URI: "{url}", but this is much easier.
by Helios
26 Oct 2018 11:59
Forum: User Help / Bug Reports
Topic: Syntax for dictionary in Script action?
Replies: 5
Views: 12364

Re: Syntax for dictionary in Script action?

Hi,

are you looking for this?

Code: Select all

Map newMapFromValues(String key1, Object value1, ...)
Returns a new map initialized to contain the specified keys and values.
by Helios
24 Oct 2018 11:37
Forum: Feature Requests
Topic: Trigger, Kalendereintrag, Calendar entry
Replies: 4
Views: 12030

Re: Trigger, Kalendereintrag, Calendar entry

Hm.... if you know the app that is used to input the event, you can have a look at User Interface Events..
Component clicked seems to be suitable.
by Helios
24 Oct 2018 11:14
Forum: General
Topic: Detecting Driving
Replies: 9
Views: 22678

Re: Detecting Driving

Hi,

maybe your want to have a look into this User Activity Trigger..

If your car has Bluetooth, this is the way to go.

Otherwise, you have to think about your real-life flow. Maybe something like "Wifi Disconnected from Homenetwork" -> "Wait for USB-Car-Charger" -> "We are in the car".