NativeCam raspberry Pi 4

More
12 Dec 2018 05:35 #122243 by sqmathlete
Hi Fern,

Work your magic if you can.

Dan

File Attachment:

File Name: lathezy.ini
File Size:6 KB
Attachments:

Please Log in or Create an account to join the conversation.

More
14 Dec 2018 00:21 #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 or Create an account to join the conversation.

More
14 Dec 2018 04:13 #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 or Create an account to join the conversation.

More
14 Dec 2018 10:43 #122413 by FernV
If you want to change it, edit ncam.py and find
            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 or Create an account to join the conversation.

More
18 Dec 2018 05:43 #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
            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
Attachments:

Please Log in or Create an account to join the conversation.

More
19 Dec 2018 03:48 - 19 Dec 2018 14:49 #122589 by FernV
Just insert these lines
            pos = val.find(' ')
            if (pos > -1) :
                val = val[0:pos]

between
            val = ini_instance.find('DISPLAY', 'DISPLAY')
and
            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
Last edit: 19 Dec 2018 14:49 by FernV. Reason: Corrected lines number

Please Log in or Create an account to join the conversation.

More
04 Jan 2019 12:30 #123467 by eFalegname
Hi Fern, could you make me happy with the NativeCam installer for manjaro?
Thanks mate!

Please Log in or Create an account to join the conversation.

More
04 Jan 2019 18:27 #123493 by FernV

...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 or Create an account to join the conversation.

More
27 Jul 2019 19:13 #140761 by Dinuka_Shehan
Thank you

Please Log in or Create an account to join the conversation.

More
28 Jul 2019 16:05 #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 or Create an account to join the conversation.

Time to create page: 0.412 seconds
Powered by Kunena Forum