You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is exactly what I’ve been looking for so thanks so much!
I know it's been a long time since this was posted but was exactly what I was looking for! Unfortunately I cannot get it working. In fact took quite a few work arounds to get Apache up and running with PHP (errors with Rewrite Engine missing).
However, I cannot get it it to call the web hook in home assistant. Config is updated to point to my specific HA server. When I do something like this, I just get the index.php returned from outside the "project folder".
I solved it. The issue is that if you have a seperate folder for a project under /html, then your .htaccess file does not work. The path to index.php needs updating with the project folder. In my case, /nfc/index.php needs adding to the .htaccess file......
This is exactly what I’ve been looking for so thanks so much!
I know it's been a long time since this was posted but was exactly what I was looking for! Unfortunately I cannot get it working. In fact took quite a few work arounds to get Apache up and running with PHP (errors with Rewrite Engine missing).
However, I cannot get it it to call the web hook in home assistant. Config is updated to point to my specific HA server. When I do something like this, I just get the index.php returned from outside the "project folder".
http://192.168.0.7:8124/nfc/api/webhook/nfc-desk-light-5gNq_Ui8wKzqQ016q1wFONLi
returns http://192.168.0.7:8124/index.php
Is it something to do with permissions of the nfc folder (they are all under root ownership) ?
drwxr-xr-x 3 root root 4096 Apr 18 12:59 nfc
I can get a direct curl working from the html folder as follows:
Finally, is something missing from the index.php file ??
should it not end with ?>
Thanks!
The text was updated successfully, but these errors were encountered: