×

INDI Library v1.9.9 Released (30 Nov 2022)

Bi-monthly INDI Library released with new drivers and bug fixes.

AstroPi3 Scripts revised

  • Posts: 1284
  • Thank you received: 224

Replied by Andrew on topic AstroPi3 Scripts revised

I just ran the updated script and PHD2 did not build with the full supported camera list.
INDI/KStars on Raspberry Pi 4, 4gb
Raspbian Buster with AstroPi3 script configuration
Skywatcher HEQ5 Pro Mount
Canon 600D Camera
Orion SSAG/ASI120mm @280mm Guide Scope
PHD2
Waveshare Stepper Motor Board - DIY Focuser
Adafruit GPS Module
Generic Bluetooth Joystick.
Startech 7 port powered USB Hub.
3 years 1 month ago #46401

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

  • Posts: 389
  • Thank you received: 15
Hello,

After increasing the swap file area of Raspbian, I restarted the Raspbian script @ 8:35 am. At 10:45 pm, the script was still running. It was nearing the end of KSTARS. The number of scales from 0 to 100% never gives the scale of the script.

Under Ubuntu Mate, I have compiled INDI and KSTARS before automation. Not one compile took 16+ hours (not done yet) to complete. That was on a lowly RPI3.

I think I need to see if Raspbian requires optimizations and additional options to speed things up. Raspbian is very spartan like to me.

I would like the script to log to a file and screen. Many applications during compiling had GCC7 does things this way now. This was usually around variable initiation routines. This could be a dead code area also. KSTARS and INDI had several call outs of GCC7 “violation”.

Also, the script had several “no access rights” and “application not found” messages. With no logging and limited command window buffering (all memory is committed to the script), I am not interested in running another multi-day script without something optimized. Raspbian doesn’t given many option in the GUI.
3 years 1 month ago #46410

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

  • Posts: 2831
  • Thank you received: 794
Thanks AradoSKYindi for investigating this,

I have run the Raspbian version of my script many times in Raspbian on Raspberry Pi 4, and I have run the original ubuntu mate version many times on my raspberry pi 3b and 3b+, but I haven't tried running the raspbian version on raspberry pi 3. I developed the original for the raspberry pi 3 to be running ubuntu mate, so it just installs everything from the PPA, rather than building it. When the Raspberry pi 4 came out and ubuntu mate didn't work on it, thats when I wrote the raspbian version of the script. So it is very helpful that you are trying this. If you have any suggestions for improving the build for the PI3, I would appreciate it and try to implement any suggestions you might have. I have never tried it, for the very reason you found, it would take a VERY long time, since it is a big build. So I have basically believed that anybody using the Pi3 would be running ubuntu mate and anybody running the pi4 would be running raspbian. That doesn't mean it should not work though. So if you do find any way to make it better, I'm all ears.

Thanks,

Rob
3 years 1 month ago #46415

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

  • Posts: 2831
  • Thank you received: 794

I haven't gotten a chance to test it yet since I have been out of town due to thanksgiving. I just removed the build option for PHD2 as you stated. I can try it when I get home.
3 years 1 month ago #46416

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

  • Posts: 1284
  • Thank you received: 224

Replied by Andrew on topic AstroPi3 Scripts revised

I have been building PHD2 myself because of the missing drivers, via the most rudimentary 'cmake ..' command and it worked. And the documentation stated
I am speculating that It may be that the PHD2 source folder must simply be cleared of the old git clone since if the script had been run before it only does a git pull. But I have not tried that yet.
INDI/KStars on Raspberry Pi 4, 4gb
Raspbian Buster with AstroPi3 script configuration
Skywatcher HEQ5 Pro Mount
Canon 600D Camera
Orion SSAG/ASI120mm @280mm Guide Scope
PHD2
Waveshare Stepper Motor Board - DIY Focuser
Adafruit GPS Module
Generic Bluetooth Joystick.
Startech 7 port powered USB Hub.
Last edit: 3 years 1 month ago by Andrew.
3 years 1 month ago #46420

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

  • Posts: 2831
  • Thank you received: 794
do you think it is the source folder or the build folder that needs to be cleared? I could experiment with having it clear the build folder before building.
3 years 1 month ago #46424

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

  • Posts: 389
  • Thank you received: 15
Hello,

After two days, the script completed. I now have desktop icons of KSTARS and INDI. Under AB 2.0, I had these icons on the tool bar as applets. I am redundant.

I also have a system tool bar. This shows the number of cores with the RPI3B+, 4. Opening 6 to 7 threads during compilation of full INDI and KSTARS is the problem. Proper thread management would speed things up. Giving every thread a high priority is like trying to drain an Olympic swimming pool through 4 soda straws. Now to investigate thread management under RPI3B+.

Also, PHD2 installed successfully. I have not tested it. I have not checked the ASTAP installation. When installed AB2.0, ASTAP was installed. KSTARS did not recognize the ASTAP. I had to reinstall ASTAP to get KSTARS to recognize the ASTAP installation and DB.
Last edit: 3 years 1 month ago by John Robison. Reason: Added findings
3 years 1 month ago #46432

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

  • Posts: 1284
  • Thank you received: 224

Replied by Andrew on topic AstroPi3 Scripts revised


I would say the build folder would be more likely since the source should not be missing anything.
INDI/KStars on Raspberry Pi 4, 4gb
Raspbian Buster with AstroPi3 script configuration
Skywatcher HEQ5 Pro Mount
Canon 600D Camera
Orion SSAG/ASI120mm @280mm Guide Scope
PHD2
Waveshare Stepper Motor Board - DIY Focuser
Adafruit GPS Module
Generic Bluetooth Joystick.
Startech 7 port powered USB Hub.
3 years 1 month ago #46456

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

Hi,
A question for the script developer...
I have tried the backup / restore script you have created, and it seems to work well, except it does not backup and restore my FOV settings or the telescopes and start I have saved for them...it seems to do other stuff, like the profiles..but not that, and as I have four telescopes saved with focal reducers that 8 different set ups I have saved, and none of them or the FOV I have saved are transferring...

Now I am backing up from an Kubuntu PC and trying to restore o to an rpi4 with raspbian buster, could that be the issue, even though some parts seem to be working, the script runs through and reports all good with no errors, but I then open Kstars, and info not there...
Any ideas...
Thanks
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 1 month ago #46496

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

  • Posts: 2831
  • Thank you received: 794
So the setup and restore script simply copies and pastes the files where critical KStars user information is stored into a backup location and when you restore, it copies them back. It is possible that if something is not getting saved/restored that there was another file that I missed. It is also very possible since I made the script awhile ago, that new data base files have been added since then, which of course would not be getting backed up. We can revisit the script to see if some other files need to be added.
The following user(s) said Thank You: AstroNerd
3 years 1 month ago #46498

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 have noticed that the FOV file IS being backed up, as it is there in one of the folders, but it’s not getting restored...
But do t see anything relating to the telescope info...
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
Last edit: 3 years 1 month ago by AstroNerd.
3 years 1 month ago #46500

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

  • Posts: 2831
  • Thank you received: 794
It should be copied with this command I assume:

cp -r ~/.local/share/kstars "$backupFolderName/kstarsData"

and it should be restored with this one:

cp -rf "$savedLocation/kstarsData" ~/.local/share/kstars

Is that correct?

is it in the kstarsData folder?
3 years 1 month ago #46501

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

Time to create page: 0.841 seconds