MineForeman / minepeon-base

minepeon-base
GNU General Public License v2.0
24 stars 17 forks source link

Add-on Development #3

Open MineForeman opened 10 years ago

MineForeman commented 10 years ago

We already have 3 Add-on's;-

MobileMinerApp PiMiner
cgminerLCDStats

In another discussion we discussed how to give these add-on's access to a cron job, already in git the start of how to give them access to init (start and stop) in;-

https://github.com/MineForeman/minepeon-base/tree/master/etc/init.d

I now think we need a way to have the add-on's a way to add options to the config files and WebUI. Thomas already loads multiple conf files into the AngularJS system so I think the answer is to merge/include them their.

Neil

thgh commented 10 years ago

It's possible to load a list of partials (combination of ngRepeat with ngInclude) Only problem is that addon writer has to know how to write an angular form, but this can be solved with a settingspartial generator

Question: will addons be kept in this repo?

MineForeman commented 10 years ago

My angular is bad, but that is what I was thinking. That way we can give them a few templates to work from and they wont need to know much about angular to add their own settings. They just tar -xzf their files into / and their settings, cron jobs and init's are picked up.

Question 2;- No, I was thinking we do like wordpress does, keep a few well maintained add-ons in the core repo as an example (MobileMiner, PiMiner, cgminerLCDStats) and then let add-on developers maintain their code in their own tree.

I have already been approached by a few ASIC manufacturers that want support for their own binaries and config's that will want in on this.

Neil