Hi
I created a new widget over the last few weeks, it can be installed in 3 possible locations as such: I haven’t tested on a tablet yet.
When creating the settings to configure some of the basic options I am having trouble creating a selection for Units. I have no problem choosing what icon sets to load, I have downloaded and renamed all the icons from the weather tutorial on this site, all the ones from weatherunderground and a few others that I have found along the way. The widget can seamlessly switch icons based on the drop down.
I have the weather configured as items for both Celcius and Fahrenheit, and I can create a setting for it, but have not successfully been able to use the setting in the code do display the correct item, or hide the rows I would like.
I have tried using the setting as a CLASS, or a VALUE, I have created scripts to lazy load in, but when the scripts read the value I want it is reading {{config.units}} not the value of the setting.
I can lazy load the javascript, I can get console log info (thats how I worked out the value being read from the page was {{config.units}} not the value of it. It seems the script is running before HabPanel updates it with the proper values.
Any suggestions on how I can read the value after it has been updated so I don’t get the tag.
I would paste some code, however I have tried that many things I deleted it all not knowing where to start.
[https://github.com/Corban987/OpenHab-Weather-Widget-12345](http://Link to my widget)
I have the shell scripts I used to download and rename the icon sets. I copied all the commands into the shell script so I could easily download the icons and rename them again when needed.
Thanks in advance.