Refreshing FAHControl config from database

Moderators: Site Moderators, FAHC Science Team

Post Reply
Arathald
Posts: 2
Joined: Tue Apr 07, 2020 5:08 am

Refreshing FAHControl config from database

Post by Arathald »

Hi, I'm in a bit of a friendly competition with some friends to get the most points, and to that end, I'm working on a system to automatically provision extra computing capacity based on our point totals.

As part of this, I'd like to be able to automatically add and remove new remote machines on my local FAHControl (advanced control) on my macbook (running macOS). I've gotten as far as figuring out there's a SQLite database at ~/Library/Application Support/FAHClient/FAHControl.db that I can edit to manage remote machines, but FAHControl requires a restart to see these changes.

While I can work with that, I'd like to ask if there's a better way to get FAHControl to refresh from its SQLite configuration database. Any method, including editing the source, is fine if it's more elegant than having to restart the program.

Thanks!
PantherX
Site Moderator
Posts: 7020
Joined: Wed Dec 23, 2009 9:33 am
Hardware configuration: V7.6.21 -> Multi-purpose 24/7
Windows 10 64-bit
CPU:2/3/4/6 -> Intel i7-6700K
GPU:1 -> Nvidia GTX 1080 Ti
§
Retired:
2x Nvidia GTX 1070
Nvidia GTX 675M
Nvidia GTX 660 Ti
Nvidia GTX 650 SC
Nvidia GTX 260 896 MB SOC
Nvidia 9600GT 1 GB OC
Nvidia 9500M GS
Nvidia 8800GTS 320 MB

Intel Core i7-860
Intel Core i7-3840QM
Intel i3-3240
Intel Core 2 Duo E8200
Intel Core 2 Duo E6550
Intel Core 2 Duo T8300
Intel Pentium E5500
Intel Pentium E5400
Location: Land Of The Long White Cloud
Contact:

Re: Refreshing FAHControl config from database

Post by PantherX »

Welcome to the F@H Forum Arathald,

In the past versions of FAHControl, I can simply click Add under the Client panel on the right-hand side, add the details and within 10 seconds, I can see all the details. I don't think there have been any remote changes since the last time I used it. I am aware that FAHClient may need to be restarted after the network configuration changes which is different than FAHControl.
ETA:
Now ↞ Very Soon ↔ Soon ↔ Soon-ish ↔ Not Soon ↠ End Of Time

Welcome To The F@H Support Forum Ӂ Troubleshooting Bad WUs Ӂ Troubleshooting Server Connectivity Issues
Arathald
Posts: 2
Joined: Tue Apr 07, 2020 5:08 am

Re: Refreshing FAHControl config from database

Post by Arathald »

Thanks for the reply PantherX. Adding through the client panel in FAHClient works perfectly for me. I'm specifically looking to update the FAHControl database from an external program/script and have the program show the changes. Restarting the program works for this purpose, but I'm looking for way to do it more seamlessly. This is definitely outside what the program was probably designed to do, but I was curious if anyone could point me towards a way of doing that.
Post Reply