Skip to content
This repository has been archived by the owner on Feb 13, 2022. It is now read-only.

OlliV/cobol-iot-dashboard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

COBOL + Now + AWS IoT

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published