Skip to content

Commit

Permalink
Merge pull request #1 from mqtt-fan/preview
Browse files Browse the repository at this point in the history
Add files via upload
  • Loading branch information
mqtt-fan committed Oct 3, 2017
2 parents 8a5b215 + 1f48ace commit 30ff274
Show file tree
Hide file tree
Showing 5 changed files with 486 additions and 7 deletions.
12 changes: 6 additions & 6 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License
The MIT License (MIT)

Copyright (c) 2017 mqtt-fan
Copyright (c) Sebastian Raff <[email protected]> (https://hobbyquaker.github.io)

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand All @@ -9,13 +9,13 @@ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
14 changes: 13 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,13 @@
# sonos2mqtt
# sonos2mqtt

### Getting started

Work in Progress


## License

MIT © [mqtt-fan]

[mit-badge]: https://img.shields.io/badge/License-MIT-blue.svg?style=flat
[mit-url]: LICENSE
24 changes: 24 additions & 0 deletions config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
var pkg = require('./package.json');
var config = require('yargs')
.usage(pkg.name + ' ' + pkg.version + '\n' + pkg.description + '\n\nUsage: $0 [options]')
.describe('v', 'possible values: "error", "warn", "info", "debug"')
.describe('n', 'instance name. used as mqtt client id and as prefix for connected topic')
.describe('u', 'mqtt broker url. See https://github.com/mqttjs/MQTT.js#connect-using-a-url')
.describe('h', 'show help')
.alias({
'h': 'help',
'n': 'name',
'u': 'url',
'v': 'verbosity'
})
.default({
'u': 'mqtt:https://127.0.0.1',
'n': 'sonos',
'v': 'info'
})
//.config('config')
.version()
.help('help')
.argv;

module.exports = config;
Loading

0 comments on commit 30ff274

Please sign in to comment.