J
J
Justin Bieber2016-05-12 14:14:36
PHP
Justin Bieber, 2016-05-12 14:14:36

Export.yandex.ru/weather-ng/forecasts/id.xml won't work anymore?

export.yandex.ru/weather-ng/forecasts/id.xml won't work anymore? :(

Answer the question

In order to leave comments, you need to log in

5 answer(s)
A
Andrzej Wielski, 2016-05-13
@JustinBieber

For those who need weather parsing. I share.
The official address for accessing the API:

https://api.weather.yandex.ru/v1/forecast?geoid=2&lang=ru

Headers to pass for access:
User-Agent: yandex-weather-android/4.2.1
X-Yandex-Weather-Client: YandexWeatherAndroid/4.2.1
X-Yandex-Weather-Device: os=null;os_version=21;manufacturer=chromium;model=App Runtime for Chrome Dev;device_id=[DEVICE ID];uuid=[UUID];
X-Yandex-Weather-Token: [TOKEN]
X-Yandex-Weather-Timestamp: [TIMESTAMP]
X-Yandex-Weather-UUID: [UUID]
X-Yandex-Weather-Device-ID: [DEVICE ID]
Accept-Encoding : gzip, deflate
Host: api.weather.yandex.ru
Connection: Keep-Alive

Where [TOKEN] is generated by the function
Well, respectively secret - take eternalsun
UUID and Device ID from your Android device, or get (like me) in ARC Welder.
pastebin.com/w12KvC6q

D
draper2009, 2016-05-24
@draper2009

Thank you all very much, everything works great! Push on the true path, how can you now display in one line, example: In Moscow +20, partly cloudy
To display not a picture, but in words
bkn_-ra_d - cloudy with clearings, light rain (day)
bkn_-ra_n - cloudy with clear spells, light rain (night)
bkn_-sn_d — cloudy with clear spells, light snow (day)
bkn_-sn_n — cloudy with clear spells, light snow (night)
bkn_d — partly cloudy (day)
bkn_n — partly cloudy (night)
bkn_ra_d — partly cloudy, rain (day)
bkn_ra_n - partly cloudy, rain (night)
bkn_sn_d - partly cloudy, snow (day)
bkn_sn_n - Partly cloudy, snowing (night)
bl - Snowstorm
fg_d - Fog
ovc - Cloudy
ovc_-ra - Cloudy, sometimes raining
ovc_-sn - Cloudy, sometimes snowing
ovc_ra - Cloudy, raining
ovc_sn - Cloudy, snowing
ovc_ts_ra - Cloudy, raining, thunderstorm
skc_d - clear (day)
skc_n - clear (night)

D
Dmitry Pavlov, 2016-05-12
@dmitry_pavlov

Who uses http://export.yandex.ru/weather-ng/forecasts/id.xml? Why does not it work?

T
Taras_Viktorovich, 2016-05-15
@Taras_Viktorovich

How to send a request?

Z
ZhukovG, 2016-12-26
@ZhukovG

Do all the weather load 60 seconds? Or is it just me taking so long to load?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question