^stylintile, how do you call up your password for your conky so it works with your code? I tried with logging with keyring and I am set u as admin. I am having no luck. Thx
Last edited by alpetjr; February 25th, 2018 at 11:57 AM.
alpetjr,
I have edited my sudoers file by typing "sudo visudo" in terminal, then adding "dale ALL=(ALL) NOPASSWD: ALL" at the end. I don't recommend doing this, but i live alone and nobody else ever touches my computer.
(And I got tired of having to enter my password in the middle of trying to figure something out, by the time I entered the password I would forget what I was doing. I guess I'm getting old.)
Ubuntu User #35429 | Linux User #558865
Here's my latest, it's another long script which I can't seem to post. Another "security token is missing". I guess my computer doesn't like posting long scripts. I'm using a crontab entry to run a script calling
with "kvps" being just one of them. I have all of the capitals and other places I have lived.Code:metar -d kvps | grep Temperature > /home/dale/Documents/Weather/metar/kvps.txt &&
Then i use
in the lua for each place. I added the if statements for each place because i kept getting nil values whenever the bash script was overwriting the file. I used 100 as a tempCode:kvpstemp=tonumber(os.capture("grep -o [[:digit:]]\\* /home/dale/Documents/Weather/metar/kvps.txt")) if kvpstemp==nil then kvpstemp=100 end kvpstemp2=math.floor(kvpstemp*1.8+32)
number because I figured if one of the places shows a 212 degree temp, I'll know it's not correct. The maps are actually images that i edited with gimp for the outline color and the time zone colors, which are displayed in the lua with the image function.
Also using the same functions that are in my earlier posts. If anyone wants more of the code, let me know and I'll post the relevant sections.
Last edited by stylintile; February 25th, 2018 at 08:15 PM.
Ubuntu User #35429 | Linux User #558865
With realization of one's own potential and self-confidence in one's ability, one can build a better world.
Dalai Lama>>
Code Tags | System-info | Forum Guide lines | Arch Linux, Debian Unstable, FreeBSD
That's a limitation of the Forum software.
If you want to present the entire thing, you can post it here and add the link here. You may have to break it up there, too, for all I know ...
Please read The Forum Rules and The Forum Posting Guidelines
A thing discovered and kept to oneself must be discovered time and again by others. A thing discovered and shared with others need be discovered only the once.
This universe is crazy. I'm going back to my own.
1fallen,
Thank you.
QIII,
Thanks much for the tip. heres the link:
https://paste.ubuntu.com/p/fb9jyp9m6d/
Ubuntu User #35429 | Linux User #558865
@styintile, I figured out how to temporarily get the conky to run in root. I came up with this error
I thought it might be from the LAN, so I changed the wireless toCode:Too few arguments: you must specify one drive, at least. Too few arguments: you must specify one drive, at least. conky: llua_do_call: function conky_main execution failed: /home/al/sylintile/bg.lua:107: attempt to perform arithmetic on global 'total_size' (a nil value(
But that didn't work. The (uplan3) and (downlan3) how do I figure out what I use? Is this going to bee to much for me to try to get running without knowing much of Lua?Code:disk_free=total_free-newvolume_free disk_used=total_used-newvolume_used disk_total=total_size-newvolume_total disk_perca=(disk_used/disk_size)*100 disk_perc=math.floor(disk_perca) uplan3=tonumber(conky_parse('${upspeedf wlp2s0}')) uplan=round((((math.floor(uplan3))*.01)*0.8),2) downlan3=tonumber(conky_parse('${downspeedf wlp2s0}')) downlan=round((((math.floor(downlan3))*.01)*0.8),2)
Last edited by alpetjr; February 26th, 2018 at 10:54 AM.
For the drive sizes you need to run
to see what drives you have and their mount points or names. On mine I have my primary drive "/dev/sda" and a portable which is named "New_Volume1".Code:df -h
The output of that command gives me
You,ll need to modify the commands on lines 87-112 to match what you have in your system to get the sizes.Code:$ df -h Filesystem Size Used Avail Use% Mounted on udev 3.9G 0 3.9G 0% /dev tmpfs 788M 550M 239M 70% /run /dev/sda6 97G 16G 77G 17% / tmpfs 3.9G 53M 3.8G 2% /dev/shm tmpfs 5.0M 4.0K 5.0M 1% /run/lock tmpfs 3.9G 0 3.9G 0% /sys/fs/cgroup /dev/sda7 189G 29G 151G 16% /home tmpfs 788M 76K 788M 1% /run/user/1000 /dev/sdb1 74G 27G 44G 38% /media/dale/New_Volume1
If you want to run the df -h command and post the output, I'll be happy to tell you what modifications to make.
Ubuntu User #35429 | Linux User #558865
Bookmarks