github Brandawg93/PeaNUT v1.3.0

latest releases: v3.3.0, v3.2.1, v3.2.0...
13 months ago

NEW

  • New REST API endpoints have been added to get device information:
    • /api/v1/devices
    • /api/v1/devices/:device
  • Initial support for Homepage

Homepage Support

With v1.3.0, initial support has been added for Homepage to add a custom api widget. An example can been seen below:

widget:
    type: customapi
    url: http://{hostname}:{port}/api/v1/devices/ups
    mappings:
    - field: battery_charge
      label: Battery Charge
      format: percent
    - field: ups_load
      label: UPS Load
      format: percent
    - field: ups_status
      label: UPS Status
      format: text
      remap:
        - value: OL
          to: Online
        - value: OB
          to: On Battery
        - value: LB
          to: Low Battery
        - any: true
          to: Unknown

Don't miss a new PeaNUT release

NewReleases is sending notifications on new releases.