NativeCam raspberry Pi 4

More
7 years 10 months ago #122243 by sqmathlete
Hi Fern,

Work your magic if you can.

Dan

Attachment not found

Please Log in to join the conversation.

More
7 years 10 months ago #122398 by FernV
Hi,

NativeCAM check for DISPLAY to be exactly 'gscreen'
In your file it is 'gscreen -c lathezy -d', do you really need the others args ? If yes ncam.py will have to be modified to find the value at position 0 of DISPLAY

Fern

Please Log in to join the conversation.

More
7 years 10 months ago #122410 by sqmathlete
Hi,

Yes, I believe the line is required for gscreen to load to custom ui
From the gscreen wiki

There is a switch in the INI file to set set the base name: -c name so Gscreen looks for MYNAME.glade and MYNAME_handler.py. HAL pins will start with this name too.


When I start my custom screen it comes up as gscreen-lathezy...hmmm.

Dan

Please Log in to join the conversation.

More
7 years 10 months ago #122413 by FernV
If you want to change it, edit ncam.py and find
Code:
if val not in ['axis', 'gmoccapy', 'gscreen'] : mess_dlg(_("DISPLAY can only be 'axis', 'gmoccapy' or 'gscreen'")) sys.exit(-1)
You can remove this code or comment the last line if you know what you are doing

Fern

Please Log in to join the conversation.

More
7 years 10 months ago #122554 by sqmathlete
Hi Fern

You can remove this code or comment the last line if you know what you are doing


Honestly, I don't but...I tried to do what you said

If yes ncam.py will have to be modified to find the value at position 0 of DISPLAY

and changed the code (around line 2384) to
Code:
test_str = ini_instance.find('DISPLAY', 'DISPLAY') print ("test-strg = %s") % test_str # valid options gscreen or custom gscreen, axis, gmocappy match_gscreen = re.search(r"\b(gscreen)\b",test_str) if match_gscreen.start() == 0: print("match found at position %s") % match_gscreen.start() val = 'gscreen'

Seemed to work perfect. Not sure how you would change this to load all three options though. It was pretty much a miracle that I got that to work.

Dan

Attachment not found

Please Log in to join the conversation.

More
7 years 10 months ago #122589 by FernV
Just insert these lines
Code:
pos = val.find(' ') if (pos > -1) : val = val[0:pos]

between
Code:
val = ini_instance.find('DISPLAY', 'DISPLAY')
and
Code:
if val not in ['axis', 'gmoccapy', 'gscreen'] : glb.mess_dlg(_("DISPLAY can only be 'axis', 'gmoccapy' or 'gscreen'")) sys.exit(-1)
at line no ~2383

and at line no ~4978 substituting here 'val' by 'dp'

Those are the iines of published version

Fern

Please Log in to join the conversation.

More
7 years 9 months ago #123467 by eFalegname
Hi Fern, could you make me happy with the NativeCam installer for manjaro?
Thanks mate!

Please Log in to join the conversation.

More
7 years 9 months ago #123493 by FernV

eFalegname wrote: ...NativeCam installer for manjaro?


Manjaro is not supported by packagecloud

Follow the instruction in the setup script :
"For example, to force Ubuntu Trusty: os=ubuntu dist=trusty ./script.sh"

I have not tried it myself.

Fern

Please Log in to join the conversation.

More
7 years 3 months ago #140761 by Dinuka_Shehan
Thank you

Please Log in to join the conversation.

More
7 years 3 months ago #140810 by pl7i92
with so many different screens now the featheres cand keep up
if there are not in master integreded and overtuned on new releases

Please Log in to join the conversation.

Time to create page: 0.156 seconds
Powered by Kunena Forum