NativeCam raspberry Pi 4
- sqmathlete
- Offline
- Premium Member
-
- Posts: 118
- Thank you received: 17
Please Log in or Create an account to join the conversation.
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.
- sqmathlete
- Offline
- Premium Member
-
- Posts: 118
- Thank you received: 17
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.
if val not in ['axis', 'gmoccapy', 'gscreen'] :
mess_dlg(_("DISPLAY can only be 'axis', 'gmoccapy' or 'gscreen'"))
sys.exit(-1)
Fern
Please Log in or Create an account to join the conversation.
- sqmathlete
- Offline
- Premium Member
-
- Posts: 118
- Thank you received: 17
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
and changed the code (around line 2384) toIf yes ncam.py will have to be modified to find the value at position 0 of DISPLAY
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
Please Log in or Create an account to join the conversation.
pos = val.find(' ')
if (pos > -1) :
val = val[0:pos]
between
val = ini_instance.find('DISPLAY', 'DISPLAY')
if val not in ['axis', 'gmoccapy', 'gscreen'] :
glb.mess_dlg(_("DISPLAY can only be 'axis', 'gmoccapy' or 'gscreen'"))
sys.exit(-1)
and at line no ~4978 substituting here 'val' by 'dp'
Those are the iines of published version
Fern
Please Log in or Create an account to join the conversation.
- eFalegname
-
- Offline
- Elite Member
-
- Posts: 253
- Thank you received: 30
Thanks mate!
Please Log in or Create an account to join the conversation.
...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.
- Dinuka_Shehan
-
- Offline
- Platinum Member
-
- Posts: 346
- Thank you received: 26
Please Log in or Create an account to join the conversation.
if there are not in master integreded and overtuned on new releases
Please Log in or Create an account to join the conversation.