Rotator Un-Winder Utility

Hello All.

Being new at this I’ve been working my way around the software for the last few weeks and just want to know if anyone is using the Rotator Un-Winder Utility I’ve followed the instructions on Github and wrote my script file (unwind_park.sh) made it executable put it in the post script but not sure i have the format correct. SATNOGS_POST_OBSERVATION_SCRIPT /home/pi/unwind_park.sh

The Script runs 100% with $ bash unwind_park.sh when executed from PuTTY so i at least know it’s good that way.

Any examples of how you’ve entered post script command would be great.

Thanks
Karl.

Is this script executable? e.g. chmod +x unwind_park.sh

You should be able to run it with ./unwind_park.sh

73
Mark VK5QI

The Script runs fine but doesn’t seem to run after an observation with the way i have it entered in SatNOGs Post Script. SATNOGS_POST_OBSERVATION_SCRIPT` /home/pi/unwind_park.sh

Thanks
Karl.

pi@raspberrypi:~ $ ./unwind_park.sh
2021-01-28 08:09:03,778 DEBUG:Starting new HTTPS connection (1): network.satnogs .org:443
2021-01-28 08:09:04,532 DEBUG:https://network.satnogs.org:443 “GET /api/observat ions/?ground_station=1920&status=future HTTP/1.1” 200 12670
2021-01-28 08:09:04,545 INFO:Next observation (#3557191) rises at 16.0 degrees, in 80.2 minutes.
2021-01-28 08:09:04,548 INFO:Attempting to move to target position: 16.0, 5.0
2021-01-28 08:09:04,846 DEBUG:Target position: 50.0, 5.0
2021-01-28 08:09:08,126 DEBUG:Current position: 128.0, 5.0
2021-01-28 08:09:11,421 DEBUG:Current position: 107.0, 5.0
2021-01-28 08:09:14,701 DEBUG:Current position: 87.0, 5.0
2021-01-28 08:09:17,996 DEBUG:Current position: 67.0, 5.0
2021-01-28 08:09:21,164 DEBUG:Current position: 49.0, 5.0
2021-01-28 08:09:21,164 INFO:Movement successful!
2021-01-28 08:09:21,371 DEBUG:Target position: 16.0, 5.0
2021-01-28 08:09:24,651 DEBUG:Current position: 36.0, 5.0
2021-01-28 08:09:27,850 DEBUG:Current position: 16.0, 5.0
2021-01-28 08:09:27,851 INFO:Movement successful!
2021-01-28 08:09:28,026 INFO:Finished moving to target position.
2021-01-28 08:09:28,058 INFO:Elapsed time: 23 seconds
pi@raspberrypi:~ $

It might still be a permissions issue. The post-observation script is being run at the satnogs user, not as the pi user.
Can you post the actual contents of the script?

#!/usr/bin/env bash

python3 /home/pi/unwind.py --home_azimuth=0.0 --home_elevation=5.0 --station_id=1920

Thanks for the replay and above is the contents of the bash file.

Karl.

When ever i make a change in the SatNogs Setup and apply it i get this output which seems to point to the Ansible so i might of broken something along the way :frowning: but it’s still running observations just fine.

Traceback (most recent call last):
File “/var/lib/satnogs-config/bin/satnogs-config”, line 8, in
sys.exit(main())
File “/var/lib/satnogs-config/lib/python3.7/site-packages/satnogsconfig/init.py”, line 29, in main
menu.show()
File “/var/lib/satnogs-config/lib/python3.7/site-packages/satnogsconfig/menu.py”, line 258, in show
self._typesmenu[‘type’]
File “/var/lib/satnogs-config/lib/python3.7/site-packages/satnogsconfig/menu.py”, line 463, in _apply
if self._ansible.run([settings.ANSIBLE_PLAYBOOK], tags=tags):
File “/var/lib/satnogs-config/lib/python3.7/site-packages/satnogsconfig/helpers/ansible.py”, line 42, in run
[‘ansible-playbook’] + args, cwd=self._ansible_dir, check=True
File “/usr/lib/python3.7/subprocess.py”, line 472, in run
with Popen(*popenargs, **kwargs) as process:
File “/usr/lib/python3.7/subprocess.py”, line 775, in init
restore_signals, start_new_session)
File “/usr/lib/python3.7/subprocess.py”, line 1522, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: ‘ansible-playbook’: ‘ansible-playbook’

Hi All.

I’m still looking for your HELP!!! with this as it’s still NOT running the post script after the observation and I’d like to get it working with your help.
Being new to Pi and Linux it’s doesn’t come easy as yet.

Thanks
Karl.