Page 2 of 2

Re: Program Reference Card Script

Posted: 21 Mar 2020, 14:07
by cEgws
Over the last few days I've updated my script to support Electro 6 and Stage 3.
https://github.com/10x10sw/NordUser/tree/master/RefCard
ns3_example.png
ns3_example.png (102.78 KiB) Viewed 2285 times

Re: Program Reference Card Script

Posted: 27 Mar 2020, 12:45
by danielwolk
hej cEgws,

I tryed to do this: python /Users/daniel/Desktop/make_nord_refcard.py /Users/daniel/Desktop/ne6_input_program.html -v -r --eurostile -t "Programs.html” -o /Users/daniel/Desktop/Nord Electro 6 Program 2020-03-27.html
and it's not working... whats wrong? Could You help me?


I corrected to: python /Users/daniel/Desktop/make_nord_refcard.py -o /Users/daniel/Desktop/E6Programs.html -v -r --eurostile -t "Electro 6D" /Users/daniel/Desktop/NordElectro6Program2020-03-27.html - everything working.
My question is - how to use 'samples' - e.g. ne6_input_program.html ? :)

Re: Program Reference Card Script

Posted: 27 Mar 2020, 13:22
by Berretje
danielwolk wrote:hej cEgws,

I tryed to do this: python /Users/daniel/Desktop/make_nord_refcard.py /Users/daniel/Desktop/ne6_input_program.html -v -r --eurostile -t "Programs.html” -o /Users/daniel/Desktop/Nord Electro 6 Program 2020-03-27.html
and it's not working... whats wrong? Could You help me?
What is the error message you are seeing inside the terminal window?

I try to avoid spaces inside filenames. Next to that the -t parameter is the title above the programs, so no need to add .html after that.
I can run your command without any problems (I've removed spaces from filenames).
Terminal screenshot
Terminal screenshot
2020-03-27_12-28-42.926.png (66.65 KiB) Viewed 2210 times
Program output screenshot
Program output screenshot
2020-03-27_12-28-51.336.png (15.88 KiB) Viewed 2210 times

Re: Program Reference Card Script

Posted: 27 Mar 2020, 13:48
by danielwolk
I corrected to: python /Users/daniel/Desktop/make_nord_refcard.py -o /Users/daniel/Desktop/E6Programs.html -v -r --eurostile -t Electro 6D /Users/daniel/Desktop/NordElectro6Program2020-03-27.html - everything working.

Re: Program Reference Card Script

Posted: 27 Mar 2020, 15:17
by Berretje
danielwolk wrote:My question is - how to use 'samples' - e.g. ne6_input_program.html ? :)
I don't understand the question: how to use 'samples'.

Re: Program Reference Card Script

Posted: 27 Mar 2020, 15:56
by danielwolk
Berretje wrote:
danielwolk wrote:My question is - how to use 'samples' - e.g. ne6_input_program.html ? :)
I don't understand the question: how to use 'samples'.
my mistake... sorry! ;)

Re: Program Reference Card Script

Posted: 27 Mar 2020, 16:28
by danielwolk
One observation - Parameter -R is working well with Electro 6 list but it's not working with Lead A1 list (Perf & Program)

Re: Program Reference Card Script

Posted: 27 Nov 2020, 13:21
by paul42
Hi cEgws, it's great program, thank you very much cEgws.
I found that it is working correctly with my March NS3 html files but it is not anymore working with the current NS3 v2.54. I am getting following failure output:

>python make_nord_refcard.py -v -o test.html "Nord Stage 3 Program 2020-11-26.html"
Traceback (most recent call last):
File "make_nord_refcard.py", line 272, in <module>
html += '<td class="location">' + location + '</td><td class="info"><div class="name">' + name
TypeError: can only concatenate str (not "NoneType") to str

I can send you the source html's
Thank you in advance for your help!