Comments (3)
Hi @neurotix84,
The error you noted suggests that there's no project number loaded into the program. The object ${lua load_fah_queue_info}
calls the function to load the current info from FAHClient including project numbers. So to eliminate the simplest possible cause, please make sure that you included ${lua load_fah_queue_info}
in your conky config file somewhere before any objects that call functions listed in the table.
If that isn't the problem, please post the portion(s) of your conky config file pertaining to your setup for the script, and I'll try to reproduce the issue and fix what needs fixing.
The script doesn't require Fahcontrol to be running. It does require a running FAHClient, although folding can be paused.
GTK version shouldn't have an effect on the script since it runs completely inside of conky and just loads and parses text from the FAHClient for display by conky. However, in case it comes to testing on there, are you running Mint 21.1, .2, .3, or just 21? And am I correct to assume that you're running the Cinnamon DE?
David
from conky-foldingathome-status.
Hello,
It all seems to be working perfectly now, I'm thrilled! All I did was leave my machine running overnight, came back to it and saw "F@H Proj 18220 READY" instead of just F@H Proj nil. Moreover, when I fired up my client it said the progress in percentage and estimated time to complete. What I'm wondering is, if it just took the script a while to load and function correctly or something.
It works, and I also just checked and it works right away upon loading the conky, however I checked running it in a terminal and I'm getting:
/conky/folding.lua:249: bad argument #2 to 'format' (number expected, got nil) (this stops after a few times)
conky: llua_getstring: function conky_load_fah_queue_info didn't return a string, result discarded (this continues to show in the terminal for some time, then stops, then starts again when my conky grabs data with a different script I use)
Also, I only brought up GTK version as it appears Fahcontrol needs gtk2 and python-gtk2 available and none are available in the repos I have. It's good to know I don't need it because it'd be a big pain getting it working using Debian repos.
Also, you are correct. I run Linux Mint Cinnamon 21.2
Here's the relevant sections of my conky script:
lua_load = '~/conky/music.lua ~/conky/folding.lua', (right at the end of the conky config)
#------------+
${voffset 10}${color1}${font Noto Sans Mono CJK JP:size=14:bold}FOLDING ${hr 2}${font}${color}
${lua load_fah_queue_info}
F@H Proj ${lua fah_project 0} ${lua fah_status 0}
#------------+
]]
from conky-foldingathome-status.
Thanks for pointing out the errors appearing when running conky in a terminal. That was due to my failure to properly set an iteration count variable so data would be loaded from the start, which would cause a delay of several conky update iterations in the script's getting up and running. It also brought to my attention a need to add something to the readme about the throttling variable that can be set to control the update frequency. Both bits have now been fixed.
Assuming that you've renamed fahqi.lua
to folding.lua
, your conky script setup all looks good.
I can't remember and it may take a while to verify, but I think that the script will display "nil" if no project is currently available for folding. Nothing being available one day but something becoming available the next would explain the behavoir you observed. I'll post a new issue about this to keep it in mind. If I can verify that it's due to nothing being available, I'll see about modifying the script with reference to that issue to display something more descriptive than "nil" when it occurs.
from conky-foldingathome-status.
Related Issues (6)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from conky-foldingathome-status.