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
- Host: GitHub
- URL: https://github.com/snobu/iot-spycam
- Owner: snobu
- Created: 2018-03-09T11:00:42.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-03-14T09:36:26.000Z (over 7 years ago)
- Last Synced: 2025-05-01T14:52:20.650Z (5 months ago)
- Topics: azure-iot, iot, nodejs
- Language: JavaScript
- Size: 43 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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 captureNode 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.