For each set of timed observations using satnogs-auto-scheduler with cron it shows the following as part of the preamble prior to displaying the small list of scheduled sats’ in the logs. The observations appear unaffected.
I would welcome comment on the cause(s) and the fix please?
Jul 20 20:41:58 SatGOLD python3[1326]: 2022-07-20 20:41:58,418 - auto_scheduler.io - WARNING - Malformed line, expected 3 parameters but found 1
Jul 20 20:41:58 SatGOLD python3[1326]: 2022-07-20 20:41:58,418 - auto_scheduler.io - WARNING - Malformed line, expected 3 parameters but found 1
Jul 20 20:41:58 SatGOLD python3[1326]: 2022-07-20 20:41:58,418 - auto_scheduler.io - WARNING - Malformed line, expected 3 parameters but found 18
Jul 20 20:41:58 SatGOLD python3[1326]: 2022-07-20 20:41:58,419 - auto_scheduler.io - WARNING - Malformed line, expected 3 parameters but found 18
Jul 20 20:41:58 SatGOLD python3[1326]: 2022-07-20 20:41:58,419 - auto_scheduler.io - WARNING - Malformed line, expected 3 parameters but found 16
This log message originates here in the code for parsing the transmitter priorities. So apparently your transmitter priority file is malformed.
Feel free to post your transmitter prority file if you can’t find the syntax error and I’ll have a look.
Sincerely,
Fabian
PS: Please avoid all-bold messages in forum posts. Instead to separate code from text you can create a code block by enclosing the code section with lines of three backticks (more details and a short example on helpful markdown tutorial page).
Thanks Fabian. And my apologies for the bold text. Thanks for the tip.
I cannot identify syntax error, so herewith the priorities file.
Many thanks for your help.
That doesn’t look like a proper priorities file. Per help, it is supposed to be like:
help="File with transmitter priorities. Should have " +
"columns of the form |NORAD priority UUID| like |43017 0.9" +
" KgazZMKEa74VnquqXLwAvD|. Priority is fractional, one transmitter " +
"per line, 1.0 gets maximum priority.",
Edit: I see that what you have there is a script from the docs that generates the priorities file, not the file itself. I think they’ll want to see the latter.
Per your error, expected 3 parameters but found 16, it appears the file is malformed. You have more fields than I do. I cut & pasted the scriptlet from here:
[SOLVED] - well perhaps, but I don’t know how, other than having reinstalled the latest iteration from gitlab (noting that there had been a new commit only 22 hrs ago by Fabian). Previously floundering around by hunting, pecking and trying various changes without success.
But there may well be more to come if not.
Thanks @jebba and @kerel
Sorry to say that the problem is NOT solved as I’m still receiving this error, and I think its caused by my misunderstanding of the coding and placements:
2022-07-25 17:12:51,246 - auto_scheduler.io - WARNING - Malformed line in priority file /home/usr/satnogs-auto-scheduler/priorities_2122.txt,
Jul 25 17:12:51 SatGOLD python3[2497]: expected 3 parameters but found 18
Q1. Where do I place the scheduling script file?
Q2. Where to place the PRIO_FILE?
Q3. Where should the <path_to_priority_list>/<priority_file> be located?
Q4. References are made to both auto_scheduler and satnogs-auto-scheduler - are they the same?
I’m a Linux mature novice and a Python beginner, so please excuse what may be thought of as elementary questions. But I am a long-in-the-tooth radio ham, willing to learn.
Many thanks in advance.
The locations don’t necessarily matter, you’ll just likely want them in your home directory. Whatever path you use, then that’s what you have to call when running it.
Open a text editor and enter this text, saving the file as gen-priorities.py:
Having never getting satnogs-auto-scheduler to run successfully - despite my attempts back in July, I’ve revisited the topic having become bored with scheduling manually. But I keep on receiving a syntax error in priorities_2122.txt which I cannot find. The error given is:
Can share some extra information, what git repo, how did you install the schedular, share your priorities file etc. The information you can share the better.
The README is not sufficiently explicit and therefore somewhat confusing as regards the scheduling script; especially to limited Linux/Python users like me. Although I must admit I’ve learned quite a lot in solving the problem. Some of the erroneous comments in this posting didn’t help. Anyway, Its now working well and I’m now looking to modifying and enhancing the coding give a larger choice of decoders; including the intermittent ones. I would be interested to hear how others may have improved upon it?
Thanks to all.