Search found 54 matches

by Horschte
04 Jan 2020 01:22
Forum: User Help / Bug Reports
Topic: status vpn verbunden abfragen ?
Replies: 6
Views: 3650

Re: status vpn verbunden abfragen ?

Thank you for both approaches Desmanto and anuraag.

But in my tests the java way is much faster than the execute command action:

java: about 5 ms
execute command: about 100 ms
by Horschte
22 Dec 2019 22:48
Forum: Flow Sharing Area
Topic: German, an einem bestimmten Standort ein Widget antippen lassen
Replies: 4
Views: 2234

Re: German, an einem bestimmten Standort ein Widget antippen lassen

Die App stellt kein Plugin zur Verfügung? Meine Yeelight-App z.B. hat ein Plugin, welches ich über Automagic ansteuern kann.

Oder ist Shelly per URL erreichbar und schaltbar?
by Horschte
22 Dec 2019 18:26
Forum: Flow Sharing Area
Topic: German, an einem bestimmten Standort ein Widget antippen lassen
Replies: 4
Views: 2234

Re: German, an einem bestimmten Standort ein Widget antippen lassen

Widget antippen wird nur funktionieren, wenn der Bildschirm an und entsperrt ist. Ist es das, was Du willst? Muss das Widget unbedingt angetippt werden?
by Horschte
17 Dec 2019 21:54
Forum: User Help / Bug Reports
Topic: Expressions!!?!
Replies: 5
Views: 1797

Re: Expressions!!?!

That should work:

Code: Select all

if (value == my_value){
  return true;
}
Or simply:

Code: Select all

value == my_value
by Horschte
07 Dec 2019 16:32
Forum: User Help / Bug Reports
Topic: Envoking package from shell
Replies: 2
Views: 635

Re: Envoking package from shell

You have to install ADB on your computer. Then connect your phone with the computer. Search for "minimal adb" and you will find further instructions.

The dot is just another way of displaying the space character.
by Horschte
07 Dec 2019 16:19
Forum: User Help / Bug Reports
Topic: Character encoding in HTTP-Request
Replies: 5
Views: 1395

Re: Character encoding in HTTP-Request

The solution goes like this:

Instead of saving the response from the HTTP-Request to a variable save it to a file. Then load that file using the action Init Variable Text File and set the Encoding to "iso-8859-1".

Credits for this solution go to Desmanto.
by Horschte
01 Dec 2019 13:43
Forum: User Help / Bug Reports
Topic: Reformat writable file
Replies: 7
Views: 1219

Re: Reformat writable file

Convert your response to an object and access the desired value like this:

Code: Select all

obj = fromJSON(response);
sunset = obj['results']['sunset'];
by Horschte
01 Dec 2019 13:26
Forum: User Help / Bug Reports
Topic: Rain api help
Replies: 6
Views: 1072

Re: Rain api help

Try this:

http://automagic4android.com/flow.php?i ... f9b3e0998c

It saves a radar image in your Automagic folder using your current location.
by Horschte
01 Dec 2019 12:44
Forum: General
Topic: Passwortabfrage
Replies: 5
Views: 4471

Re: Passwortabfrage

The password is always saved in the variable "value". So you have to use something like this in your script:

Code: Select all

if(value == "ABC123"){
  Wert = "OK";
}
else{
  Wert = "Falsch";
}
by Horschte
27 Nov 2019 22:37
Forum: User Help / Bug Reports
Topic: Character encoding in HTTP-Request
Replies: 5
Views: 1395

Character encoding in HTTP-Request

Hi guys, I'm screenscraping an internet page using the action HTTP-Request. The problem is that the internet page is encoded in iso-8859-1. The response I get from the action shows some special characters as question marks. I suspect that Automagic uses UTF-8 by default so the special characters get...