Template Example: Weather Binding

That line you copied is in the openHAB Version 1 syntax. Since the Weather Binding was never move upwards it can’t be used in openHAB Version 3. Running a Version 2 in addition to Version 3 could solve your problem.