1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Azure IoT Hub Explorerのインストール

Posted at

IoT Hub Explorerのインストール

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

$ npm -g install iothub-explorer
npm WARN deprecated iothub-explorer@1.2.2: 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 azure-event-hubs@0.0.8: This package has been deprecated. Please use @azure/event-hubs instead
npm WARN deprecated crypto@0.0.3: 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 request@2.88.2: 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
+ iothub-explorer@1.2.2
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月)

image.png

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

使ってみる

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

Deviceの追加

image.png

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

ツール
image.png

Azure portal
image.png

詰まったところ

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
1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?