qrm2
qrm2 copied to clipboard
Rewrite hamstudy commands to cache data
also, make hamstudy images more visible by adding a white background. At the moment, hamstudy provides images for rq and rqa that are black fg/transparent bg. these are loaded directly. visibility could be improved by adding a white backrgound.
That is computationally expensive, as is requesting the pools and images.
Would prefetching/bundling those work?
if the pools are cached, then the images could be converted independent of main bot operations. pools should only be updated once in a long time.
If long-time is more then a month, then bundling would seem like a good idea.
Does HamStudy allows redistribution of their data? I could see a small data-update script, and a makefile target to run it. Then we would only need to commit the data and call it a day.
Of course, the image modification would be part of that script (the bot will need PIL anyway)
Messaged hamstudy guy, no reply yet.
We have permission from hamstudy to cache data

Also, include attribution for hamstudy.
admin command to run a script (subprocess) to update the cache. is also run with the makefile on first run