Search found 40 matches

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

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: 4
Views: 79

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: 112

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: 128

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: 143

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: 4
Views: 79

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...
by Horschte
20 Nov 2019 18:10
Forum: User Help / Bug Reports
Topic: Evaluate second line in text
Replies: 9
Views: 212

Re: Evaluate second line in text

How can i write it so that it is "more than but less than"?
I tried a simple >30<40 but that did not work. Whats the correct way to write it please?

Code: Select all

if(v > 30 and v < 40){
  //do something
}
by Horschte
19 Nov 2019 15:17
Forum: User Help / Bug Reports
Topic: Evaluate second line in text
Replies: 9
Views: 212

Re: Evaluate second line in text

Add a Debug Dialog and have a look at "target_line". What's its value?
by Horschte
18 Nov 2019 21:01
Forum: User Help / Bug Reports
Topic: Evaluate second line in text
Replies: 9
Views: 212

Re: Evaluate second line in text

Try to split the notification to get the second line:

Code: Select all

lines = split(notification_text, "\\n");
target_line = lines[1];
by Horschte
14 Nov 2019 23:01
Forum: User Help / Bug Reports
Topic: Widgets
Replies: 4
Views: 342

Re: Widgets

What exactly do you want to achieve?