Get the latest schedule from Google Calendar and notify it on LINE every morning

screenshot-2019-12-13-155539.png At my home, we have introduced a slightly convenient one that notifies LINE of the schedule from the day to the day after tomorrow every morning: rolling_eyes:

Overview

Untitled.png

--Get static data from S3 --Get the schedule until the day after tomorrow with Google Calendar API --Notify the talk room set by LINE Notify API

material

--AWS Lambda ... one --Google Calendar ... one or more --GCP service account ... one or more --LINE Notify access token ... one or more

(as you like) --AWS S3 ... one

How to make

A. GCP console

  1. Enable the Google Calendar API.
  2. Create a service account. ... If you only want to share with a limited number of users as a requirement, it's best to use a service account.
  3. Add the service account created in 2. to "Share with specific users" to the calendar you want to notify.

B. LINE Notify

  1. Issue an access token for the room you want to notify.

C. AWS Lambda

  1. Get the latest appointments with the Google Calendar API using the key for the Google service account created in A.
  2. Notify the room using the LINE Notify API with the access token created in B.
  3. (Supplement) Is it relatively convenient to put static data used for notification in S3 so that it can be referred to by IAM?

that's all! It was a little convenient to be able to do it quickly ~

Recommended Posts

Get the latest schedule from Google Calendar and notify it on LINE every morning
Scraping the schedule of Hinatazaka46 and reflecting it in Google Calendar
Import the schedule obtained from "Schedule-kun" into Google Calendar
Get, test, and submit test cases on the command line in the AtCoder contest
[Personal memo] Get data on the Web and make it a DataFrame
Access Google Calendar from the iOS app
Get holidays with the Google Calendar API
Get the address from latitude and longitude
[Free] Hit the Clash Royale API from lambda and send it to LINE
I want a Slack bot that calculates and tells me the salary of a part-time job from the schedule of Google Calendar!
Let's get notified of the weather in your favorite area from yahoo weather on LINE!
Get mail from Gmail and label it with Python3
I tried to notify the honeypot report on LINE
Get the matched string with a regular expression and reuse it when replacing on Python3
Let's get notified of the weather in your favorite area from yahoo weather on LINE! ~ PART2 ~
How to get the current weather data and display it on the GUI while updating it automatically
Put Ubuntu in Raspi, put Docker on it, and control GPIO with python from the container