An open API service indexing awesome lists of open source software.

https://github.com/snobu/iot-spycam

Snap a pic and upload to Azure Blob storage via IoT Hub Device SDK
https://github.com/snobu/iot-spycam

azure-iot iot nodejs

Last synced: 5 months ago
JSON representation

Snap a pic and upload to Azure Blob storage via IoT Hub Device SDK

Awesome Lists containing this project

README

          

Add an `.env` file with the device connection string:

```bash
IOTHUB_CONNSTR=HostName=poorlyfundedskynet.azure-devices.net;DeviceId=botnet;SharedAccessKey=123TheSecretKey321=
```

`npm start` or `node app.js` to start listening to Azure IoT Hub for direct methods.

Currently implemented device methods:

* `capture` - Starts capture, on a loop.
* `stop` - Stops capture

Node 8+ required, could work with 6+, but that's on you.

Needs `fswebcam` on Linux and `imagesnap` on macOS. See comments in `app.js` for more.