I am trying to set up my post-obs script in such a way that it only runs for some specific satellites. I found a solution on these forums written in bash that extracts the NORAD ID from the TLE but when I tried using the same code it didn’t get anything; Modified "upload IQ files to Dropbox script" selecting satellites with linear transponders - #2 by mfalkvidd
I wanted to implement the same functionality in python as that is easier for me to work with, but starting even with a single command to display the arguments passed to the script by satnogs already fails, as it appears that the script is getting no arguments whatsoever…
This is what my post-obs “script” currently looks like;
#!/usr/bin/python3
import sys
print("Running post-obs script")
print(sys.argv)
print("End of post-obs script")
And this is what I get in the output;
Aug 28 14:30:05 raspberrypi satnogs-client[770]: Running post-obs script
Aug 28 14:30:05 raspberrypi satnogs-client[770]: ['/home/pi/post-obs/main.py']
Aug 28 14:30:05 raspberrypi satnogs-client[770]: End of post-obs script
Instead of the arguments such as TLE, obs ID, etc it gets nothing.
I am assuming the exact same issue was happening back when I was using the bash sh script, though I couldn’t check for that as I have no idea how to use bash and list all arguments for debug like this.
I have already spent most of the weekend trying to get this to work, I am a bit overwhelmed with the way satnogs works, so any tips would be appreciated