define <name> <infix>
Defines the webhook server.
<infix>
is the portion behind the FHEMWEB base URL (usually
http://hostname:8083/fhem
)
Example:
define geofancy GEOFANCY geo
The webhook will be reachable at http://hostname:8083/fhem/geo in that case.
Likely your FHEM installation is not reachable directly from the internet (good idea!).
It is recommended to have a reverse proxy like nginx or Apache in front of FHEM where you can make sure access is only possible to specific subdirectories like /fhem/geo.
You might also want to think about protecting the access by using HTTP Basic Authentication and encryption via SSL.
Also the definition of a dedicated FHEMWEB instance for that purpose might help to restrict FHEM's functionality (note that the 'hidden' attributes of FHEMWEB currently do NOT protect from just guessing/knowing the correct URL!)
To make that reverse proxy available from the internet, just forward the appropriate port via your internet router.
The actual solution on how you can securely make your Geofancy webhook available to the internet is not part of this documentation and depends on your own skills.