Skip to content
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

Integrate with Kiosker iOS app #248

Open
John5373 opened this issue Aug 19, 2021 · 3 comments
Open

Integrate with Kiosker iOS app #248

John5373 opened this issue Aug 19, 2021 · 3 comments

Comments

@John5373
Copy link

Could you add a service to integrate with the Kiosker iOS app? Specifically, I am trying to enable/disable the screensaver through the app's javascript functionality:

Thanks!

@thomasloven
Copy link
Owner

Closed because of Browser Mod 2.0 release.
Please see #354.

@xiaohuim
Copy link

+1 for this!
This feature is really heplful for people who use iPad as a dashboard. Can you please add support for Kiosker?
Kiosker.io has all the javascript related documents https://docs.kiosker.io/#/javascript
Big thanks!

@thomasloven thomasloven reopened this Sep 21, 2023
@xiaohuim
Copy link

@maniscalcojohn I figured out a easy (or temporarily) way to do it with Kiosker. So I have an iPad as dashboard with the screen on 24/7, and I want the screen to light up (like 60% the full brightness) when motion detected and brightness to 0 when no one is around. This is how I did it:
截屏2023-09-22 21 38 38

Kiosk website has this function on their doc:

function kioskerIntegration(data) {
    const string = JSON.stringify(data)
    try {
      window.webkit.messageHandlers.callback.postMessage(string);
    } catch(err) {
      console.log("Can't reach Kiosker");
    }
  }

Basically what we need do is just stringify the JSON data and pass that to the window.webkit.messageHandlers.callback.postMessage() function.

Hope this can help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants