Skip to content

Commit

Permalink
Add changelog generator tool for new supported devices page.
Browse files Browse the repository at this point in the history
  • Loading branch information
Koenkk committed Jul 13, 2019
1 parent 4aab81d commit 503fef8
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions scripts/generateNewSupportedDevices.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
const fs = require('fs');
const filename = process.argv[2];
const text = fs.readFileSync(filename, 'utf8');
const zigbeeShepherdConverters = require('zigbee-shepherd-converters');


for (const line of text.split('\n')) {
const model = zigbeeShepherdConverters.devices.find((d) => d.model === line);
console.log(`- \`${line}\` ${model.vendor} ${model.description}`);
}

0 comments on commit 503fef8

Please sign in to comment.