Fully Kiosk Browser

thank you!

Hello,
I have a problem with my Fully Kiosk, every few minutes the app just disconnects from HA and I have to put in my username and password again. Does anyone know how to solve it?

Hi,

I created a shell command:

shell_command:
  kiosk_rtsp_command: 'curl -X POST "http://192.168.2.99:2323/?cmd=loadUrl&url=rtsp://xxxxx:[email protected]:88/videoMain"'

to stream my foscam cam to an old android device running kiosk.

But when i call the service I see this error:

return code: 52NoneType: None

any hint?

If you have any special characters in your password, you need to url-encode these characters to use them with the password= parameter of the Fully URL commands.
I.e. if your password is abc$xyz! your getCamshot URL would be:
http://192.168.xxx.yyy:2323/?cmd=getCamshot&password=abc%24xyz%21

If you try the unencoded version instead (&password=abc$xyz!) you will get the “Please login” page although you did provide a password.

1 Like

Hi, it is possible to open an app (VLC in my case) using FKB?

Yes, it is.

How?

I tried universal launcher but maybe Is not the best way?

It goes with Universal launcher, but i guess, the app also has to be whitelisted in Kiosk mode (Plus).

Not sure about it, did not try.

I run apps from kiosk in a way that i create kiosk rest command for app, then i make a lovelace card with a shortcut to this rest command. You can find a name for wanted app in launcher. How you create rest command is written in kiosk manual. Basically it’s just an url of your tablet (where kiosk runs), added with username, password and command.
This way i can use my tablet in kiosk mode and set kiosk browser as my default home screen, since i run all needed apps from kiosk.

1 Like

can you provide some example? I made some attemp but I’m no a programmer so maybe I’m making some noob error…

First you have to enable remote administration and set admin password in kiosk. Also check that you have enabled “remote admin from local network”.
Next, find IP of your tablet. Check out if rest commands work by entering url in your browser on PC:

http://your.tablet.ip.address:2323/?cmd=deviceInfo&type=json&password=your_password

No need to remind you that in above address enter your device’s IP and your password, correct?

Now, if this work, then you must find names of apps that you want to run. Go to kiosk, settings, Universal lanucher click “applications to Run on Start in Background”, then “pick apps”. On this list find you app and write down SECOND line of your app. Example: if you want to run Chrome, there’s “com.android.chrome” to write down. When you have all written down click CANCEL, again CANCEL and exit settings.

Enter this in your PC browser:
http://192.168.0.111:2323/?cmd=startApplication&package=com.android.chrome&password=yourpassword.
Again: enter your device’s IP!. If chrome will open on your tablet you’re a winner.

Now, go to HA and create rest command: enter this in configuration.yaml:

rest_command:
  kiosk_run_chrome:
    url: "http://192.168.0.111:2323/?cmd=startApplication&package=com.android.chrome&password=yourpassword"

Restart HA and go to developer tools → services. Find “rest_command.kiosk_run_chrome” and run it. Chrome should open in your tablet.
Now all you have to do is create a button card on your dashboard with service call on click - you must call service “rest_command.kiosk_run_chrome”.

Voila! (i hope i didn’t forget any step… )

EDIT:
Oh… full list of rest commands is HERE - look for FULLY APP REST INTERFACE (PLUS)

1 Like

Im running a license copy of Fully Kiosk Browser 1.47.3 on a Samsung tablet and have always had a banner along the top with the time and date in a large font.

After updating home assistant to 2022.6.3 the size of the font used in the time and date is no longer very large and in the centre, its now formatted to the right.

type: custom:hui-element
card_type: markdown
card_mod:
  style:
    .: |
      ha-markdown {
        padding: 0px 0px 0px !important;
      }
      ha-card {
        background: transparent;
      }
    ha-markdown:
      $: |
        h1 {
          font-family: SF text;
          font-size: 7vw;
          font-weight: 300;
          text-align: center;
          letter-spacing: 0.5vw;
          }
content: >
  # {{ states('sensor.time_format') }}   {{
  states('sensor.date_format') }}

Fully Kiosk Browser seems to ignore everything in the

    ha-markdown:
      $: |
        h1 {
          font-family: SF text;
          font-size: 7vw;
          font-weight: 300;
          text-align: center;
          letter-spacing: 0.5vw;
          }

block

Safari on my Mac still displays correctly and so does Chrome on the Samsung tablet, it just seems to be FKB that’s playing up.

The ‘#’ at the beginning here:

content: >
  # {{ states('sensor.time_format') }}   {{
  states('sensor.date_format') }}

does work, if I add ‘##’ the font does change to a smaller font than the single ‘#’ displays but nothing like before. ie font-weight: 300 and the rest of that block of code is just being ignored in FKB.

Any ideas where to start to fault find this, I have cleared the cache and restarted FKB but no luck as yet.

its yaml
normally everything behind a # is considered a comment in yaml.
try changing it to

content: >
  "# {{ states('sensor.time_format') }}   {{
  states('sensor.date_format') }}"

The content is part of the card_type: markdown
The ‘#’ is to set a larger text. Markdown Reference

I don’t use markdown at all, because it’s too limited. Custom:button card does it way better and has a lot more config options.

but you do write in YAML, and in YAML everything behind a # is considered a remark.

some_var: # this var stays empty, this way

Nope, that is entirely depending on the indentation and the surrounding tag.

some_var: # comment

this is a comment. Where this is not:

some_var: >
  # Header1

The “>” makes it a multi line statement (is statement correct here?), where you can use “#” as a normal sign. But only, if you indent it by two spaces - no more, no less - just two spaces. :slight_smile:

oke, if you say so.
still it wont hurt to put it into quotes, right?

One line statements must be in quotes, multi-line must not. :rofl: YAML is a picky b**** :rofl: :rofl: If you put quotes around multiline, you will see these quotes like any other text… :slight_smile:

thx. i never use multiline, but good to know.