briis / weatherbit

The weatherbit integration adds support for the weatherbit.io web service as a source for meteorological data for your location.
MIT License
33 stars 7 forks source link

Feature Request : weather_text to weather.weatherbit #89

Open jokerigno opened 1 year ago

jokerigno commented 1 year ago

Hi,

Can you please add the traslation via weather_text also to current weather status provided by weather.weatherbit ? (that may be different from the daily forecast).

Thanks

briis commented 1 year ago

This text comes from the Forecast API, and will be translated there if you select the correct language for your forecast. Once you have setup the Integration, click the 'Configure' text in the lower left corner. This will open a dialog where you can set the language you desire. The forecast text and the weather text should now come in your prefered language.

Can you verify that? Or am I misunderstanding what you want to do?

jokerigno commented 1 year ago

Hi, welcome back:)

Let me clarify better: in the _sensor.weatherbit_forecast_dayX sensors I correct see in the attribute weather_text the wording in my local language.

image

My request is to add (if possible) the attribute weather_text also to weather.weatherbit that is only in english:

image

I'm not a programmer but looking here it seems the field is available:

https://www.weatherbit.io/api/weather-current

EDIT:

Yes I tested and this is the weather condition at this moment in my location (in Bold weather_text):

{"count":1,"data":[{"app_temp":23.7,"aqi":22,"city_name":"Turin","clouds":0,"country_code":"IT","datetime":"2023-05-05:12","dewpt":13.9,"dhi":119.36,"dni":915.62,"elev_angle":60.5,"ghi":908.42,"gust":4.63,"h_angle":12.9,"lat":45.0722,"lon":7.6606,"ob_time":"2023-05-05 12:05","pod":"d","precip":0,"pres":986.1816,"rh":53,"slp":1017.43463,"snow":0,"solar_rad":908.4,"sources":["analysis","D2987"],"state_code":"12","station":"D2987","sunrise":"04:11","sunset":"18:39","temp":23.9,"timezone":"Europe/Rome","ts":1683288316,"uv":8.681886,"vis":16,"weather":{"description":"Cielo sereno","code":800,"icon":"c01d"},"wind_cdir":"E","wind_cdir_full":"Est","wind_dir":89,"wind_spd":1.54}]}

jokerigno commented 1 year ago

Bump. Any update on this? :)