lambda-tech-club / applied-math-alarm

絶対起きれる⏰

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

絶対に起きられる目覚まし時計

YouTube動画

thumbnail https://youtu.be/SaouHglJTD0

問題パターン

pages/index.tsx内17行目にある、handleClick中のrouter.push()の値を変更することで問題形式を切り替えられます。

const handleClick = () => {
	...
	router.push('/integral')
}

定積分

http://localhost:3000/integral
int

微分方程式

http://localhost:3000/differential
diff

行列式

http://localhost:3000/determinant
det

起動方法

  1. This is a Next.js project bootstrapped with create-next-app.

  2. 環境変数を設定

変数名 説明
TOKEN https://github.com/OpenWonderLabs/SwitchBotAPI#getting-started
SECRET https://github.com/OpenWonderLabs/SwitchBotAPI#getting-started
DEVICE_ID SwitchBot Hub 経由の仮想デバイスID
ALARM_ENV development, production

下記コマンドを実行するととりあえず動きます

echo "TOKEN=tokentokentoken" > .env.local && echo "SECRET=secretsecret" >> .env.local && echo "DEVICE_ID=02-00000000" >> .env.local && echo "ALARM_ENV=development" >> .env.local
  1. 開発サーバーを起動
yarn && yarn dev

Open http://localhost:3000 with your browser to see the result.

About

絶対起きれる⏰


Languages

Language:TypeScript 87.5%Language:CSS 11.6%Language:JavaScript 0.9%