fastfetch icon indicating copy to clipboard operation
fastfetch copied to clipboard

[BUG] Error: this module can only be used once due to internal limitations

Open AndresMpa opened this issue 1 year ago • 1 comments

Hey there, I'm getting this error each time I run fastfetch:

Error: this module can only be used once due to internal limitations

image

I'm using Arch Linux with hyperland under kitty

This is my config:

{
    "$schema": "https://github.com/fastfetch-cli/fastfetch/raw/dev/doc/json_schema.json",
    "logo": {
        "type": "small",
        "padding": {
            "top": 1
        }
    },
    "display": {
        "separator": "",
        "keyWidth": 15
    },
    "modules": [
        {
            "key": "╭───────────╮",
            "keyColor": "yellow",
            "type": "custom"
        },
        {
            "key": "│           │\u001b[11D\u001b[33m󰅐 Uptime",
            "keyColor": "yellow",
            "type": "uptime"
        },
        {
            "key": "│           │\u001b[11D\u001b[33m Weather",
            "keyColor": "yellow",
            "type": "weather"
        },
        {
            "key": "╰───────────╯",
            "keyColor": "yellow",
            "type": "custom"
        },
        {
            "key": "╭───────────╮",
            "keyColor": "cyan",
            "type": "custom"
        },
        {
            "key": "│           │\u001b[11D\u001b[36m Playing",
            "type": "sound"
        },
        {
            "type": "player",
            "key": "│ ├󰥠 Source │\u001b[11D",
            "keyColor": "cyan"
        },
        {
            "type": "media",
            "key": "│ └󰝚 Track  │\u001b[11D",
            "keyColor": "cyan"
        },
        {
            "key": "╰───────────╯",
            "keyColor": "cyan",
            "type": "custom"
        },
        {
            "key": "╭───────────╮",
            "type": "custom"
        },
        {
            "key": "│           │\u001b[11D\u001b[33m Weather",
            "keyColor": "yellow",
            "type": "weather"
        },
        {
            "key": "│           │\u001b[11D\u001b[34m󰉉 Disk",
            "type": "disk",
            "folders": "/"
        },
        {
            "key": "│           │\u001b[11D\u001b[35m RAM",
            "type": "memory"
        },
        {
            "key": "╰───────────╯",
            "type": "custom"
        },
        {
            "key": "╭───────────╮",
            "keyColor": "blue",
            "type": "custom"
        },
        {
            "key": "│           │\u001b[11D\u001b[34m Network",
            "keyColor": "blue",
            "type": "netio"
        },
        {
            "key": "│ ├󰩟 Wifi   │\u001b[11D",
            "format": "Using {1}",
            "keyColor": "blue",
            "type": "wifi"
        },
        {
            "key": "│ ├󰩟 PubPU  │\u001b[11D",
            "format": "{1}",
            "keyColor": "blue",
            "type": "publicip"
        },
        {
            "key": "│ └󰩟 LocIP  │\u001b[11D",
            "format": "{1} ({4})",
            "keyColor": "blue",
            "type": "localip"
        },
        {
            "key": "╰───────────╯",
            "keyColor": "blue",
            "type": "custom"
        },

        {
            "key": "╭───────────╮",
            "keyColor": "cyan",
            "type": "custom"
        },
        {
            "key": "│           │\u001b[11D\u001b[31m \u001b[00mColors",
            "symbol": "circle",
            "type": "colors"
        },
        {
            "key": "╰───────────╯",
            "keyColor": "cyan",
            "type": "custom"
        }
    ]
}

AndresMpa avatar May 08 '24 16:05 AndresMpa

Any module that calls internet APIs can only be used once corrently. Why do you want to show weather twice?

CarterLi avatar May 08 '24 22:05 CarterLi

Hey you're right sorry about the stupid issues.

Anyway it might be useful to throw a more descriptive errors

AndresMpa avatar May 08 '24 22:05 AndresMpa