Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Weather icons reference ? #641

Open
niawag opened this issue Oct 10, 2023 · 3 comments
Open

Weather icons reference ? #641

niawag opened this issue Oct 10, 2023 · 3 comments

Comments

@niawag
Copy link

niawag commented Oct 10, 2023

[Sorry not really an issue] Hi and thanks a lot for this really usefull API, I've started to use it recently and it's great but it may lack a bit of documentation. I'd like to use this API (instead of OWM api, less accurate in France) to feed my temp sensor and weather screen (using an epaper screen and domoticz) but I can't without weather icons references. In these results the weather_icon is set to "p1bisj" and I don't know where I can find a list of matches between these names and the icons:

Observation(    timezone=Europe/Paris,  time=2023-10-10T09:00:00.000Z,  temperature=19.1°C,     wind_speed=0.7 km/h,   wind_direction=87°,      wind_icon=E,    weather_icon=p1bisj,    weather_description=Peu nuageux)
{'status': 'OK', 'title': 'Update Device'}

I don't minf if it's only a named list (like here p1bisj="Peu nuageux") or a link to an icon set (like p1bisj=p1bisj.png) as I can workaround both solutions.

EDIT: just found out that the icon name can be found on meteo-france website (https://meteofrance.com/modules/custom/mf_tools_common_theme_public/svg/weather/p1bisj.svg) but, once again, a list could be usefull.

Is it possible to find this reference somewhere ?

@niawag
Copy link
Author

niawag commented Oct 13, 2023

I did a bit of tinkering myself to grab all the svg's, their names are made like this "pXj.svg" or "pXn.svg" with X from 1 to N so not to difficult to grab them all:

#!/bin/bash
for i in {1..50}
do
   wget "https://meteofrance.com/modules/custom/mf_tools_common_theme_public/svg/weather/p"$i"j.svg"
   wget "https://meteofrance.com/modules/custom/mf_tools_common_theme_public/svg/weather/p"$i"n.svg"
done

The last valid url was hit for i=34. I hope this might help someone else!

@hb020
Copy link

hb020 commented Jan 3, 2024

don't forget, there are also

p"$i"bisj.svg
p"$i"bisn.svg

It is best to update it regularly. Right now, the full list is:

p10bisj.svg
p10bisn.svg
p10j.svg
p10n.svg
p11j.svg
p11n.svg
p12bisj.svg
p12bisn.svg
p12j.svg
p12n.svg
p13bisj.svg
p13bisn.svg
p13j.svg
p13n.svg
p14bisj.svg
p14bisn.svg
p14j.svg
p14n.svg
p15j.svg
p15n.svg
p16bisj.svg
p16bisn.svg
p16j.svg
p16n.svg
p17bisj.svg
p17bisn.svg
p17j.svg
p17n.svg
p18bisj.svg
p18bisn.svg
p18j.svg
p18n.svg
p19bisj.svg
p19bisn.svg
p19j.svg
p19n.svg
p1bisj.svg
p1bisn.svg
p1j.svg
p1n.svg
p20bisj.svg
p20bisn.svg
p20j.svg
p20n.svg
p21bisj.svg
p21bisn.svg
p21j.svg
p21n.svg
p22bisj.svg
p22bisn.svg
p22j.svg
p22n.svg
p23j.svg
p23n.svg
p24bisj.svg
p24bisn.svg
p24j.svg
p24n.svg
p25bisj.svg
p25bisn.svg
p25j.svg
p25n.svg
p26bisj.svg
p26bisn.svg
p26j.svg
p26n.svg
p27j.svg
p27n.svg
p28bisj.svg
p28bisn.svg
p28j.svg
p28n.svg
p29j.svg
p29n.svg
p2bisj.svg
p2bisn.svg
p2j.svg
p2n.svg
p30j.svg
p30n.svg
p31j.svg
p31n.svg
p32j.svg
p32n.svg
p33j.svg
p33n.svg
p34j.svg
p34n.svg
p3bisj.svg
p3bisn.svg
p3j.svg
p3n.svg
p4j.svg
p4n.svg
p5bisj.svg
p5bisn.svg
p5j.svg
p5n.svg
p6bisj.svg
p6bisn.svg
p6j.svg
p6n.svg
p7bisj.svg
p7bisn.svg
p7j.svg
p7n.svg
p8bisj.svg
p8bisn.svg
p8j.svg
p8n.svg
p9j.svg
p9n.svg

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants