srapilly / tgvmax-travels-confirmation

AWS Lambda that autoconfirm TGVmax travels

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Deploy AWS Lambda

What is it ?

Deploy an AWS lambda that automatically confirm TGVmax travels every 10 hours

Only confirm trainline travels for now

The following env variable needs to be set in gitlab secret:

  • TGVMAX_LOGIN
  • TGVMAX_PWD
  • AWS_ACCESS_KEY_ID
  • AWS_SECRET_ACCESS_KEY

Optionally the following env variable can be used to send a notification to a matrix room

  • MATRIX_TOKEN (can be found in Help&About -> Advanced in riot.im settings)
  • MATRIX_USER (ex: @abcdef:matrix.org)
  • MATRIX_ROOM (can be found in Advanced -> Room Information in riot.im room settings)

What does it uses ?

  • serveless for deploying the lambda, config can be changed in serverless.yml file
  • puppeteer for browser automation
  • matrix-js-sdk for sending a notification

About

AWS Lambda that autoconfirm TGVmax travels

License:MIT License


Languages

Language:JavaScript 100.0%