-
Notifications
You must be signed in to change notification settings - Fork 76
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Communication with Python script #44
Comments
Maybe turning WPE to multicontainer like in #29 and in second container run websocket server available only to other containers, so app in browser can access it over HTTP? |
@iBobik yeah that's the general idea. Having wpe run as a separate container that gets all its data over HTTP by talking to other containers running next to it |
@iBobik Communicating between containers over a websocket works well. version: '2.1'
services:
my-app:
build: ./my-app
privileged: true
restart: always
depends_on:
- display
network_mode: host
display:
build: ./wpe
devices:
- "/dev/fb0:/dev/fb0"
- "/dev/vchiq:/dev/vchiq"
restart: always
network_mode: host |
I would not recommend to use network_mode: host if you do not want your internal API have exposed to other devices on a network.
… 27. 5. 2019 v 10:39, Patrick Murray ***@***.***>:
@iBobik <https://github.com/iBobik> Communicating between containers over a websocket works well.
Here is what our docker-compose.yml looks like to do that:
version: '2.1'
services:
my-app:
build: ./my-app
privileged: true
restart: always
depends_on:
- display
network_mode: host
display:
build: ./wpe
devices:
- "/dev/fb0:/dev/fb0"
- "/dev/vchiq:/dev/vchiq"
restart: always
network_mode: host
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub <#44>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AAEV6WBKN4YVOZB4LOMN463PXOM33ANCNFSM4HK3CU7Q>.
|
I want to communicate with an RFID reader connected to Pi by GPIO. I am able to process that values by Python script.
How that Python script can send some event to SPA running in Webkit?
The text was updated successfully, but these errors were encountered: