Skip to content

Instantly share code, notes, and snippets.

View mohanjith's full-sized avatar

Mohanjith Sudirikku Hannadige mohanjith

View GitHub Profile

Challenge

Andrea wants to know when she would need to leave home from Aalto Yliopisto to Keilaniemi to arrive at KONE Building by 08:45 on weekdays so she is on time for the Daily. Andrea is working on the solutions that will send out an e-mail by 06:00 on weekdays with the route and time to leave Aalto Yliopisto stop. She is not familiar with GraphQL but she is very familiar with REST APIs.

Your task is to build a REST API which can be deployed to AWS that Andrea can call to get the all the routes given time of arrival in yyyyMMddHHmmss format, start and end stop names.

Requirements

Your project should contain at minimum a CDK stack using Python. You should be able to demonstrate the API in action either running locally or AWS.

Grading

<video-js id="dalsbruk-vierassatama-live" class="video-js vjs-default-skin vjs-16-9 vjs-big-play-centered" controls poster="https://stream.pilvimies.fi/dalsbruk/vierassatama/index.jpg?v1" width="555" >
<source src="https://stream.pilvimies.fi/dalsbruk/vierassatama/index.m3u8" type="application/x-mpegURL" >
<source src="https://stream.pilvimies.fi/dalsbruk/vierassatama/index.mpd" type="application/dash+xml" >
</video-js>
<script src="https://cdnjs.cloudflare.com/ajax/libs/video.js/7.5.4/alt/video.core.min.js"></script>
<script src="https://unpkg.com/@videojs/http-streaming/dist/videojs-http-streaming.js"></script>
<script>
var _pmvs_linkElement = document.createElement("link");
_pmvs_linkElement.rel = "stylesheet";
_pmvs_linkElement.href = "https://cdnjs.cloudflare.com/ajax/libs/video.js/7.5.4/video-js.css";
@mohanjith
mohanjith / gpio.py
Created February 19, 2015 10:48
Python script for Raspberry Pi Bv2 with Adafruit 2.8" TFT resistive touch screen that will play/pause playback, play Yle X3M or Radio Nova with tactile buttons using GPIO
import RPi.GPIO as GPIO
from mpd import MPDClient
import time
GPIO.setmode(GPIO.BCM)
GPIO.setup(18, GPIO.IN, pull_up_down = GPIO.PUD_UP)
GPIO.setup(27, GPIO.IN, pull_up_down = GPIO.PUD_UP)
GPIO.setup(22, GPIO.IN, pull_up_down = GPIO.PUD_UP)
GPIO.setup(23, GPIO.IN, pull_up_down = GPIO.PUD_UP)