Talk:Landscape Rotation
From Stellarium Wiki
The calculation in this article is correct.
However it did not work immediately in my version 10.6 with my own panorama.
Reason: the rotation was more than 180° and the value was ignored. I've found out that the angle must be transformed to range [-180;+180], i.e. if calculation result is greater than 180° you have tu put "-(360° - calculation result)" into the .ini file, this works fine.