You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On CentOS 7, the compiler strips the negative sign (-77 degrees) from the define directive DEFAULT_LONGITUDE (sunwait.h), eliminating the possibility of referencing the western hemisphere by default. It probably happens for the southern hemisphere. Furthermore, the large positive version (282 degrees) is converted into the eastern equivalent of the small angle. I have a work around for this bug.
I replaced DEFAULT_LONGITUDE in the two uses with the negative decimal angle, allowing 'sunwait report' to run accurately without feeding the coordinates every time. This work around doesn't seem to have an effect on other functionality.
I like sunwait. I'll use it to feed dunst and i3blocks with fun information.
Thanks :-)
The text was updated successfully, but these errors were encountered:
It seems like the best option might be for an environment variable? (I wonder if gpsd sets any by default... if so, using that would be easy - and then one could set that same variable if you're not running gpsd.)
Using a hard-coded default is great for demo purposes but it also means that your binaries are very specific to you :)
On CentOS 7, the compiler strips the negative sign (-77 degrees) from the define directive DEFAULT_LONGITUDE (sunwait.h), eliminating the possibility of referencing the western hemisphere by default. It probably happens for the southern hemisphere. Furthermore, the large positive version (282 degrees) is converted into the eastern equivalent of the small angle. I have a work around for this bug.
I replaced DEFAULT_LONGITUDE in the two uses with the negative decimal angle, allowing 'sunwait report' to run accurately without feeding the coordinates every time. This work around doesn't seem to have an effect on other functionality.
I like sunwait. I'll use it to feed dunst and i3blocks with fun information.
Thanks :-)
The text was updated successfully, but these errors were encountered: