Open anselmolsm opened 7 years ago
It is possible, not sure if desired. When you press the button there's an event generated that currently is captured to turn the board on/off.
I rather think connecting the cable and changing the mode may be better... Not sure. Particularly when cockpit is ready and people can use the web interface.
@lucasdemarchi @anselmolsm Shall we have this option as part of Network plugin only ? https://github.com/intel-aero/meta-intel-aero/issues/200
Yes
@lucasdemarchi Following is the snapshot, i am planning to implement for this.
Function:
Using javascript, i could not get a way to execute interactive shell commands. With Python, it is easy to execute such tasks. Any suggestions ?
@lucasdemarchi Proceeding with Python, i'll need pexpect for executing commands with connmanctl shell. Should we include this as part of image ?
If it's necessary, yes. I think we have Python's subprocess though.
Subprocess doesn't help with interactive shell.
You don't need the interactive shell. connmanctl
also accepts commands as arguments.
connmanctl scan wifi
, connmanctl services
, etc.
For switching to Station Mode, it needs interactive shell and it doesn't connect without an interactive shell. I tried a few times(giving as an argument) but it gives : "Not registered ". Although, it got connected with the shell.
https://github.com/Rjasuja/aero-cockpit-plugins/blob/upstream8/network/network.html I am facing an issue with opening a file and reading its contents using javascript. Issue is : Javascript(using XMLHttpRequest) will read the same file(first read) over and again even though the file contents have changed. Tried the following :
Any suggestions ?
As the python script writes scan results to a local file, can you try reading using normal file read operation ?
Created a PR : https://github.com/intel-aero/aero-cockpit-plugins/pull/8
For the record and further evaluation. A suggestion we received about turning AP mode on/off:
Would it be possible to provide a way to make the connman AP mode state either persistent or configurable using the physical button (e.g. with a triple press)?