×
INDI Library v1.8.7 Released (21 Nov 2020)

Nov. 2020 Release brings significant improvements to streaming and recording videos. Support for new drivers including Estatto focuser and Pegasus falcon rotator.

Astroberry Server 2.0.0 is available now!

1 year 1 week ago
rizal72
Fresh Boarder
Fresh Boarder
Posts: 13
More
Astroberry Server 2.0.0 is available now! #46248
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
The topic has been locked.
1 year 1 week ago 1 year 1 week ago by AstroNerd.
AstroNerd
Moderator
Moderator
Posts: 876
Karma: 1
More
Astroberry Server 2.0.0 is available now! #46249

Kaczorek wrote: This is absolutely correct. GPS Panel is designed to show real and the actual GPS position and if it is not available it shows default position (hard coded because it needs to show something). Should you consider any other approach do not hesitate to suggest it. It was just my assumption but I would be more than happy to do it the way you want.
To change this behavior you need to change gpspanel.py file, which I do not recommend because all the changes will be overwritten by future updates. So it is better I change it for all the users.
Changing astropanel.conf does nothing to gpspanel. It just works with Astro Panel, which calculates bodies positions for a specific location (which can come from GPS or static config).

BTW. I agree it is kind of a mess but I haven't came up with a good solution. As for now there are separate locations for:
1. Astro Panel (GPS or astropanel.conf file or Weather Plugin location)
2. GPS Panel (only real GPS receiver)
3. KStars (GPS or static configuration of KStars location)

Any ideas how to combine these? Bear in mind that before first start of Kstars it's configuration defaults to London, before connecting GPS receiver GPS Panel defaults to Warsaw, before setting up astropanel.conf Astro Panel defaults to GPS or Weather Plugin ;-)



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...

Stellarmate OS on Raspberry pi4b
Skywatcher EQ8 pro, on steel pier
Takahashi FSQ85 & Meade 8” SCT (de-forked)
Starlight Xpress SXVR H18, SXVR M25c, Lodestar x2 Guide Camera
Pegasus Ultimate Hub V2 for all USB & Power
Pegasus focus motors on both scopes
The following user(s) said Thank You pug916
The topic has been locked.
1 year 1 week ago 1 year 1 week ago by AstroNerd.
AstroNerd
Moderator
Moderator
Posts: 876
Karma: 1
More
Astroberry Server 2.0.0 is available now! #46261
Any ideas anyone, GPS now connected and I get this on both GPS and astropanel....

Stellarmate OS on Raspberry pi4b
Skywatcher EQ8 pro, on steel pier
Takahashi FSQ85 & Meade 8” SCT (de-forked)
Starlight Xpress SXVR H18, SXVR M25c, Lodestar x2 Guide Camera
Pegasus Ultimate Hub V2 for all USB & Power
Pegasus focus motors on both scopes
Attachments:
The topic has been locked.
1 year 1 week ago
AstroNerd
Moderator
Moderator
Posts: 876
Karma: 1
More
Astroberry Server 2.0.0 is available now! #46262
Now showing this....not sure what has happened... :(

Stellarmate OS on Raspberry pi4b
Skywatcher EQ8 pro, on steel pier
Takahashi FSQ85 & Meade 8” SCT (de-forked)
Starlight Xpress SXVR H18, SXVR M25c, Lodestar x2 Guide Camera
Pegasus Ultimate Hub V2 for all USB & Power
Pegasus focus motors on both scopes
Attachments:
The topic has been locked.
1 year 1 week ago
AstroNerd
Moderator
Moderator
Posts: 876
Karma: 1
More
Astroberry Server 2.0.0 is available now! #46263
Ok, false alarm, a second reboot seemed to sort it. :)

Stellarmate OS on Raspberry pi4b
Skywatcher EQ8 pro, on steel pier
Takahashi FSQ85 & Meade 8” SCT (de-forked)
Starlight Xpress SXVR H18, SXVR M25c, Lodestar x2 Guide Camera
Pegasus Ultimate Hub V2 for all USB & Power
Pegasus focus motors on both scopes
The topic has been locked.
1 year 1 week ago 1 year 1 week ago by AstroNerd.
AstroNerd
Moderator
Moderator
Posts: 876
Karma: 1
More
Astroberry Server 2.0.0 is available now! #46268
Ok, so I got a GPS fix in Ekos, and on the panel.... :)

Stellarmate OS on Raspberry pi4b
Skywatcher EQ8 pro, on steel pier
Takahashi FSQ85 & Meade 8” SCT (de-forked)
Starlight Xpress SXVR H18, SXVR M25c, Lodestar x2 Guide Camera
Pegasus Ultimate Hub V2 for all USB & Power
Pegasus focus motors on both scopes
Attachments:
The topic has been locked.
1 year 1 week ago
stash
Gold Boarder
Gold Boarder
Posts: 408
Karma: 4
More
Astroberry Server 2.0.0 is available now! #46277
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 ?????
The topic has been locked.
1 year 6 days ago
Kaczorek
Moderator
Moderator
Posts: 966
Karma: 6
More
Topic Author
Astroberry Server 2.0.0 is available now! #46281
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.

--
Radek Kaczorek
Astroberry Server | NEQ6 | Atik 460EX | Atik EFW2 | ASI 120MM
The topic has been locked.
1 year 6 days ago
AradoSKYindi
Gold Boarder
Gold Boarder
Posts: 372
More
Astroberry Server 2.0.0 is available now! #46283
Hello,

What enables AstroPanel to be visible?

I show it running, but do not see any side menu. Did a config step get missed?
The topic has been locked.
1 year 6 days ago
Kaczorek
Moderator
Moderator
Posts: 966
Karma: 6
More
Topic Author
Astroberry Server 2.0.0 is available now! #46285
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

--
Radek Kaczorek
Astroberry Server | NEQ6 | Atik 460EX | Atik EFW2 | ASI 120MM
The topic has been locked.
1 year 6 days ago
AstroNerd
Moderator
Moderator
Posts: 876
Karma: 1
More
Astroberry Server 2.0.0 is available now! #46286

Kaczorek wrote: 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.


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... :)

Stellarmate OS on Raspberry pi4b
Skywatcher EQ8 pro, on steel pier
Takahashi FSQ85 & Meade 8” SCT (de-forked)
Starlight Xpress SXVR H18, SXVR M25c, Lodestar x2 Guide Camera
Pegasus Ultimate Hub V2 for all USB & Power
Pegasus focus motors on both scopes
The topic has been locked.
1 year 6 days ago
Kaczorek
Moderator
Moderator
Posts: 966
Karma: 6
More
Topic Author
Astroberry Server 2.0.0 is available now! #46288

AstroNerd wrote: ...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..


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.

--
Radek Kaczorek
Astroberry Server | NEQ6 | Atik 460EX | Atik EFW2 | ASI 120MM
The topic has been locked.
Moderators: Kaczorek
Time to create page: 0.986 seconds