Rain api help

Post your questions and help other users.

Moderator: Martin

Post Reply
Lucy
Posts: 161
Joined: 10 Aug 2019 11:24

Rain api help

Post by Lucy » 01 Dec 2019 09:11

Ok this is not essentially related to this app other than i want to use it in a widget but...
I was hoping someone could take the time to have a look at this free rain api site. I cant quite figure out how to implement the code properly. Gosh i hope one of you geniuses can take the time to have a look🤞😊
[url]https://www.rainviewer.com/api.html/url]

Horschte
Posts: 40
Joined: 03 Nov 2014 18:00

Re: Rain api help

Post by Horschte » 01 Dec 2019 13:26

Try this:

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

It saves a radar image in your Automagic folder using your current location.

Lucy
Posts: 161
Joined: 10 Aug 2019 11:24

Re: Rain api help

Post by Lucy » 02 Dec 2019 03:41

Lol... absolute genius

Micky Micky
Posts: 9
Joined: 16 Oct 2019 17:38

Re: Rain api help

Post by Micky Micky » 02 Dec 2019 17:49

Very nice.
I do like an API

Using your settings, do you know the size of the area shown?

Many thanks
Last edited by Micky Micky on 02 Dec 2019 20:52, edited 1 time in total.

Lucy
Posts: 161
Joined: 10 Aug 2019 11:24

Re: Rain api help

Post by Lucy » 02 Dec 2019 19:31

Ugh i gave up on that api and the sample one someone showed me wasnt quite effective. However i have finaly found 4 different api's that work and out of the 4 i use 2 the most fue to reliability and efficiency. Working: darksky, weatherbit, weatherapi and sunrise sunset.org.
I comfortably use sunrise sunset.org and weatherapi. I get accurate and reliable data. I also have filtered all types of data i need including rain perception, etc. And thanks to the object script i can now filter the data to any single output. They work great
Thankyou Horschte for that fabulous working flow but i was needing text based output. But alas i have got what i sought for

User avatar
Desmanto
Posts: 2160
Joined: 21 Jul 2017 17:50

Re: Rain api help

Post by Desmanto » 04 Dec 2019 17:25

@Micky : It is not my flow, but it seems the area is determined by the zoom level : https://www.maptiler.com/google-maps-co ... rojection/
At zoom level 3, with 2048x2048, it is about 19,5 meter/pixel. So it is about 40 Km x 40 Km area. the 512 seems to be cropped, which mean now it is 1/4, only 10 Km x 10 Km area. (Don't know if my calculations are correct)

@Lucy : Maybe you have solved it in other thread. To get text based, you have to retrieve the json/xml data thru the API and parse it just like what you have done in other thread.
Index of Automagic useful thread List of my other useful posts (and others')
Xiaomi Redmi Note 5 (whyred), Resurrection Remix Official 7.0.2 20190829, Pie 9.0, Rooted.

Micky Micky
Posts: 9
Joined: 16 Oct 2019 17:38

Re: Rain api help

Post by Micky Micky » 04 Dec 2019 20:40

Thanks.

Post Reply