Yevgenium / weather-chart-card

Custom weather card with charts
MIT License
274 stars 80 forks source link

Custom entity för current temperature #122

Open DanielGoransson1 opened 1 year ago

DanielGoransson1 commented 1 year ago

Hi, Is it possible to add the possibility to choose your own sensor för current temperature? I have a unit i want to use instead of the forecast service. Great card.

tomasrudh commented 1 year ago

That would be a great enhancement. Thanks for a nice card otherwise.

tomasrudh commented 1 year ago

I have done this in the pull request #124.

Add like this to the config: temp: sensor.ute_temp

DanielGoransson1 commented 1 year ago

I have done this in the pull request #124.

Add like this to the config: temp: sensor.ute_temp

Great! Could you please be so kind and show more in detail on how to do this? Thanks.

tomasrudh commented 1 year ago

I have done this in the pull request #124. Add like this to the config: temp: sensor.ute_temp

Great! Could you please be so kind and show more in detail on how to do this? Thanks.

You can see in the Pull Request under Files Changed what is changed. You can implement the same changes to your local file or wait for @Yevgenium to merge the pull request.

trybikowski commented 8 months ago

Hi @tomasrudh. Could you give me short info, where exactly I should change file? I have only one file: weather...js. Where is file main.js??

tomasrudh commented 8 months ago

The changes in main.js you can see in the pull request. Until @Yevgenium has merged that, you will have to find the lines in the file weather-chart-card.js, it is around line 14800.