https://github.com/reelyactive/barnacles-azureblobstorage
Azure Blob Storage interface for barnacles. We believe in an open Internet of Things.
https://github.com/reelyactive/barnacles-azureblobstorage
azure-blob-storage barnacles
Last synced: about 1 year ago
JSON representation
Azure Blob Storage interface for barnacles. We believe in an open Internet of Things.
- Host: GitHub
- URL: https://github.com/reelyactive/barnacles-azureblobstorage
- Owner: reelyactive
- License: mit
- Created: 2020-01-21T01:28:42.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-01-21T02:19:56.000Z (over 6 years ago)
- Last Synced: 2025-03-08T13:46:38.602Z (over 1 year ago)
- Topics: azure-blob-storage, barnacles
- Language: JavaScript
- Size: 4.88 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
barnacles-azureblobstorage
==========================
[Azure Blob Storage](https://azure.microsoft.com/services/storage/blobs/) interface for [barnacles](https://github.com/reelyactive/barnacles/) open source software. We believe in an open Internet of Things.
Installation
------------
npm install barnacles-azureblobstorage
Hello barnacles-azureblobstorage
--------------------------------
The following code will write _simulated_ [raddec](https://github.com/reelyactive/raddec/) data to Azure Blob Storage. The simulated data is provided by [barnowl](https://github.com/reelyactive/barnowl/) which is typically run in conjunction with [barnacles](https://github.com/reelyactive/barnacles/). Install the _barnowl_, _barnacles_ and _barnacles-azureblobstorage_ packages using npm before running the code.
```javascript
const Barnowl = require('barnowl');
const Barnacles = require('barnacles');
const BarnaclesAzureBlobStorage = require('barnacles-azureblobstorage');
let barnowl = new Barnowl();
barnowl.addListener(Barnowl, {}, Barnowl.TestListener, {});
let barnacles = new Barnacles({ barnowl: barnowl });
barnacles.addInterface(BarnaclesAzureBlobStorage, { /* See options below */ });
```
Options
-------
__barnacles-azureblobstorage__ supports the following options:
| Property | Default | Description |
|:--------------|:--------------------------|:-------------------------------|
| account | "" | The Azure account name |
| accountKey | "" | The Azure account key |
| containerName | "raddec" | The blob container name |
| printErrors | false | Print errors to the console (for debug) |
| raddecOptions | { includePackets: false } | See [raddec](https://github.com/reelyactive/raddec/) toFlattened() options |
License
-------
MIT License
Copyright (c) 2020 [reelyActive](https://www.reelyactive.com)
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights 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 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.