Search found 54 matches

by Horschte
22 Jun 2020 21:09
Forum: General
Topic: Response information jsonp_1 ({"***"}) format, how to extract information
Replies: 3
Views: 2052

Re: Response information jsonp_1 ({"***"}) format, how to extract information

Try this:

Code: Select all

mytext='jsonp_1592191820948_64292({"code":"0","data":{"growth":"18","nutrients":"0","beanState":"2","beanImg":"https://m.360buyimg.com/mobilecms/jfs/t ... e51465.gif"}});';
match = findAll(mytext, ".*growth\":\"(.*)\",\"nut", true)[0][1];
by Horschte
24 Mar 2020 22:22
Forum: User Help / Bug Reports
Topic: Getting first paragraph of a string
Replies: 4
Views: 1451

Re: Getting first paragraph of a string

You can use split to get the list of paragraphs.

Code: Select all

input = "Paragraph 1\n\nParagraph 2";
paragraphs = split(input, "\n\n");
first = paragraphs[0];
or shorter:

Code: Select all

input = "Paragraph 1\n\nParagraph 2";
first = split(input, "\n\n")[0];
by Horschte
14 Mar 2020 23:28
Forum: User Help / Bug Reports
Topic: count characters including spaces
Replies: 3
Views: 3083

Re: count characters including spaces

When you use length() your result is without spaces?
For me it's working fine:

Code: Select all

s = "my string";
r = length(s); //r: 9
by Horschte
12 Mar 2020 16:57
Forum: Flow Sharing Area
Topic: COVID-19 Tracker (based on John Hopkins CSSE)
Replies: 12
Views: 8844

Re: COVID-19 Tracker (based on John Hopkins CSSE)

Thanks for your effort.

But they seem to have adjusted their service. So no results anymore. :cry:
by Horschte
09 Feb 2020 18:37
Forum: General
Topic: Condition klappt nicht
Replies: 1
Views: 5424

Re: Condition klappt nicht

You have to add a second trigger: Power Source - Disconnected (Stromversorgung - entfernt).

With both triggers your flow is executed when the phone is connected and when it's disconnected. So you have to add a condition - Power Source Connected (Stromversorgung angeschlossen) - to decide what to do.
by Horschte
24 Jan 2020 22:17
Forum: User Help / Bug Reports
Topic: Division
Replies: 2
Views: 1138

Re: Division

Code: Select all

r = 5/2 //r = 2
r = 5/2.0 // r = 2.5
r = 5.0/2 // r = 2.5
r = 5.0/2.0 // r = 2.5
by Horschte
13 Jan 2020 22:29
Forum: User Help / Bug Reports
Topic: shortening links
Replies: 3
Views: 1442

Re: shortening links

I didn't know the service either. :lol: I just searched for a service which doesn't require an api key or a login.
by Horschte
11 Jan 2020 22:06
Forum: User Help / Bug Reports
Topic: shortening links
Replies: 3
Views: 1442

Re: shortening links

Use action HTTP Request and put this into the URL field: https://u.nu/api.php?action=shorturl&format=simple&url={long_url} Replace {long_url} with the url you want to shorten. Activate Custom HTTP Headers and put this into the field: accept:text/html,application/xhtml+xml,application/xml;q=0.9,image...