×

INDI Library v2.0.6 is Released (02 Feb 2024)

Bi-monthly release with minor bug fixes and improvements

Astroberry Server 2.0.0 is available now!

  • Posts: 15
  • Thank you received: 6
My suggestion:
GPS Panel uses GPS only if a GPS is present, otherwise it defaults to a config file that, at this point, could be unique for both GPS and Astro panels.
If no config file, then the weather app, as you already do, could be second choice.
This way you simplify it a bit.

In StellarMate, all system's coordinates are got from the mobile app: sometimes, even if I use StellarMate at home, I first connect to it with the mobile app, just to set or update the gps position.
Is AstroBerry we do non have a mobile app (yet...) so a unique config file could be the solution.

Cheers.
The following user(s) said Thank You: AstroNerd
4 years 4 months ago #46248
The topic has been locked.
  • Posts: 1067
  • Thank you received: 140


It’s actually all excellent, the only advice I could offer, is to ditch the astropanel.conf file, as it’s not really needed, as the info can come from the weather app or a GPS, That is more than sufficent, as dummies like me don’t want to be going into config files and editing...as that’s how things break... :(

Or if the astropanel.conf file is needed, (for other reasons) then maybe make it easier for users to input there own data...
The following user(s) said Thank You: Craig
Last edit: 4 years 4 months ago by AstroNerd.
4 years 4 months ago #46249
The topic has been locked.
  • Posts: 1067
  • Thank you received: 140
Any ideas anyone, GPS now connected and I get this on both GPS and astropanel....
Last edit: 4 years 4 months ago by AstroNerd.
4 years 4 months ago #46261
Attachments:
The topic has been locked.
  • Posts: 1067
  • Thank you received: 140
Now showing this....not sure what has happened... :(
4 years 4 months ago #46262
Attachments:
The topic has been locked.
  • Posts: 1067
  • Thank you received: 140
Ok, false alarm, a second reboot seemed to sort it. :)
4 years 4 months ago #46263
The topic has been locked.
  • Posts: 1067
  • Thank you received: 140
Ok, so I got a GPS fix in Ekos, and on the panel.... :)
Last edit: 4 years 4 months ago by AstroNerd.
4 years 4 months ago #46268
Attachments:
The topic has been locked.
  • Posts: 407
  • Thank you received: 74
Radek here is my suggestion:-

1. Simplify - do we need the skymap,full GPS info - i dont but interested to know if others do. The location map is fine and enough for me !

2. Set up simple ALL user environment variables called Latposition,Lonposition,Elevation (names could be anything ). Allow user to set these via a simple Web interface/panel. Put them in users profile. That makes them permanent (unless edited again). Should only need to be done once unless user has moved location and has no GPS and no internet. This becomes the default!

3. Location map function - using something like openstreetmap we can simply allow a user to select a location and get the coordinates (lat/Long) example here forum.openstreetmap.org/viewtopic.php?id=57038
and set Environment vars above to extracted Lat/Lon. Again only needs to be done once per session BUT does need Internet

4. Using GPSPIPE command and DQ application (json parser) extract Lat,Lon,Elevation,Date/Time - null is returned if nothing exists for TPV data - so command could be as simple as gpspipe -w -n 4 -p |grep TPV |jq .lon (for longtitude) and set Environment variable appropriately. but only if value is returned (the GPSPIPE command will return nothing if no TPV data has been produced.

This could be a script on a timer as per GPSPanel. GPSPIPE doesn't need root permissions to work with GPSD !

This will have no effect if no GPS device is fitted or working!

Note - have tried out the simple GPSPIPE commands on my Ublox7 and they work - when the GPS device works.

So unless the Environment vars have been changed in one of the above ways the "default" ones in the profile will always apply.

This is much like you existing system but simpler IMO and doesn't depend on Python but would need Java for the Openstreetmap item described in (3).

Anyway just an idea ! :-)
RPI3 Ubuntu 16.04 / AMD desktop Kstars under Ubuntu 16.04 Mounts :azeq6 ,SWAZGoTo

RPI3 Fedora testing out on AMD desktop Fedpra 28 - running kstars 2.9.4 , Indilib 1.7.4 ?????
4 years 4 months ago #46277
The topic has been locked.
  • Posts: 983
  • Thank you received: 375
Thanks for the ideas guys! Each and every worth considering.
Some users do not use GPS at all, so GPS Panel is useless for them but they will would like to use Astro Panel with Solar System objects data. We have to have good source of location data for users that do not use GPS, so config file is a must because... they will not necessarily use Weather Plugin at all.
So things are getting complicated indeed. Especially if we add location data for KStars to this puzzle. To complicate things even more some users prefer to use Skychart than KStars...
The idea to use environment variables seems interesting and easy to implement. Let me rethink the approach. There is some space for improvement for sure.

I'm very curious about 'bad gateway' errors you report. Technically speaking the root cause is gpspanel.service or respectively astropanel.service is down, so nginx server which handles web interface cannot display content in sliding menu panels. Have no idea why would they go down though. To nail it down I need your help.
If it happens just run (depending which panel is not available):
systemctl status gpspanel.service
OR
systemctl status astropanel.service

Send the output to github.com/rkaczorek/astroberry-server/issues or here.
4 years 4 months ago #46281
The topic has been locked.
  • Posts: 389
  • Thank you received: 15
Hello,

What enables AstroPanel to be visible?

I show it running, but do not see any side menu. Did a config step get missed?
4 years 4 months ago #46283
The topic has been locked.
  • Posts: 983
  • Thank you received: 375
It is available only if you access the system with web browser. Just point your browser to astroberry.local the panels are accessible on left side sliding bar
4 years 4 months ago #46285
The topic has been locked.
  • Posts: 1067
  • Thank you received: 140

To be honest I have no idea why the errors appeared on the panels, and it was on both at the same time, BUT after two reboots it went, and has been fine ever since, but will do what you suggest if it occurs again...
I guess with my ideas,

Regards my ideas, I was assuming that everyone would at least use the weather app, but if that’s not the case, then fair point, then all that is needed is a simplified way of entering own data to the astropanel.conf file, rather than having to edit the actual file itself...?. Also would it not be a good idea to use those same data inputs to feed the GPS panel, when a GPS is not present, so at least it will show correct location data, albeit static...rather than the Warsaw data..

Have to say though it runs very well, and fast, an excellent job... :)
4 years 4 months ago #46286
The topic has been locked.
  • Posts: 983
  • Thank you received: 375

Good points!
I can add a Location Setting in the system menu. And you are right that GPS Panel can use location set in astropanel.conf if GPS is not present.
4 years 4 months ago #46288
The topic has been locked.
Moderators: Radek Kaczorek
Time to create page: 0.692 seconds