Peter van der Walt can we have a drop down of preset settings in

+Peter van der Walt can we have a drop down of preset settings in LW?
In a few weeks there’s going to be A LOT of people asking what values to put in for the K40…

simple solution for now would be to configure then save as backup and upload to the wiki. users can then restore to it.

@quillford I’ll play with that soon. Sounds like a good stepping stone.

I’ve got the code for this started in lw3 but not sure what the best way to go is. since we can’t just have the js running in the browser read a local folder for json files, the two options seem to be making a request to a github repo or wiki and pulling the profiles from there (requires internet connection) each time the user wants to load a preconfigured profile or serving them from the node server which adds to what the server does but doesn’t need internet beyond initially pulling the repo

@quillford why can’t you read local json files?

@raykholo it’s the way js is sandboxed in the browser. we could make them js files and make the json a var. example: var k40 = {}. but that isn’t a very clean way of doing it. i’d prefer not hardcoding the list of profiles. you should be able to drop json files into a folder and lw should see them and show them to the user

Welcome! Currently, reading from folder is not available as we have not system access from the browser. This will be overcome with electron platform, but at the moment lw4 is barebones. now has mockup profiles that are compiled at build time, and we can load /save from a external json through filefields.
Git repo is a good way to host them, but anyways, if we want to keep those files downloaded to a settings folder then system access is required.

LOL! Was a welcome to the thread, :slight_smile:

https://plus.google.com/115654175984463400645/posts/QorgAPsjVgj

to add a profile, just submit a pull request with the profile placed in the profile folder, then add everything before the “.json” in public/profiles.js

Excellent. We will check this and supply our profile info.
Great work!