×

INDI Library v2.0.7 is Released (01 Apr 2024)

Bi-monthly release with minor bug fixes and improvements

python scripts

  • Posts: 42
  • Thank you received: 3
Hello to all
Someone can help me?
I have problems with the two python script (startup and shutdown).I have constantly a problem with these scripts and that's probably because I made some mistakes in the writing.
I followed the example found in the Ekos pages but I'm not having any experience in python is impossible for me to find the problem.
Someone could help me by sending me an example of these scripts?
Thanks
8 years 3 weeks ago #7458

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

Replied by Jasem Mutlaq on topic python scripts

Please be specific, which scripts did you exactly use? and what was the error?
8 years 3 weeks ago #7464

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

  • Posts: 42
  • Thank you received: 3

Replied by Michele Bertuccio on topic python scripts

This is the script for startup:1
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import time
import sys
print "Turning on observatory equipment..."
sys.stdout.flush()
time.sleep(5)
print "Checking safety switches..."
sys.stdout.flush()
time.sleep(5)
print "All systems are GO"
sys.stdout.flush()
exit(0)
for the shutdown is similar. The error is "execution of the script failed"
8 years 3 weeks ago #7466

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

  • Posts: 42
  • Thank you received: 3

Replied by Michele Bertuccio on topic python scripts

Yesterday I tried again the two scripts I received this message:
Shutdown script failed, aborting.
Shutdown procedure failed, aborting...
Can you help me
Thanks
8 years 3 weeks ago #7490

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

Replied by Jasem Mutlaq on topic python scripts

It seems to work fine. You saved each script to a file, made it executable (chmod +x) ?
8 years 3 weeks ago #7497

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

  • Posts: 42
  • Thank you received: 3

Replied by Michele Bertuccio on topic python scripts

hello again
I wrote two scripts and I made them executable with chmod + x but when I launch the scheduler, does not start at all. If I make the start manual, immediately the job is complete the scheduler without making the slew, stop the server and gives me error in the shutdown script.
I am a member of a group of about sixty people passionate about astronomy and we have a large amount of telescopes, we have a planetarium and we started the construction of an observatory. My task now is to test the potential of KStar and Ekos to make our automated observatory. Until now, apart from these minor problems the test is considered positive.
To eliminate this problem, I kindly ask you if you could send me the two scripts and any suggestions to solve this problem.
Thanks
8 years 2 weeks ago #7509

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

Replied by Jasem Mutlaq on topic python scripts

please email me (mutlaqja AT ikarustech DOT com) to discuss the details.
8 years 2 weeks ago #7510

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

Time to create page: 0.566 seconds