emsesp / EMS-ESP32

ESP32 firmware to read and control EMS and Heatronic compatible equipment such as boilers, thermostats, solar modules, and heat pumps
https://emsesp.github.io/docs
GNU Lesser General Public License v3.0
639 stars 108 forks source link

Feature: Custom Support info #2054

Closed proddy closed 2 months ago

proddy commented 2 months ago

The current Help page shows

The change

  1. For users that have a "guest" role, they don't have access to many of the Settings so this information above should only be shown for "admin" users.
  2. Allow for customized support information to be shown at the top of the Help page. You can upload a "support.json" file that contains some keys including "support_text" and "image_url" that are rendered in a 2-column table. This data is permanently stored in EMS-ESP and loaded at boot. If the file is not present, or badly formatted it will not be shown.
  3. Remove the footer. I think people know it's open-source.
proddy commented 2 months ago

1 in 3.7.0 2 to customize it via a JSON we'll add to 3.7.1

proddy commented 2 months ago

image

proddy commented 2 months ago

Add 2 and 3 to 3.7.0.

You can create a JSON file like:

{
  "type": "customSupport",
  "Support": {
  "html": [
    "This product is installed and managed by:",
    "",
    "<b>Bosch Installer Example</b>",
    "",
    "Nefit Road 12",
    "1234 AB Amsterdam",
    "Phone: +31 123 456 789",
    "email: support@boschinstaller.nl",
    "",
    "For help and questions please <a target='_blank' href='https://emsesp.org'>contact</a> your installer."
  ],
    "img_url": "https://emsesp.org/_media/images/designer.png"
  }
}

and upload it via the WebUI. It will be displayed in the Help page for both Admin and Guest users