I am no good at Python... I'm not very good in Lua, but at least I can make a simple if then, but Python? No way... I have a wind sensor, and I want to convert the wind direction letters to Norwegian words, so SSE is "S├©r-s├©r├©st". What I've tried is this:
Code: Select all
(if eg.globals.Wind_direction = = SSE:
eg.globals.Wind_direction_norwegian = "Sør-sørøst"
)
Of course that doesn't work. I tried with only one = in the first line, but that didn't change anything. The "& oslash;" (without the space) is the HTML code for the norwegian letter ├©, since it seems that Python can't do that. So can anybody please tell me how do I do this?