Azure IoT Hub Explorerのインストール


IoT Hub Explorerのインストール

Azure IoT Hubへデバイス登録するためのシミュレーター

$ npm -g install iothub-explorer
npm WARN deprecated [email protected]: iothub-explorer will be retired on November 31st, 2018 and has been replaced by the Azure CLI IoT Extension: https://aka.ms/iotcli
npm WARN deprecated [email protected]: This package has been deprecated. Please use @azure/event-hubs instead
npm WARN deprecated [email protected]: This package is no longer supported. It's now a built-in Node module. If you've depended on crypto, you should switch to the one that's built-in.
npm WARN deprecated [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142
/Users/k.tsumura/.nodebrew/node/v14.1.0/bin/iothub-explorer -> /Users/k.tsumura/.nodebrew/node/v14.1.0/lib/node_modules/iothub-explorer/iothub-explorer.js
+ [email protected]
added 213 packages from 188 contributors in 20.009s

Expireされてた

2018年から移行されていた

--------
DEPRECATION NOTICE: iothub-explorer will be retired on November 31st, 2018
It has been replaced by the Azure CLI IoT Extension (https://aka.ms/iotcli).
--------

gitからinstall

gitのRead meを参考にやってみた
https://github.com/Azure/azure-iot-explorer

手順

gitのページの抜粋(2020年5月)

4を実行するとブラウザで以下のページを開いてくれる(http://127.0.0.1:3000/)

使ってみる

Connectしてみると以下の画面へ

Deviceの追加

Deviceが追加されていることをこのツールとAzure portalで確認

ツール

Azure portal

詰まったところ

package.jsonが見つからないと言われた。
Cloneしたディレクトリへ移動し忘れ

$ npm install
npm WARN saveError ENOENT: no such file or directory, open '/Users/k.tsumura/Desktop/test/package.json'
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN enoent ENOENT: no such file or directory, open '/Users/k.tsumura/Desktop/test/package.json'
npm WARN test No description
npm WARN test No repository field.
npm WARN test No README data
npm WARN test No license field.

up to date in 0.668s
found 0 vulnerabilities