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 ?
Moderator: Martin
Code: Select all
if ( degree - 179 >= 1 )
{
degree = ( 360 - degree ) * -1;
}