Image rotation on widget range are -180 and +179. To working, we have to add extra step.
Posted: 30 May 2019 10:02
I am testing image rotation on widget.
Example the weather api report wind direction as 0 to 360 degree.
To working with AutoMagic, we have to add extra step:
Could you please adjust maximum value to -360 / +360 ?
or -180 / +180 ?
Example the weather api report wind direction as 0 to 360 degree.
To working with AutoMagic, we have to add extra step:
Code: Select all
if ( degree - 179 >= 1 )
{
degree = ( 360 - degree ) * -1;
}or -180 / +180 ?