Skip to content

Server Status #69

Closed
Closed

Description

@pljones

I just realised this is a bit of a problem.

If I display the server status that's written to the html file, it shows the name I've asked it to show, plus to server internal port. Ideally, the value would be stored without the port number (internal and external are likely to differ) - all that's wanted is the server status.

Very low priority (I've fixed it in my javascript processing).

Activity

  1. ginjo commented on Jun 24, 2020

    @ginjo

    As an alternative to an html status page, a json or xml status page containing user and server details would be useful, especially on headless servers. This would also offload the responsibility of data presentation from Jamulus. Something like:

    jamulus_status.json

      {
        "some_server_info": "...",
        "some_server_config": "...",
        "client_count": 2,
        "clients": [
          {"name":"bill", "ip":"x.x.x.x", "port":22333, "jitter_buffer_size":12},
          {"name":"amy", "ip":"x.x.x.x", "port":22333, "jitter_buffer_size":9}
        ]
      }
  2. pljones commented on Jul 6, 2020

    @pljones
    CollaboratorAuthor

    It needs a "last_updated_at": "YYYY-MM-DDThh:mm:ss.nnnnnnZ" field.

    Then add two settings / options to the server: --status-timeout <seconds> and --status-json <filename>.

    Presume it should create the file as a text file if not found. It's not a log file, so it should also overwrite the file on each update.

  3. corrados commented on Oct 7, 2020

    @corrados
    Contributor

    Ideally, the value would be stored without the port number (internal and external are likely to differ) - all that's wanted is the server status.

    The server name is no longer written in the HTML file, see #638.

    As an alternative to an html status page, a json or xml status page containing user and server details would be useful, especially on headless servers.

    As written in #638, the HTML status should completely removed from the Jamulus software. It would be better to have a PHP script which queries the information via UDP. Then you can format your output exactly like you want.

    So I'll close this Issue now.

  4. pljones commented on Oct 9, 2020

    @pljones
    CollaboratorAuthor

    Raised #670 to get some PHP written.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions