×

INDI Library v2.0.0 Released (01 Feb 2023)

Bi-monthly release with major changes to INDI properties and client API in addition to new drivers and improvements.

AstroPi3 Scripts revised

  • Posts: 1067
  • Thank you received: 137

Replied by AstroNerd on topic AstroPi3 Scripts revised



Yes, those are the commands in the script...
Stellarmate OS on Raspberry pi4b
Skywatcher EQ8 pro, on steel pier
Takahashi FSQ85, FS60cb & 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 all scopes
3 years 2 months ago #46502

Please Log in or Create an account to join the conversation.

  • Posts: 1067
  • Thank you received: 137

Replied by AstroNerd on topic AstroPi3 Scripts revised

Ok, so I figured out the issue
When the backup is performed all the data is backed up into two folders “indiConfig” “KstarsData” and one “Kstarsrc” file, And these are in another folder with time and date stamp..
Now when you do the restore, and point to the time and date stamped folder, it’s just copying the whole folders into the destination folder, instead of overwriting the individual files, so for instance in my KstarsData folder I have all the original files, plus another folder called KstarsDat with all the new files inside...
Hope that makes sense...
Olly
Stellarmate OS on Raspberry pi4b
Skywatcher EQ8 pro, on steel pier
Takahashi FSQ85, FS60cb & 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 all scopes
3 years 2 months ago #46516

Please Log in or Create an account to join the conversation.

  • Posts: 1067
  • Thank you received: 137

Replied by AstroNerd on topic AstroPi3 Scripts revised

I see the problem is just in the restore side of the script, it seems to go one step to far in the destination folder location, if it was one step back and it copied the whole folder it would work...so instead of being restored to
.local/share/Kstars/KstarsData

It should be just

.local/share/Kstars
As the destination, then copying the whole folder will just overtire the existing one...
Stellarmate OS on Raspberry pi4b
Skywatcher EQ8 pro, on steel pier
Takahashi FSQ85, FS60cb & 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 all scopes
3 years 2 months ago #46518

Please Log in or Create an account to join the conversation.

  • Posts: 1944
  • Thank you received: 419
Just one comment to that: the Linux operating system is case sensitive so a directory called Kstars is a different directory than one called kstars. The correct path therefore is

.local/share/kstars

all lower case.

EDIT: I now see that Rob's comments indeed use the correct lower case path.


Clear skies, Wouter
Wouter van Reeven

ASI6200MM and 7 slot 2" filter wheel with a SkyWatcher Esprit 80 ED on a SkyWatcher HEQ5-Pro
ASI1600MM-Pro Cooled and 5 slot 1.25" filter wheel with an 8" TS Ritchey-Chrétien on a SkyWatcher EQ6-R
Last edit: 3 years 2 months ago by Wouter van Reeven.
3 years 2 months ago #46519

Please Log in or Create an account to join the conversation.

  • Posts: 2831
  • Thank you received: 795
Ok, I can take a look at correcting the path later today.
The following user(s) said Thank You: AstroNerd
3 years 2 months ago #46520

Please Log in or Create an account to join the conversation.

  • Posts: 1067
  • Thank you received: 137

Replied by AstroNerd on topic AstroPi3 Scripts revised


Well I used his script....!!
Ignore what I wrote above was just giving an example...
Stellarmate OS on Raspberry pi4b
Skywatcher EQ8 pro, on steel pier
Takahashi FSQ85, FS60cb & 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 all scopes
3 years 2 months ago #46521

Please Log in or Create an account to join the conversation.

  • Posts: 1944
  • Thank you received: 419

I didn't mean in an accusatory way. However people with a similar issue may find these comments and may therefore need to know the exact and correct path. No offense meant!


Wouter
Wouter van Reeven

ASI6200MM and 7 slot 2" filter wheel with a SkyWatcher Esprit 80 ED on a SkyWatcher HEQ5-Pro
ASI1600MM-Pro Cooled and 5 slot 1.25" filter wheel with an 8" TS Ritchey-Chrétien on a SkyWatcher EQ6-R
The following user(s) said Thank You: AstroNerd
Last edit: 3 years 2 months ago by Wouter van Reeven.
3 years 2 months ago #46522

Please Log in or Create an account to join the conversation.

  • Posts: 1067
  • Thank you received: 137

Replied by AstroNerd on topic AstroPi3 Scripts revised


Sorry I did not mean to sound annoyed, was not at all, its all good... :) :)
Stellarmate OS on Raspberry pi4b
Skywatcher EQ8 pro, on steel pier
Takahashi FSQ85, FS60cb & 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 all scopes
3 years 2 months ago #46524

Please Log in or Create an account to join the conversation.

  • Posts: 2831
  • Thank you received: 795
Ok I just pushed a change to the repo. Can you see if this works better?

So the issue was that the code that I wrote worked great as long as the kstars and indi directories didn't exist, but if they did, it got put into sub directories.
3 years 2 months ago #46532

Please Log in or Create an account to join the conversation.

  • Posts: 1067
  • Thank you received: 137

Replied by AstroNerd on topic AstroPi3 Scripts revised


No, it’s just putting the complete saved folder in the restore folder, instead of just replacing the files with the new ones...
Basically doing the same as before....
The script is asking to save the KstarsData, and then it’s putting that complete folder into the folder specified in the restore section...

Not sure if I am making sense...
Stellarmate OS on Raspberry pi4b
Skywatcher EQ8 pro, on steel pier
Takahashi FSQ85, FS60cb & 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 all scopes
3 years 2 months ago #46533

Please Log in or Create an account to join the conversation.

  • Posts: 2831
  • Thank you received: 795
Ok I just went back to the old command but added a delete first. Please try it again, thanks.
3 years 2 months ago #46536

Please Log in or Create an account to join the conversation.

  • Posts: 1067
  • Thank you received: 137

Replied by AstroNerd on topic AstroPi3 Scripts revised


It’s deleting the “Kstars” folder and creating one called KstarsData...so my system is a bit messed up, so cant do any more testing until I sort... :(
Thanks for trying to sort this.. :)

I don’t think deleting the folder first is the right Approach..but then what do I know... :) I couldn’t do what you do.
So for now I will just manually copy the files over...
Stellarmate OS on Raspberry pi4b
Skywatcher EQ8 pro, on steel pier
Takahashi FSQ85, FS60cb & 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 all scopes
3 years 2 months ago #46537

Please Log in or Create an account to join the conversation.

Time to create page: 0.295 seconds