×

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

Bi-monthly release with minor bug fixes and improvements

RPi CCD Simulator GSC Installation Problem

  • Posts: 60
  • Thank you received: 7
Sorry, I'm being slow today so a few questions:
1. Is your app a INDI Web Manager or something that controls an INDI Web Manager?
2. Does it have to be installed on the computer running the INDI Web Manager (or can I install it on my Mac client and use it to control the RPi INDI Web Manager)?
3. In your instructions for installing INDI Web Manager your say "not as root". Is this crucial only for your app or generally - as I installed INDI Web Manager as root (with sudo) as per the indiwebmanager git instructions ( github.com/knro/indiwebmanager )
4. To get rid of the systemd startup do I just "sudo systemctl disable indiwebmanager.service" (and delete out the /etc/systemd/system/indiwebmanager.service and maybe do a "sudo systemctl daemon-reload" (and a reboot for luck?

n.b. gsc app seems to work as I can trye in a command to the prompt and gets a good'ish looking response
e.g.
phobos@Phobos-1r:~ $ gsc -c 1.441 +1.345 -r 10.1 -n 3000
0000101499 001.45207 +01.19901   1.2 15.33 0.40  1 3 0516 F;   8.78 176
0000101073 001.49327 +01.22190   0.3 12.63 0.40  1 0 0516 T;   8.02 157
0000101073 001.49326 +01.22197   0.3 13.09 0.31  0 0 012J T;   8.02 157
0000100568 001.54076 +01.23600   0.4 11.50 0.34  0 0 012J T;   8.86 138
0000100568 001.54086 +01.23601   0.3 10.67 0.40  1 0 0516 T;   8.87 138
0000100490 001.57280 +01.24538   0.5 12.80 0.40  1 2 0516 T;   9.91 127
0000100490 001.57275 +01.24540   0.4 13.59 0.34  0 2 012J T;   9.91 127
0000100158 001.57343 +01.24592   0.3 14.09 0.34  0 2 012J F;   9.92 127
0000100956 001.40505 +01.25325   0.3 14.21 0.40  1 0 0516 T;   5.91 201
0000100956 001.40501 +01.25328   0.3 14.67 0.31  0 0 012J T;   5.91 201
0000101305 001.29578 +01.26928   0.3 15.50 0.40  1 0 0516 F;   9.82 242
0000100734 001.44099 +01.28381   0.3 14.54 0.40  1 0 0516 T;   3.67 180
0000100734 001.44094 +01.28382   0.3 15.50 0.31  0 0 012J T;   3.67 180
0000101492 001.33585 +01.29301   0.3 15.52 0.40  1 0 0516 F;   7.04 244
0000101449 001.29985 +01.32605   0.3 15.32 0.40  1 0 0516 F;   8.54 262
0000100040 001.44471 +01.35359   0.3 13.29 0.40  1 0 0516 T;   0.56  23
0000100040 001.44472 +01.35366   0.3 13.59 0.34  0 0 012J T;   0.57  23
0000100483 001.38725 +01.36053   0.3 14.42 0.40  1 0 0516 T;   3.36 286
0000100483 001.38732 +01.36054   0.3 14.76 0.34  0 0 012J T;   3.35 286
0000100712 001.41926 +01.36799   0.3 15.30 0.34  0 0 012J T;   1.90 317
0000100712 001.41927 +01.36801   0.3 14.83 0.40  1 0 0516 T;   1.90 317
0000101283 001.29008 +01.38563   0.2 15.55 0.40  1 0 0516 F;   9.38 285
0000100955 001.31024 +01.39150   0.3 13.75 0.34  0 0 012J T;   8.32 290
0000100955 001.31021 +01.39151   0.3 13.28 0.40  1 0 0516 T;   8.33 290
0000101234 001.43477 +01.41157   0.3 15.13 0.40  1 0 0516 F;   4.01 355
0000100477 001.55909 +01.45543   0.3 11.80 0.40  1 0 0516 T;   9.70  47
0000100477 001.55906 +01.45545   0.4 12.21 0.34  0 0 012J T;   9.70  47
0000100328 001.48468 +01.48429   0.3 14.58 0.40  1 0 0516 T;   8.76  17
0000100328 001.48467 +01.48438   0.3 15.00 0.34  0 0 012J T;   8.76  17
0000100509 001.47921 +01.48527   0.3 13.96 0.40  1 0 0516 T;   8.72  15
0000100509 001.47924 +01.48538   0.3 14.46 0.34  0 0 012J T;   8.73  15
phobos@Phobos-1r:~ $ 
Last edit: 4 years 6 months ago by Ian.
4 years 6 months ago #43958

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

  • Posts: 1067
  • Thank you received: 140
GSC is for Kstars, so why are you installing in your rpi, if you don’t have Kstars installed, does not make sense...
GSC should be installed on your machine that you run ekos from..., also GSC can’t be installed on raspbian via the “sudo apt-get install gsc” command it’s has to be compiled from source...at least that’s the way I was told to do it... ?
Last edit: 4 years 6 months ago by AstroNerd.
4 years 6 months ago #43959

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

  • Posts: 60
  • Thank you received: 7

For the CCD Simulator to return star fields. Have I got it wrong as it's the CCD Simulator that is reporting the gsc errors? (As instructed "If you are planning to use the indi_simulator_ccd driver and need to retrieve simulated images of star fields you have to install de Guide Star Catalog (GSC) on your RPi." from www.indilib.org/support/tutorials/139-in...on-raspberry-pi.html

I am compiling from source (and I got all the warnings posted 1st post in this thread). I've tried the instructions specific to Rasbian (part way down page www.indilib.org/support/tutorials/139-in...on-raspberry-pi.html ) and then the AstriPi3 script commands (i.e. the commands NOT the script itself)
4 years 6 months ago #43960

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

  • Posts: 2876
  • Thank you received: 809
1. Is your app a INDI Web Manager or something that controls an INDI Web Manager?
My App controls, starts, configures an INDI Web Manager

2. Does it have to be installed on the computer running the INDI Web Manager (or can I install it on my Mac client and use it to control the RPi INDI Web Manager)?
The App needs to be installed on whatever computer you plan to run the INDI Web Manager. I originally wrote it for Mac computers incidentally, because they can't run INDI Web Managers like Linux can, so I made an alternative method. It just so happened, that the program worked great for Linux too. But yes, it should be installed on your Raspberry PI.

3. In your instructions for installing INDI Web Manager your say "not as root". Is this crucial only for your app or generally - as I installed INDI Web Manager as root (with sudo) as per the indiwebmanager git instructions ( github.com/knro/indiwebmanager )
I recommend not running programs as root, its not great practice. You could probably run it as root, but that is not a good idea. And one big problem is that python/pip install programs in different places and run different versions if you run them as root vs. running them as the user. Yes INDI Web Manager had to be installed as root probably because of the way it was launched. But with my program, nothing needs to be installed as root.

4. To get rid of the systemd startup do I just "sudo systemctl disable indiwebmanager.service" (and delete out the /etc/systemd/system/indiwebmanager.service and maybe do a "sudo systemctl daemon-reload" (and a reboot for luck?
yes, sounds like that would work. And if you don't like my program, you can always put it back.
4 years 6 months ago #43961

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

  • Posts: 2876
  • Thank you received: 809

There is actually a reason to install it on the Pi. If he would like to run the CCD Simulator on the Pi and get stars in it, then GSC would need to be installed on the pi. If he just plans to run CCD simulator on the Mac, then GSC would just need to be on the Mac. Basically wherever you plan to run CCD Simulator is where GSC needs to be. But there is a good reason to have it on the PI as well, for testing purposes and such.
4 years 6 months ago #43963

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

  • Posts: 2876
  • Thank you received: 809
I have GSC installed on my Mac, on a linux laptop, and on a number of Raspberry PIs, but then I do a lot of testing. . .
4 years 6 months ago #43964

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

  • Posts: 1067
  • Thank you received: 140
Yes I realise that, BUT he said he was using ekos on his Mac, and just the rpi as an INdI server, so no need for GSC on the rpi, that was the point I was making, but yes, if in the future he runs ekos from the rpi, then yes it would be needed on there too, but that’s for another day.. :)
So in his case, he was installing GSC in the wrong place.. !
4 years 6 months ago #43967

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

  • Posts: 60
  • Thank you received: 7
(Sorry about this - I'm fine with C/C++ dev but not familiar with Linux so what should be straightforward for some is not so straight forward for me .... so you gte daft questions)

I'm having problems building the INDIWebManagerApp. Following you instructions from github.com/rlancaste/INDIWebManagerApp . Installed all the packages listed (using sudo apt-get install). The cmake step is failing:
phobos@Phobos-1r:~/AstroRoot/INDIWebManagerApp-build $ cmake -DCMAKE_INSTALL_PREFIX=/usr ~/AstroRoot/INDIWebManagerApp/
CMake Error at /usr/share/cmake-3.13/Modules/FindPackageHandleStandardArgs.cmake:137 (message):
  Could NOT find Gettext (missing: GETTEXT_MSGMERGE_EXECUTABLE
  GETTEXT_MSGFMT_EXECUTABLE)
Call Stack (most recent call first):
  /usr/share/cmake-3.13/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE)
  /usr/share/cmake-3.13/Modules/FindGettext.cmake:80 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  /usr/lib/arm-linux-gnueabihf/cmake/KF5I18n/KF5I18nMacros.cmake:28 (find_package)
  /usr/lib/arm-linux-gnueabihf/cmake/KF5I18n/KF5I18nConfig.cmake:43 (include)
  /usr/share/ECM/find-modules/FindKF5.cmake:74 (find_package)
  CMakeLists.txt:58 (find_package)
 
 
-- Configuring incomplete, errors occurred!
See also "/home/phobos/AstroRoot/INDIWebManagerApp-build/CMakeFiles/CMakeOutput.log".
CMake Error: Unable to open check cache file for write. /home/phobos/AstroRoot/INDIWebManagerApp-build/CMakeFiles/cmake.check_cache
phobos@Phobos-1r:~/AstroRoot/INDIWebManagerApp-build $

Again, apologies what what is probably blindingly obvious to a Linux dev.
I'm running or Raspbian Buster (latest release, installation without apps (not "minimal" but without all the Libre Office, etc.). It's a new installation only for Indi so does not have lots of other packages installed for other stuff.
4 years 6 months ago #43973

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

  • Posts: 2876
  • Thank you received: 809
AstroNerd,

What I mean is that if he wants to run the Ekos client on his Mac and the INDI Server on his Pi, but The camera he chooses to use remotely from the pi is the CCD Simulator, he would need to have GSC installed on the pi so that the CCD simulator running on the pi can get stars in its images so that when it sends images back to the Mac client, the images have stars.

I believe the use case you are thinking of is when the simulators are running on the Mac, not the pi. In which case GSC would need to be on the Mac in order to get stars.

Ekos doesn’t use GSC, CCD Simulator does. So whatever computer you are running the INDI Server on that has the CCD Simulator running on it is the one that needs GSC, whether the client computer is the same one, or a remote one like his Mac .

Is that clearer?
The following user(s) said Thank You: AstroNerd
4 years 6 months ago #43978

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

  • Posts: 2876
  • Thank you received: 809
Try sudo apt install gettext?

If a dependency is missing I will add it to the list on the readme.
4 years 6 months ago #43980

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

  • Posts: 2876
  • Thank you received: 809
Yes and I understand. I am not a “Linux dev”. I am a physics and computer science teacher with an astrophotography hobby who likes to tinker and improve software for astronomy. My computer is a Mac not a Linux one. I learned everything about out all this to support my hobbies. It’s because I find it fun and interesting.
4 years 6 months ago #43981

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

  • Posts: 60
  • Thank you received: 7
Many thanks. That solved the build issue.

Unfortunately I can't use your app as I wont be running the desktop (totally "headless" and without VNC is the plan).

BUT
After loads hunting and messing I've found the issue and (pardon my misuse of Linux terms) it looks like when run as a service, even under a given user the environment variables from .bashrc are not passed to the indi-web (as identified in IndiLib instructions www.indilib.org/support/tutorials/139-in...on-raspberry-pi.html )
IndiLib instructons www.indilib.org/support/tutorials/139-in...on-raspberry-pi.html state
cp ~/.bashrc ~/.bashrc.copy
echo "export GSCDAT=~/gsc" >> ~/.bashrc
as part of the installation. It's not the value of the environment variable which obviously has to be right depending on where the GSC is installed to, but that the (correct) value is not being passed to indi-web application.

Also the same applied to putting the environment variable into /etc/profile (as per AstriPi3).

Way I found to get it to work was to add
Environment="GSCDAT=/usr/share/GSC"
to the indiwebmanager.service.

Assuming I have not made a big mistake and inadvertently done something else and that the indiwebmanager.service change is the answer, how does one draw attention so web pages/git instructions can be updated?

Many thanks for all your help.
4 years 6 months ago #43985

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

Time to create page: 0.948 seconds