2022-05-02, 21:44
I did not understand what is the procedure you do both to obtain the correct cookies and to insert them in the addon script. could you tell us what the procedure is? thank you very much
(2022-05-02, 14:31)Napster32 Wrote: Where can I temporarily (until the script is officially fixed) find the file you have edited?
Could you share it? Thank you so much
(2022-05-02, 12:52)jose1711 Wrote: @Napster32 I bet you have cookies still saved in your settings. Anyhow.. I checked the in-browser cookies and they contain the following keys:
- A1
- A1S
- A3
- cmp
- EuConsent
- GUC
- thamba
- yhcstamp
Addon is looking for a key called 'B' so that cannot work either. Or perhaps I am doing something completely wrong.
(2022-05-02, 21:44)Napster32 Wrote: I did not understand what is the procedure you do both to obtain the correct cookies and to insert them in the addon script. could you tell us what the procedure is? thank you very much
(unless you can afford data loss) backup everything in ~/.kodi and start with a clean profile
# or at least move ~/.kodi/addons/weather.multi and ~/.kodi/userdata/addon_data/weather.multi somewhere else
cd ~/.kodi/addons
git clone https://gitlab.com/ronie/weather.multi.git
cd weather.multi/lib/
edit weather.py changing this line:
response = requests.get(url, headers=HEADERS, cookies=dict(B=cookie), timeout=10)
to
response = requests.get(url, headers=HEADERS, cookies=dict(A1=cookie), timeout=10)
run kodi - enable addon - configure location
exit kodi
visit https://weather.yahoo.com in your browser
display source code of the webpage (ctrl-U in ff for instance)
search for "crumb" variable - take a note of it
use a developer toolbar or a browser addon to read www.yahoo.com cookies, look for the one called A1 - save its value
cd ~/.kodi/userdata/addon_data/weather.multi/
edit settings.xml setting the values manually
<setting id="ycookie">VALUE_NOTED_EARLIER</setting>
<setting id="ycrumb">VALUE_NOTED_EARLIER</setting>
<setting id="ystamp">1651614190</setting>
save and start Kodi again
addon should be able to pull the weather info now
(2022-05-10, 01:46)ronie Wrote: here's an updated version of the addon that should fix the current issues:Hi @ronie,
weather.multi-0.0.14.zip
the addon might fail to fetch weather data the first time it runs, but it should be back to normal the second time.
(it runs every 30 mins)
you can also restart kodi after installation, to speed up this process.
(2022-05-10, 01:46)ronie Wrote: here's an updated version of the addon that should fix the current issues: