I have a weather device in HomeSeer that has a property for wind direction. The property values look like this:
I’d like to display the short form version of the direction (NNE, NE, ENE, for example) but I’m new enough to HR that I don’t really know the best way to go about this. It’s something that would be easy to do in a scripting language (have a function that accepts the long form string and returns the short form one), but I don’t yet know anything about scripts in HR or what they are capable of.
Whatever I do, it would ideally be reusable, as I’ll need to apply this to multiple different devices. I’m happy to do research on this myself, so even just pointers of things to read or search for would be helpful. Suggestions?