SliTaz SliTaz Forum

You are not logged in.

#1 2017-01-18 15:53:16

gibor
Moderator
Registered: 2011-04-30
Posts: 1,067

Conky.conf question

It possible add two variable on one value

example

TOTAL ${totaldown ppp0} ${totalup ppp0}

display the separate ppp0 network traffic on upload and download,

if I want display only output (total) of upload and download)?

thank in advance!

Offline

#2 2017-01-18 18:13:16

mojo
Administrator
Registered: 2011-03-29
Posts: 2,174

Re: Conky.conf question

https://www.khattam.info/howto-display-daily-weekly-monthly-internet-traffic-totals-on-desktop-using-conky-2010-11-09.html

Offline

#3 2017-01-20 19:19:01

gibor
Moderator
Registered: 2011-04-30
Posts: 1,067

Re: Conky.conf question

Good solution, but I prefer whitout vnstat.

Same result as to make new script executable

#!/bin/sh

rx=$(ifconfig ppp0 | grep bytes: | sed 's/.*RX bytes://' | sed 's/ .*//')

tx=$(ifconfig ppp0 | grep bytes: | sed 's/.*TX bytes://' | sed 's/ .*//')

echo "Total transfer: "$(expr $((rx+tx)) / 1024) "Kbytes"

saved as “total_transfer” to /usr/bin and executed by conky.conf

${exec total_transfer }

Offline

#4 2017-01-20 19:31:09

lexeii
Administrator
Registered: 2012-03-21
Posts: 1,853

Re: Conky.conf question

Fixed: please don't use backticks in your scripts on this forum.

This forum only render the content between the backticks in a monospaced font, hiding backticks itself. Reader will get the uncomplete script.

Offline

#5 2017-01-21 07:25:09

gibor
Moderator
Registered: 2011-04-30
Posts: 1,067

Re: Conky.conf question

Not clear for me this question... why hiding backtick?

I have searched this problem on web, and the solution is strange (triple backtick for viewed one)...

https://teamtreehouse.com/community/how-to-include-a-backtick-in-a-post-with-formatted-code-block

backtick test [c][/c]` (triple)

Offline

#6 2017-01-21 08:15:55

lexeii
Administrator
Registered: 2012-03-21
Posts: 1,853

Re: Conky.conf question

Hi gibor,

No, it not works with the triple: please see your post changed to using three backticks: http://forum.slitaz.org/topic/conkyconf-question#post-4392

(As for me, I think it's totally pain in ass, but I can't switch off this feature on this forum, so we will have to live with it.) It's possible that triple backticks not functioned inside the blockquote tag.

[attachment=43928,2435]

By the way, this forum used bbPress 1.1 if you're interested. And here's download section in the author's web site. And something I found for post formatting, and which is not applicable to our forum settings anyway (I think due to ancient version).

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.017 seconds, 7 queries executed - Memory usage: 1.54 MiB (Peak: 1.77 MiB) ]