Skip to content

Feature Request: Add preview for "Host metrics" in Payload Data #56

Description

@xarleyn

PORTDUINO (Linux native) hardware can send host metrics in a telemetry packet, but Malla doesn't show decoded data for:

Image

Host metrics description from protobuf:

/* Linux host metrics */
typedef struct _meshtastic_HostMetrics {
    /* Host system uptime */
    uint32_t uptime_seconds;
    /* Host system free memory */
    uint64_t freemem_bytes;
    /* Host system disk space free for / */
    uint64_t diskfree1_bytes;
    /* Secondary system disk space free */
    bool has_diskfree2_bytes;
    uint64_t diskfree2_bytes;
    /* Tertiary disk space free */
    bool has_diskfree3_bytes;
    uint64_t diskfree3_bytes;
    /* Host system one minute load in 1/100ths */
    uint16_t load1;
    /* Host system five minute load  in 1/100ths */
    uint16_t load5;
    /* Host system fifteen minute load  in 1/100ths */
    uint16_t load15;
    /* Optional User-provided string for arbitrary host system information
 that doesn't make sense as a dedicated entry. */
    bool has_user_string;
    char user_string[200];
} meshtastic_HostMetrics;

Decoded packet example:

{
      "portnum": 67,
      "payload": "420f08cfd902108080bf5e1880a096b044",
      "want_response": null,
      "dest": null,
      "source": null,
      "request_id": null,
      "reply_id": null,
      "emoji": null,
      "parsed_payload": {
        "host_metrics": {
          "uptime_seconds": 44239,
          "freemem_bytes": "198164480",
          "diskfree1_bytes": "18354638848"
        },
        "type": "protobuf",
        "portnum": "TELEMETRY_APP",
        "message_class": "Telemetry"
      }
    }

I think Copilot could easily implement this.

Activity

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions