Closed hugalafutro closed 2 years ago
Just looking into this now, there are three different providers supported for getting IP address. But after looking through their docs, (correct me if I'm wrong) I don't think any of them let you specify IPv4 / IPv6 address type to display.
We could use some CSS to either reduce the text size or allow it to break onto the next line? Alternativley, if you're running Glances, you could try the gl-ip-address
widget.
On another note, I also use Mullvad, and I think it's fairly popular, so I am thinking of making a Mullvad widget. They have a a small REST API: https://am.i.mullvad.net/json
, which displays IP address, server or ISP location and Mullvad status. Doesn't fix the long IPv6 address issue tho.
I couldn't find a way to choose the protocol at provider lvl either. Alternatively a widget option to not show the ip, just the flag and isp? As long as I see it's not my real isp I know I'm good (why I wanted ipv4 address is because I remember if it's 8x. i'm off vpn and if it's 1xx. I'm on vpn).
Mullvad specific widget would be very nice, I switched to them few months back from pia and I'm quite happy.
I am looking into Glances, for now I just made the network section 2 columns wide. edit: gl-ip-address widget shows ipv4 address, but not the isp+flag which I really like
I think adding an option to hide the IP address, from the IP address widget, might not be the most practical.
So how about you instead do this just on your instance, with CSS. Under the config menu, go to custom styles, and paste something like: p.ip-address { display: none; }
. Or put it under appConfig.customCss
in your config.
Fantastic, the CSS line works just as how I wanted it, even better than showing the ip, many thanks!
Is your feature request related to a problem? If so, please describe.
No response
Describe the solution you'd like
The vm on which dashy runs uses mullvad vpn, using public ip widget I get the ipv6 address displayed (which also gets cut off if only 1 column is configured), I would like an option for the widget to instead show the ipv4 address.
I use just the default 1 line to make the widget:
Otherwise let me just say thanks for dashboard of my dreams ❤️
Priority
Low (Nice-to-have)
Is this something you would be keen to implement
No response