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

'if_match ${wireless_link_qual_perc' fails occasionally #409

Closed
ghost opened this issue Aug 2, 2017 · 4 comments
Closed

'if_match ${wireless_link_qual_perc' fails occasionally #409

ghost opened this issue Aug 2, 2017 · 4 comments

Comments

@ghost
Copy link

ghost commented Aug 2, 2017

    'if_match ${wireless_link_qual_perc' fails occasionally - I think when the network is coming up. To be more specific about the problem (as against when it occurs):

${if_match ${wireless_link_qual_perc wlan0}>70}\

returns an error to the effect that wireless_link_qual_perc wlan0 is a string (!); and the condition seems to get evaluated as false. (Though I'll have to wait until the next time the situation occurs to be sure.)

    A related problem is that, when the foregoing situation occurs - i.e. wireless_link_qual_perc gets the wrong type of value - the following condition is satisfied:

${if_up wlan0}\

I have if_up_strictness set to "address".

    To sum up / clarify - my Conky contains (among other code) the following.

${if_up wlan0}\
# WLAN 0
${if_match ${wireless_link_qual_perc wlan0}>70}\

The first line evaluates as true when, it seems, the network has not finished coming up; and when that situation obtains, the third line throws an error.

    'All of this makes my Conky behaviour a bit erratic and I've had to build in checks to work around the problems.

Conky 1.10.6-1. Linux Mint 18.2 x64.

@su8
Copy link
Collaborator

su8 commented Aug 5, 2017

Add sleep in there, that's how I use wpa supplicant with bringing my firewall up

@ghost
Copy link
Author

ghost commented Aug 5, 2017

Thanks, su8. But just what exactly are you proposing? If I am to have a delay between the if_up and the if_match, then I would need to use a script, that Conky runs on a timer. And I've got lots of those - scripts run by Conky - already; I have enough of them already!

@lasers
Copy link
Contributor

lasers commented Aug 30, 2018

Hi. You closed an issue not long ago. Does this issue still stand today?

@ghost
Copy link
Author

ghost commented Aug 30, 2018

Ah. No. Closing. Thanks.

@ghost ghost closed this as completed Aug 30, 2018
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants