×

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

Bi-monthly release with minor bug fixes and improvements

Save Ekos Profile

  • Posts: 43
  • Thank you received: 4

Save Ekos Profile was created by Jan

OK after 6 months kstars finally works as it should. Now I was wondering if I can save my profile of ekos with all the trimmings in 1 file so that after a crash, I can install kstars again and then put the saft file back so that everything runs as before.
Skywatcher Apo 80/600 EvoStar ED - Skywatcher HEQ-5 Pro SynScan GoTo - ZWO ASI294MC Pro - ( Nikon D500)
4 years 7 months ago #42064

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

  • Posts: 1957
  • Thank you received: 420

Replied by Wouter van Reeven on topic Save Ekos Profile

There are three directories that contain all of KStars, Ekos and INDI configuration files:

.local/share/kstars
.config
.indi

Beware because the first directory contains also all logs and really large files like the USNO star catalog data file (about 2 Gb) if you decide to install that. The second directory contains more than just KStars files and since the files in there only have settings for window sizes and locations you can safely omit it.

All three are directories in the home dir of the user using KStars.


Wouter
The following user(s) said Thank You: Derek
Last edit: 4 years 7 months ago by Wouter van Reeven.
4 years 7 months ago #42065

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

  • Posts: 309
  • Thank you received: 40

Replied by David Tate on topic Save Ekos Profile

I know an old thread... but are the directories the same as Wouter said?

.local/share/kstars
.config
.indi

I can't seem to find them. I did, see the next post below.

I'd like to do a fresh build, but I hate having to go through all the setup again.

It would be nice to have one directory or at least a backup/load feature to do all this. Not the worst thing in the world. If I get the directories I'll just write a script to do it.
Last edit: 4 years 1 month ago by David Tate.
4 years 1 month ago #48930

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

  • Posts: 309
  • Thank you received: 40

Replied by David Tate on topic Save Ekos Profile

Ok, I found them. You have to turn on hidden files and click the "Open your Personal Folder" icon on the top tool bar of the Caja File Browser.

I'll get a script together and see how it works.
4 years 1 month ago #48931

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

  • Posts: 309
  • Thank you received: 40

Replied by David Tate on topic Save Ekos Profile

Ok, I created a bash file that will save your profile and restore it.

Would anyone object to me attaching the script here?

Assumptions:
1. That you will use the Pictures Directory (just because it's accessible right-away)
2. The profile name will be: 'ProfileCopy'
3. The profile file will be zipped to: ProfileCopy.tar.gz
4. You must copy this file and the zipped file to a PC or some other compatible machine prior to re-imaging your SD card
5. You must run this command against this script (to make it executable): sudo chmod 777 CopyProfile.sc
6. You still have to set your Pi's Timezone and time.
7. This is for the Raspberry Pi4. If the directories and files are the same then the 3Pi should work fine.
Last edit: 4 years 1 month ago by David Tate.
4 years 1 month ago #49374

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

  • Posts: 309
  • Thank you received: 40

Replied by David Tate on topic Save Ekos Profile

Here's my script... Only use it on a backup, I'd hate to mess-up someone system. It does work on mine.

Copy it to your Pictures directory on your SM and rename it to CopyProfile.sc then run this command: sudo chmod 777 CopyProfile.sc

Admins, please delete this post if it is not allowed.

File Attachment:

File Name: CopyProfile.sc.txt
File Size:5 KB
4 years 1 month ago #49392
Attachments:

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

  • Posts: 309
  • Thank you received: 40

Replied by David Tate on topic Save Ekos Profile

Well, that didn't work. Something is really off... it might be it doesn't like the "dialog" function I'm using.

I was able to manually copy all the files from my archive. That part was easy enough, but there is so much different with this new version I want to spend some time and not waste the only clear night in 2 weeks. Terrible weather we are having.
Last edit: 4 years 1 month ago by David Tate.
4 years 1 month ago #49515

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

  • Posts: 52
  • Thank you received: 15

Replied by Acapulco Rolf on topic Save Ekos Profile

Nice script

I took a look at the script source and included an alternate menu dialog which seems to work to overcome the challenge you observed

Modified script attached here for reference

For reference:
I observed that there were five items that your script looks for to make copies of
In my v1.5.0 Stellarmate build these 5 items did not exist:

'/home/stellarmate/.local/share/kstars/mycitydb.sqlite': No such file or directory
'/home/stellarmate/.config/pluma*': No such file or directory
'/home/stellarmate/.config/session*': No such file or directory
'/home/stellarmate/.local/share/kstars/wishlist.obslist': No such file or directory
'/home/stellarmate/.config/caja*': No such file or directory

Otherwise the script does appear to work as advertised to copy and zip the Stellarmate files that it finds :)

File Attachment:

File Name: CopyProfile-v2.sc.txt
File Size:6 KB
The following user(s) said Thank You: David Tate
4 years 1 month ago #49608
Attachments:

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

  • Posts: 309
  • Thank you received: 40

Replied by David Tate on topic Save Ekos Profile

Yup, that did the trick!

Yeah those files might not be needed. However I chocked it up to a blank version of EKOS and have no profile to begin with. If they're not needed, then I would think no harm done.

Up until this morning I really didn't know what or why the big difference. I see we are now using Raspbian vs Ubuntu.
4 years 1 month ago #49611

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

  • Posts: 309
  • Thank you received: 40

Replied by David Tate on topic Save Ekos Profile

Nuts... I forgot to save my Sequence Queue Templates!

I still have on another SD, but I'll have wait to swap SD's in the morning. Just something to remember to add to the script above. ;)
4 years 1 month ago #49730

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

Time to create page: 0.481 seconds