lightsonplus icon indicating copy to clipboard operation
lightsonplus copied to clipboard

Refactor/simplify app support

Open JeanMax opened this issue 2 years ago • 0 comments

Hey!

I started working on this, but I'm not really satisfied yet. So I thought I'll ask for your input! I tried to split this PR in a lot of small and simple commits, but I plan to squash at the end.

The idea here is to allow to add new app to lightsonplus easily. The first 2 commits are here to unify all (most) of apps matching. Then we'll store all the app config in 1 array at the top of the file, and this should be enough to do all we need dynamically.

Ideally I'd like to be able to add new app or change the configuration without editing the main file, so people could update the script easily without loosing all their config. I thought about storing the config in a separate file, but without adding a new dependency I couldn't find a suitable format (yaml?).

JeanMax avatar Nov 12 '22 09:11 JeanMax