/cobol-iot-dashboard

COBOL + Now + AWS IoT

Primary LanguageCMIT LicenseMIT

cobol-iot-dashboard

COBOL CGI program reading and writing to Redis + a simple AWS IoT Lambda function just polling the COBOL API.

https://youtu.be/WTMAnvDh4OY

The Lambda function

'use strict';

const https = require('https');

exports.handler = (event, context, callback) => {
    console.log('Received event:', event.clickType);

    const options = {
        host: 'cobol-dashboard.now.sh',
        path: '/push',
        port: 443,
        method: 'GET'
    };

    const req = https.request(options, (res) => {
        callback();
    });
    req.end();
};

Powered by