This is a Command-line tool to download and fill The Things Network Device Repository templates.
Follow instructions to install this package:
- Create a folder.
- Inside of the created folder install this package
npm install devrepo-templates
- Inside the folder you will have all this folders and files, follow the comments:
folder
│ package.json #delete this file
│ package-lock.json #delete this file
├── node_modules
│ ├── ...
│ ├── devrepo-templates
│ │ ├── bin #move this folder to main folder
│ │ ├── src #move this folder to main folder
│ │ ├── templates #move this folder to main folder
│ │ ├── package.json #move this file to main folder
│ │ ├── package-lock.json. #move this file to main folder
│ ├── ...
- Your main folder must end with the next structure:
folder
├── bin
├── src
├── templates
│ package.json
│ package-lock.json.
├── node_modules
- Once you have this structure run 'create-project' and you can start downloading and filling device repository templates
- When you finish with any template CLI will create a folder named device, inside of it will be your file.
folder
├── ...
├── device
│ ├── index.yaml
├── ...
Create a new folder named test6 Run 'create-project' and fill device template
Download template and fill the infomation: file name, name of the device, description, etc. Fill the Output path as the CLI ask.
Device file will be created in device folder with the information you fill.
Now you can use this file in device repository for adding new devices.