Mercurial > prosody-modules
annotate mod_http_presence/README.md @ 6539:4d7e2d0db2ab
mod_muc_mav: include occupant-id in affiliation list
| author | Stephen Paul Weber <singpolyma@singpolyma.net> |
|---|---|
| date | Mon, 18 May 2026 10:23:12 -0500 |
| parents | 57cf3fc844f6 |
| children |
| rev | line source |
|---|---|
|
6285
27e061d455b9
mod_http_presence: add new module to display presence over the http server
Nicholas George <wirlaburla@worlio.com>
parents:
diff
changeset
|
1 --- |
|
6320
57cf3fc844f6
mod_http_presence/README.md: Add rockspec
Menel <menel@snikket.de>
parents:
6285
diff
changeset
|
2 labels: |
|
57cf3fc844f6
mod_http_presence/README.md: Add rockspec
Menel <menel@snikket.de>
parents:
6285
diff
changeset
|
3 - 'Stage-Alpha' |
|
6285
27e061d455b9
mod_http_presence: add new module to display presence over the http server
Nicholas George <wirlaburla@worlio.com>
parents:
diff
changeset
|
4 summary: JID presence and information through HTTP |
|
6320
57cf3fc844f6
mod_http_presence/README.md: Add rockspec
Menel <menel@snikket.de>
parents:
6285
diff
changeset
|
5 rockspec: |
|
57cf3fc844f6
mod_http_presence/README.md: Add rockspec
Menel <menel@snikket.de>
parents:
6285
diff
changeset
|
6 build: |
|
57cf3fc844f6
mod_http_presence/README.md: Add rockspec
Menel <menel@snikket.de>
parents:
6285
diff
changeset
|
7 copy_directories: |
|
57cf3fc844f6
mod_http_presence/README.md: Add rockspec
Menel <menel@snikket.de>
parents:
6285
diff
changeset
|
8 - resources |
|
6285
27e061d455b9
mod_http_presence: add new module to display presence over the http server
Nicholas George <wirlaburla@worlio.com>
parents:
diff
changeset
|
9 ... |
|
27e061d455b9
mod_http_presence: add new module to display presence over the http server
Nicholas George <wirlaburla@worlio.com>
parents:
diff
changeset
|
10 |
|
27e061d455b9
mod_http_presence: add new module to display presence over the http server
Nicholas George <wirlaburla@worlio.com>
parents:
diff
changeset
|
11 This module provides a web interface for viewing the status, avatar, and information of a user or MUC. |
|
27e061d455b9
mod_http_presence: add new module to display presence over the http server
Nicholas George <wirlaburla@worlio.com>
parents:
diff
changeset
|
12 |
|
27e061d455b9
mod_http_presence: add new module to display presence over the http server
Nicholas George <wirlaburla@worlio.com>
parents:
diff
changeset
|
13 # Configuration |
|
27e061d455b9
mod_http_presence: add new module to display presence over the http server
Nicholas George <wirlaburla@worlio.com>
parents:
diff
changeset
|
14 |
|
27e061d455b9
mod_http_presence: add new module to display presence over the http server
Nicholas George <wirlaburla@worlio.com>
parents:
diff
changeset
|
15 The module `http_presence` can be enabled under a VirtualHost and/or a MUC component, providing web details for JIDs under each respectively. You should not enable this module under other components. |
|
27e061d455b9
mod_http_presence: add new module to display presence over the http server
Nicholas George <wirlaburla@worlio.com>
parents:
diff
changeset
|
16 |
|
27e061d455b9
mod_http_presence: add new module to display presence over the http server
Nicholas George <wirlaburla@worlio.com>
parents:
diff
changeset
|
17 Name Description Type Default value |
|
27e061d455b9
mod_http_presence: add new module to display presence over the http server
Nicholas George <wirlaburla@worlio.com>
parents:
diff
changeset
|
18 ---------------------- --------------------------------------------------- -------- --------------- |
|
27e061d455b9
mod_http_presence: add new module to display presence over the http server
Nicholas George <wirlaburla@worlio.com>
parents:
diff
changeset
|
19 presence_http_path presence path under Prosody's http host string "/presence" |
|
27e061d455b9
mod_http_presence: add new module to display presence over the http server
Nicholas George <wirlaburla@worlio.com>
parents:
diff
changeset
|
20 presence_resource_path the path to the directory that stores assets string "resources" |
|
27e061d455b9
mod_http_presence: add new module to display presence over the http server
Nicholas George <wirlaburla@worlio.com>
parents:
diff
changeset
|
21 |
|
27e061d455b9
mod_http_presence: add new module to display presence over the http server
Nicholas George <wirlaburla@worlio.com>
parents:
diff
changeset
|
22 # URI |
|
27e061d455b9
mod_http_presence: add new module to display presence over the http server
Nicholas George <wirlaburla@worlio.com>
parents:
diff
changeset
|
23 |
|
27e061d455b9
mod_http_presence: add new module to display presence over the http server
Nicholas George <wirlaburla@worlio.com>
parents:
diff
changeset
|
24 To access a JIDs presence and information, use the following URI format: |
|
27e061d455b9
mod_http_presence: add new module to display presence over the http server
Nicholas George <wirlaburla@worlio.com>
parents:
diff
changeset
|
25 ``` |
|
27e061d455b9
mod_http_presence: add new module to display presence over the http server
Nicholas George <wirlaburla@worlio.com>
parents:
diff
changeset
|
26 https://<http_host>:5281/presence/<name>/<format> |
|
27e061d455b9
mod_http_presence: add new module to display presence over the http server
Nicholas George <wirlaburla@worlio.com>
parents:
diff
changeset
|
27 ``` |
|
27e061d455b9
mod_http_presence: add new module to display presence over the http server
Nicholas George <wirlaburla@worlio.com>
parents:
diff
changeset
|
28 |
|
27e061d455b9
mod_http_presence: add new module to display presence over the http server
Nicholas George <wirlaburla@worlio.com>
parents:
diff
changeset
|
29 Format User Muc Description |
|
27e061d455b9
mod_http_presence: add new module to display presence over the http server
Nicholas George <wirlaburla@worlio.com>
parents:
diff
changeset
|
30 ------------ ---- --- ------------------------------------------------------------------------- |
|
27e061d455b9
mod_http_presence: add new module to display presence over the http server
Nicholas George <wirlaburla@worlio.com>
parents:
diff
changeset
|
31 full Yes Yes (Default) Provides a full HTML overview that can be embedded in webpages. |
|
27e061d455b9
mod_http_presence: add new module to display presence over the http server
Nicholas George <wirlaburla@worlio.com>
parents:
diff
changeset
|
32 name No Yes Returns MUC title or name. If empty, returns JID. |
|
27e061d455b9
mod_http_presence: add new module to display presence over the http server
Nicholas George <wirlaburla@worlio.com>
parents:
diff
changeset
|
33 nickname Yes No Returns user nickname. PEP vCard4 must be set to public. |
|
27e061d455b9
mod_http_presence: add new module to display presence over the http server
Nicholas George <wirlaburla@worlio.com>
parents:
diff
changeset
|
34 status Yes Yes Returns status of JID. Returns "muc" on MUCs. |
|
27e061d455b9
mod_http_presence: add new module to display presence over the http server
Nicholas George <wirlaburla@worlio.com>
parents:
diff
changeset
|
35 message Yes No Returns status message of user. |
|
27e061d455b9
mod_http_presence: add new module to display presence over the http server
Nicholas George <wirlaburla@worlio.com>
parents:
diff
changeset
|
36 description No Yes Returns Full MUC description. |
|
27e061d455b9
mod_http_presence: add new module to display presence over the http server
Nicholas George <wirlaburla@worlio.com>
parents:
diff
changeset
|
37 status-icon Yes Yes Returns status icon from resources. Returns "muc.png" on MUCs. |
|
27e061d455b9
mod_http_presence: add new module to display presence over the http server
Nicholas George <wirlaburla@worlio.com>
parents:
diff
changeset
|
38 avatar Yes Yes Returns the users PEP avatar or MUC vCard avatar. |
|
27e061d455b9
mod_http_presence: add new module to display presence over the http server
Nicholas George <wirlaburla@worlio.com>
parents:
diff
changeset
|
39 users No Yes Returns the amount of users in a MUC. |
|
27e061d455b9
mod_http_presence: add new module to display presence over the http server
Nicholas George <wirlaburla@worlio.com>
parents:
diff
changeset
|
40 |
|
27e061d455b9
mod_http_presence: add new module to display presence over the http server
Nicholas George <wirlaburla@worlio.com>
parents:
diff
changeset
|
41 For example, you can query the description of `support@muc.example.com` with this URL: |
|
27e061d455b9
mod_http_presence: add new module to display presence over the http server
Nicholas George <wirlaburla@worlio.com>
parents:
diff
changeset
|
42 ``` |
|
27e061d455b9
mod_http_presence: add new module to display presence over the http server
Nicholas George <wirlaburla@worlio.com>
parents:
diff
changeset
|
43 https://muc.example.com:5281/presence/support/description |
|
27e061d455b9
mod_http_presence: add new module to display presence over the http server
Nicholas George <wirlaburla@worlio.com>
parents:
diff
changeset
|
44 ``` |
|
27e061d455b9
mod_http_presence: add new module to display presence over the http server
Nicholas George <wirlaburla@worlio.com>
parents:
diff
changeset
|
45 |
|
27e061d455b9
mod_http_presence: add new module to display presence over the http server
Nicholas George <wirlaburla@worlio.com>
parents:
diff
changeset
|
46 # Resources |
|
27e061d455b9
mod_http_presence: add new module to display presence over the http server
Nicholas George <wirlaburla@worlio.com>
parents:
diff
changeset
|
47 |
|
27e061d455b9
mod_http_presence: add new module to display presence over the http server
Nicholas George <wirlaburla@worlio.com>
parents:
diff
changeset
|
48 Under the resource path should be PNG icons and a style.css which are all customizable. |
|
27e061d455b9
mod_http_presence: add new module to display presence over the http server
Nicholas George <wirlaburla@worlio.com>
parents:
diff
changeset
|
49 |
|
27e061d455b9
mod_http_presence: add new module to display presence over the http server
Nicholas George <wirlaburla@worlio.com>
parents:
diff
changeset
|
50 Filename Description |
|
27e061d455b9
mod_http_presence: add new module to display presence over the http server
Nicholas George <wirlaburla@worlio.com>
parents:
diff
changeset
|
51 ------------- --------------------------------------------------- |
|
27e061d455b9
mod_http_presence: add new module to display presence over the http server
Nicholas George <wirlaburla@worlio.com>
parents:
diff
changeset
|
52 style.css Stylesheet used for full mode |
|
27e061d455b9
mod_http_presence: add new module to display presence over the http server
Nicholas George <wirlaburla@worlio.com>
parents:
diff
changeset
|
53 avatar.png Default avatar provided if the JID has no avatar |
|
27e061d455b9
mod_http_presence: add new module to display presence over the http server
Nicholas George <wirlaburla@worlio.com>
parents:
diff
changeset
|
54 away.png User "Away" status |
|
27e061d455b9
mod_http_presence: add new module to display presence over the http server
Nicholas George <wirlaburla@worlio.com>
parents:
diff
changeset
|
55 chat.png User "Chatty" or "Free To Chat" status |
|
27e061d455b9
mod_http_presence: add new module to display presence over the http server
Nicholas George <wirlaburla@worlio.com>
parents:
diff
changeset
|
56 dnd.png User "Do Not Disturb" status |
|
27e061d455b9
mod_http_presence: add new module to display presence over the http server
Nicholas George <wirlaburla@worlio.com>
parents:
diff
changeset
|
57 muc.png Status icon for MUC. |
|
27e061d455b9
mod_http_presence: add new module to display presence over the http server
Nicholas George <wirlaburla@worlio.com>
parents:
diff
changeset
|
58 offline.png User "Offline" status |
|
27e061d455b9
mod_http_presence: add new module to display presence over the http server
Nicholas George <wirlaburla@worlio.com>
parents:
diff
changeset
|
59 online.png User "Online" status |
|
27e061d455b9
mod_http_presence: add new module to display presence over the http server
Nicholas George <wirlaburla@worlio.com>
parents:
diff
changeset
|
60 xa.png User "Extended Away" or "Not Available" status |
|
27e061d455b9
mod_http_presence: add new module to display presence over the http server
Nicholas George <wirlaburla@worlio.com>
parents:
diff
changeset
|
61 |
|
27e061d455b9
mod_http_presence: add new module to display presence over the http server
Nicholas George <wirlaburla@worlio.com>
parents:
diff
changeset
|
62 Compatibility |
|
27e061d455b9
mod_http_presence: add new module to display presence over the http server
Nicholas George <wirlaburla@worlio.com>
parents:
diff
changeset
|
63 ============= |
|
27e061d455b9
mod_http_presence: add new module to display presence over the http server
Nicholas George <wirlaburla@worlio.com>
parents:
diff
changeset
|
64 |
|
27e061d455b9
mod_http_presence: add new module to display presence over the http server
Nicholas George <wirlaburla@worlio.com>
parents:
diff
changeset
|
65 version note |
|
27e061d455b9
mod_http_presence: add new module to display presence over the http server
Nicholas George <wirlaburla@worlio.com>
parents:
diff
changeset
|
66 --------- --------------------------------------------------------------------------- |
|
27e061d455b9
mod_http_presence: add new module to display presence over the http server
Nicholas George <wirlaburla@worlio.com>
parents:
diff
changeset
|
67 13 Works |
|
27e061d455b9
mod_http_presence: add new module to display presence over the http server
Nicholas George <wirlaburla@worlio.com>
parents:
diff
changeset
|
68 0.12 Might work |
