Skip to content

Commit ecc5a91

Browse files
author
Shunsuke Sasaki
committed
update server
1 parent f5917f2 commit ecc5a91

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

mqtt_server.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
const mqtt = require('mqtt')
22
const getImagePath = require('./lib/get_image_path')
33
const getTranslateText = require('./lib/translate')
4-
const googleVision = require('node-cloud-vision-api')
54
const conf = require('./config.json')
65
const analyseImage = require('./lib/analyse_image')
76

87
const client = mqtt.connect(
98
'ws://std1.mqtt.shiguredo.jp/mqtt', {
10-
username: 'sh8@github',
11-
password: process.env.SANGO_PASSWORD
9+
username: conf.sango_user,
10+
password: conf.sango_password
1211
}
1312
)
1413

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
"log": "^1.4.0",
1818
"lru-cache": "^4.0.1",
1919
"morgan": "^1.7.0",
20+
"mqtt": "^2.4.0",
2021
"multer": "^1.2.0",
2122
"node-cloud-vision-api": "^0.2.0",
2223
"node-uuid": "^1.4.7",

0 commit comments

Comments
 (0)