Limited guest access addon

does unchecking the tls option and restarting the container solve your issue?

My default.conf looks like this:

server {
  listen 8888 default_server;
  root /var/www/user;

  index index.php index.html index.htm index.nginx-debian.html;
  server_name _;

  rewrite ^/(.*)/$ /index.php?link=$1 last;
  location ~ \.php$ {
            fastcgi_pass 127.0.0.1:9000;
            fastcgi_index index.php;
            include /etc/nginx/fastcgi.conf;
       }
}

server {
  listen 8099;
  listen 8899;
  root /var/www/admin;

  index index.php index.html index.htm index.nginx-debian.html;
  server_name _;
  location / {
    try_files $uri $uri/ =404;
  }
  location ~ \.php$ {
            fastcgi_pass 127.0.0.1:9000;
            fastcgi_index index.php;
            fastcgi_buffer_size 4K;
            fastcgi_buffers 64 4k;
            include /etc/nginx/fastcgi.conf;
       }

}

Tried to replace my default.conf with yours. Still nothing. running netstat -tulpn shows the same situation - meaning something is wrong and the server is not listening on the right ports…

If you’ll think of something, let me know.

Did you restart nginx after switching the config?
I don’t think that you can simply just replace it, better trying to replicate it using the configuration options available

Great news!
I’ve been able to reproduce the error and fix it, it turned out to be that a fresh install got a newer version of nginx and i needed to adjust the configuration a little bit

@yaron.blachman @ebasta

Excellent news! I’ll be waiting for a new release!
Thanks for all your hard work!

Got the new release. Working perfectly!

1 Like

That was it - thank you very much!!

1 Like

Really nice addon!

I would like to be able to automaticaly create links based on (for example) calender events or something like that. The idea is to generate a link when a specific calendar event is on, and then send the link via notify.

Is there anybody who tried something like this before?

Thanks!

It might be doable, however you would also need to assign some kind of action to the links, only a link is not very useful

I think it’s kind of out of scope for this add-on, perhaps it could be done with the tag-manager somehow (it can actually be used with links not just RFID or QR codes)

1 Like

what if i just want to read the value of a temperature? A chart is possible?

Not quite the use case of this addon, I do however know that @thomasloven has a project last i heard it was still [in progress] that may fit the bill; It would, when ready allow you to embed certain cards from lovelace in another webpage

How can we do vibrate on those buttons pls? I’m totally newbie in home assistant. So pls explain me detail. I really appreciate it. And I want bigger button and font size. I have increased some digits in style.css and didn’t work. Where are the codes to inject in footer, header and script? Thanks for explaining me.

Nice addon does it work with Nabu casa?

Not quite, or rather it works within HA as intended, but as the main feature is that you are not authorized to HA the actual guest interface is not accessible thru nabu casa

Yeah I’m trying to understand what i put in my external url because i have nabu casa subscription

The addon runs a webserver on port 8888 (guest endpoint)
and an admin gui on port 8899

These are available by visiting your homeassistant host (ip) on those ports.
In addition to this the admin gui is available thru your home assistant gui, the guest gui however is not, as you would have to be logged into home assistant to access it anyways which renders the addon abundant.

Nabu casa will proxy your home assistant but not everything else running on your host. In order to use the gui for guests you would need to open the port for the guest gui in your firewall and use your external ip address as external url, or proxy it thru a service like ngrok or equivalent and use that address.

You could also use your http://host-ip:8888/ as external url but in that case, in order to use it your guest needs to be connected to your network.

You can try using:
http://homeassistant.local:8888/ that may work as well (on your network)

kind regards

Thanks for the clear answers :slight_smile:

I just tried setting this up and giving it a test run… I have found an issue thats kinda annoying.
I couldn’t add actions or delete the newly created guest link

*1 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Uncaught Exception: No ID given! in /var/www/admin/actions.php:42

I thought it was because I changed the external link after creating a guest link, however I now believe it is because I hyphenated the user link “pet-setting” So I’m guessing it does not like special characters… No big deal, I won’t use them, but I did want to bring it to your attention

You are missing the actual link, each link is getting a unique ID when you have added a “link” and then some actions to it. In other words, you are missing this part of the URL:
image

I used “custom link” and created “pet-sitting” apparently having a “-” causes a fault…