-
-
Notifications
You must be signed in to change notification settings - Fork 10
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
Feature Request: HTTP endpoints #46
Comments
Hi Salamek, what are the chances for this one? It would be really awesome to have it, will open a lot of possibilities. :) |
@mishoboss this will get implemented in |
Thanks, for the fats reply. Just wondering, why websocket endpoint? IMHO nothing requires real-time communication and it is way harder to interact with websockets from 3rd party software (e.g. Home Assistant). A simple HTTP GET endpoint is more than enough. Just my 2 cents. |
Well mainly two reasons:
But i'm not decided yet on how i will implement this, i will see when i start doing it... |
Ok, I have checked the chromium_kiosk.py watch_config and chromium-kiosk-extension/background.ts and I have an idea. I think I could implement (optional) HTTP(S) endpoint in Python in chromium_kiosk.py watch_config for remote management of the runtime and/or local config. Only from localhost or from remote with basic authentication (preset) token via https? Additionally I think 'event':'onClientAppReset' could be interesting e.g. for remote reset of the kiosk to homePage (HW Button keypress, some external event etc.) similar to chrome.idle.onStateChanged idle reset. Seems I could add this easily. |
I have created additional Feature Request |
@darkol my idea is that |
@Salamek, please excuse me for the push, what are your plans for this feature in the roadmap? |
@Salamek, just an alternative idea - maybe even better is MQTT control. Something like those: |
qiosk already supports mqtt chromium debug control... it is just not enabled by default (i had no time to test it) |
@Salamek, is there a documentation how to use it? I don't see anything related to MQTT in the qiosk project. |
@mishoboss it is in chromium-kiosk docs... https://github.com/Salamek/chromium-kiosk/tree/master/.docs#configuration #REMOTE_DEBUGGING: # Set to port number to enable available only when using qiosk browser so in your REMOTE_DEBUGGING: 9988 and reboot... this should open chromium debug port on localhost:9988, you should be able to connect using chromium dev tools and any client library for chromium orchestration using chromium debug port I wanted to implement some simple client,http server and CLI interface into |
Probably I miss something here, but Chromium remote debugging has nothing to do with MQTT as messaging system. P.S. I just realised what you mean. Open the remote debug port and just use this project then - https://github.com/functionpointer/mqtt-chromium-control |
@mishoboss yop, something like that |
Ok this was resolved by adding websocket control see https://github.com/Salamek/qiosk/tree/master/.docs#remote-control |
A mini HTTP server with at least two HTTP endpoints would be really helpful to create a remote control over the kiosk's content.
Above functionality would be essential to implement scenarios like show camera feed page on ring bell, or show cameras bird view on perimeter alarm trigger, etc.
When these endpoints are hit, the screensaver should go off and show the newly loaded page on the screen.
The text was updated successfully, but these errors were encountered: