rkaczorek / astroberry-server

Astroberry Server is a ready to use system for Raspberry Pi for controlling all your astronomy equipment
GNU General Public License v3.0
275 stars 19 forks source link

Astropanel GPS stuck to Warsaw #44

Closed blemasle closed 5 years ago

blemasle commented 5 years ago

Hi,

On a fresh and upgraded astroberry install, the GPS location cannot be forced using configuration files.

After setting my location coordinates in /etc/astropanel.conf with use_gps = no and enabling debug ouput, I can cleary see astropanel.py using my configuration file

Loading values from configuration file
/etc/astropanel.conf
xxx
xxx
0
xxx
My location

But somehow, the astropanel is locked to Warsaw and is waiting for a gps fix image

Even setting the location in the system weather file /etc/xdg/lxpanel/LXDE-astroberry/panels/panel does not change the gps panel location.

rkaczorek commented 5 years ago

What you are referring to is GPS Panel, not Astro Panel. This is designed to show real GPS position and if you don't use GPS it defaults to Warsaw. It does not use /etc/astropanel.conf configuration nor Weather Plugin configuration. This behavior will be changed in the future versions.

blemasle commented 5 years ago

You're absolutely right, sorry for the confusion. I naturally reffered to that map to ensure that GPS coordinates used in the astro panel were correct. The change you're talking about makes perfect sense from a "dumb" (as in me) user point of view 👍

Thanks !

rkaczorek commented 5 years ago

Your input is much appreciated. It brings to my attention the fact that the configuration is a bit confusing. I will be releasing a solution for this soon

rkaczorek commented 5 years ago

The update has been released. From now on GPS Panel and Astro Panel use only GPS readings as source of location. For users that do not have GPS, the system provides Virtual GPS, whch can be configured by editing /etc/location.conf file or using Preferences/Geographic Location menu. The /etc/astropanel.conf file has been abandoned and is not used anymore.

blemasle commented 5 years ago

That seems perfect, thanks !