[CLOSED] Satnogs-auto-scheduler via crontab

Hello all,

This morning I clone the repo “satnogs-auto-scheduler” in order to schedule new observations.
I followed the instructions in README.md file and i was able to test it.
As you can see the following log.

(env) seb@Leonardo [~/Documents/codings/SATNOGS/satnogs-auto-scheduler] (master)$ ./schedule_single_station.py -n -s 793 -P /tmp/cache/priorities_793.txt -f -z
2020-03-15 17:29:08,834 - root - INFO - Requesting information for ground station 793
2020-03-15 17:29:09,195 - root - INFO - Ground station information retrieved!
2020-03-15 17:29:09,201 - root - INFO - Finding all passes for 143 satellites:
100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 143/143 [00:00<00:00, 236.76it/s]
2020-03-15 17:29:09,814 - root - INFO - Requesting scheduled passes for ground station 793
2020-03-15 17:29:10,011 - root - INFO - Scheduled passes for ground station 793 retrieved!
2020-03-15 17:29:10,013 - root - INFO - Found 2 scheduled passes between 2020-03-15 17:39:08 and 2020-03-15 18:39:08 on ground station 793
2020-03-15 17:29:10,013 - root - INFO - 2 passes selected out of 41, 1458 s out of 3470 s at 42.017% efficiency
2020-03-15 17:29:10,013 - root - INFO - GS | Sch | NORAD | Start time | End time | El | Priority | Transmitter UUID | Mode | Satellite name
2020-03-15 17:29:10,014 - root - INFO - 793 | Y | 33591 | 2020-03-15T17:36:45 | 2020-03-15T17:48:41 | 35 | 1.000000 | kE4VaYKpnFmzEquEjKKi8D | |
2020-03-15 17:29:10,014 - root - INFO - 793 | Y | 25338 | 2020-03-15T18:22:13 | 2020-03-15T18:34:35 | 80 | 1.000000 | mjsHcYajEgbiS9cbKfecGo | |
2020-03-15 17:29:10,014 - root - INFO - Done.

However I am not able to schedule futures observations via crontab. Here is error log

Traceback (most recent call last):
  File "./schedule_single_station.py", line 9, in <module>
    import settings
  File "/home/seb/Documents/codings/SATNOGS/satnogs-auto-scheduler/settings.py", line 4, in <module>
    from decouple import config
ModuleNotFoundError: No module named 'decouple'

How can I fix this issue ?

Thanks in advance

See Auto scheduling

1 Like

This might be a different issue.

If you followed the description in README: Dependencies, you have to use the Python interpreter from your virtual environment at <path_to_auto_scheduler>/env/bin/python, so the crontab looks like this:

0 */1 * * * <path_to_auto_scheduler>/env/bin/python <path_to_auto_scheduler>/schedule_single_station.py -s <station_id> -d 1.2 -P <path_to_priority_list>/<priority_file>.txt -f -z

I’ll update the README to reflect this.

Thank you very much. Your solution solve my problem.

1 Like