https und so
This commit is contained in:
parent
cc6f5b9687
commit
1003fa0f4f
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"name": "hubot-edgar-snodon",
|
"name": "hubot-edgar-snodon",
|
||||||
"description": "ctdo raumbot",
|
"description": "ctdo raumbot",
|
||||||
"version": "0.0.7",
|
"version": "0.0.8",
|
||||||
"author": "henne@ctdo.de",
|
"author": "henne@ctdo.de",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
|
||||||
|
|
|
@ -49,7 +49,7 @@ module.exports = function(robot) {
|
||||||
});
|
});
|
||||||
|
|
||||||
function setTopic(currentTopic) {
|
function setTopic(currentTopic) {
|
||||||
robot.http("http://status.ctdo.de/api/simple/v2")
|
robot.http("https://status.ctdo.de/api/simple/v2")
|
||||||
.header('Accept', 'application/json')
|
.header('Accept', 'application/json')
|
||||||
.get()(function(err, res, body) {
|
.get()(function(err, res, body) {
|
||||||
var data = JSON.parse(body);
|
var data = JSON.parse(body);
|
||||||
|
@ -104,7 +104,7 @@ module.exports = function(robot) {
|
||||||
// status
|
// status
|
||||||
robot.respond(/(status|ls)$/i, function(r) {
|
robot.respond(/(status|ls)$/i, function(r) {
|
||||||
console.log("status");
|
console.log("status");
|
||||||
robot.http("http://status.ctdo.de/api/simple/v2")
|
robot.http("https://status.ctdo.de/api/simple/v2")
|
||||||
.header('Accept', 'application/json')
|
.header('Accept', 'application/json')
|
||||||
.get()(function(err, res, body) {
|
.get()(function(err, res, body) {
|
||||||
var data = JSON.parse(body);
|
var data = JSON.parse(body);
|
||||||
|
|
Loading…
Reference in New Issue