![]() * * * * * sed -i "s/.*Package.*/#$(sensors | grep "Package")/g" /etc/pve/nodes/pve/config for my home setup this works.ĭid a little more thinking and came up with a better command which should alleviate some of the problems discussed above. if you don't have a config file then go to the notes and edit them add a single line "test" or something like it then check again. make sure there is nothing in your config file before doing it. this is where I'm sure that some staff person will come in and advise against it in case you make a change that adds something else to the config file it will just be written out of the file within a minute and could cause issues etc etc. This wont work for everyone as I don't know what else might be in that file and I'm essentially replacing the whole config file with my one line note but as mine didn't have anything else in it anyway it didn't matter to me. I can quickly click on notes to see current temp (well as at last minute). Now every minute my node notes get updated with my current temp. * * * * * echo "#$(sensors | grep "Package")" > /etc/pve/nodes/pve/config I added a note to my node and saw that it was prefixed by a # in the config file so I added a cron job to run every minute as so: Then running "sensors" at shell gives me the temps. I installed and ran the detect for lm-sensors: "apt-get install lm-sensors" then "sensors-detect" In my example, my node is called "PVE" so the location of the notes is in the "config" file in /etc/pve/nodes// or in my case "/etc/pve/nodes/pve/config" I thought of using the node's Note section for a quick look at my temp. You can help by adding a new language or improving the existing translation.I had an idea for an alternate method of getting the temp in the GUI (at least updated for the latest minute) and it seems to be working fine so far, but i'm new to PVE so what I'm doing may not be a great idea in the long run, I guess time will tell.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |