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.
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
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?
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 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’
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.
I am also very new to satnogs. I’ve been solving the same issue just a week ago. I think I could trace the source of my problems by watching output of journalctl -f -u satnogs-client.service (not sure about this one).
The first problem was that I have installed the requirements python-requests python-dateutil using pip. That way it worked for me as a user, but not for other users such as satnogs. The solution was to install it using:
sudo apt-get python-requests python-dateutil
Then there is another problem with /tmp/rotator.log. This is mentioned on the github page. You can either delete the file (and not run the script from bash ever) or chmod it so other user can access too. This will not persist after boot, since the file from /tmp is deleted.