Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[QUESTION] <title> How to set up widgets using web pages #1754

Closed
4 tasks done
Aurora-Dylan opened this issue Nov 26, 2024 · 2 comments
Closed
4 tasks done

[QUESTION] <title> How to set up widgets using web pages #1754

Aurora-Dylan opened this issue Nov 26, 2024 · 2 comments
Assignees
Labels
🤷‍♂️ Question [ISSUE] Further information is requested

Comments

@Aurora-Dylan
Copy link

Aurora-Dylan commented Nov 26, 2024

Question

I use the ui interface to set it up, but a lot of blog tutorials are based on the conf

How to set up widgets using web pages

Snipaste_2024-11-27_00-49-44

The following code is shown in the image:
{
"name": "1",
"displayData": {
"sortBy": "default",
"rows": 1,
"cols": 1,
"collapsed": false,
"hideForGuests": false
},
"items": [
]
}

That's the effect I was looking for.:
Snipaste_2024-11-27_00-52-22

Category

Widgets

Please tick the boxes

@Aurora-Dylan Aurora-Dylan added the 🤷‍♂️ Question [ISSUE] Further information is requested label Nov 26, 2024
@Aurora-Dylan
Copy link
Author

Configuration location is at (Config👉Update Configuration👉Edit Config👉Edit Config👉Tree at the top to code); if you don't know where to place it, you can first create a new Section via the Web UI (go to the Interaction Editor in the upper right corner)

{
      "name": "12",
      "icon": "12",
      "displayData": {
        "sortBy": "default",
        "rows": 1,
        "cols": 1,
        "collapsed": false,
        "hideForGuests": false
      },
      "items": []    这个位置替换成下面的"widgets"的内容
    }

eg:

{
      "name": "CPU History",
      "icon": "",
      "displayData": {
        "sortBy": "default",
        "rows": 1,
        "cols": 2,
        "collapsed": false,
        "hideForGuests": false
      },
      "widgets": [
        {
          "type": "gl-cpu-history",  #具体在 https://dashy.to/docs/widgets#current-cpu-usage
          "options": {
            "hostname": "http://192.168.1.1:61208",  # glances部署的端口
            "limit": "300" 
          },
          "id": "0_1018_glcpuhistory"
        }
      ]
    },

@liss-bot liss-bot added the 👤 Awaiting Maintainer Response [ISSUE] Response from repo author is pending label Nov 27, 2024
@Aurora-Dylan
Copy link
Author

this is one of my fiddling around with a solution

@liss-bot liss-bot removed the 👤 Awaiting Maintainer Response [ISSUE] Response from repo author is pending label Nov 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🤷‍♂️ Question [ISSUE] Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants