https://github.com/chitacan/cmmt
๐ personal commute log scripts
https://github.com/chitacan/cmmt
appscript clasp ios-shortcut nfc oclif shortcuts-automation
Last synced: 16 days ago
JSON representation
๐ personal commute log scripts
- Host: GitHub
- URL: https://github.com/chitacan/cmmt
- Owner: chitacan
- Created: 2020-02-16T17:05:21.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-03-11T06:08:03.000Z (over 5 years ago)
- Last Synced: 2025-08-29T08:58:34.320Z (about 1 month ago)
- Topics: appscript, clasp, ios-shortcut, nfc, oclif, shortcuts-automation
- Language: JavaScript
- Homepage:
- Size: 30.3 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# cmmt
์ถํด๊ทผ, ๊ทผ๋ฌด ์๊ฐ์ ๊ธฐ๋กํ๊ณ ๊ด๋ฆฌํ๊ธฐ ์ํ ์คํฌ๋ฆฝํธ ๋ชจ์.
## cli client
๊ตฌ๊ธ ์ํธ์ ๊ธฐ๋ก๋ ๊ทผ๋ฌด์๊ฐ์ ํ์ธํฉ๋๋ค.
[](https://oclif.io)
[](https://npmjs.org/package/cmmt)
[](https://npmjs.org/package/cmmt)
[](https://github.com/chitacan/cmmt/blob/master/package.json)### development
```
$ npm install
$ npm link .
```### usage
```
$ npm install -g cmmt
$ cmmt --help
$ cmmt
Query Sheet... doneDate Duration (minutes)
02/17 07:53 473
02/18 08:28 508
02/19 07:30 450
02/20 08:03 483
02/21 08:15 495Name Duration
total 40:09
total (+today) 40:09
left -00:09
left (+today) -00:09
```### publish
```
$ npm version (major|minor|patch)
$ npm publish
```## Apps Script
[](https://github.com/google/clasp)
์ถ๊ทผ๊ณผ ํด๊ทผ ์๊ฐ์ ์ง์ ๋ [๊ตฌ๊ธ ์ํธ์](https://docs.google.com/spreadsheets/d/1Q7LjtAK8NxF2EoLDKjlXVSx3b0UrmIloRKmkRi-dzyg/edit?usp=sharing) ๊ธฐ๋กํฉ๋๋ค. iOS Shortcuts ์ฑ์์ `clasp` ์ผ๋ก ๋ฐฐํฌ๋ Apps Script ์ `HTTP GET` ์์ฒญ์ ๋ณด๋ด ์คํํฉ๋๋ค.
### setup
[clasp](https://github.com/google/clasp/blob/master/docs/run.md#setup-instructions) ์ ์ค์นํฉ๋๋ค. `clasp` ์ผ๋ก ์คํ, ๋ฐฐํฌํ๊ธฐ ์ํด ์คํฌ๋ฆฝํธ ํ๋ก์ ํธ๋ฅผ [gcp](https://cloud.google.com/) ์ [์ฐ๋ํฉ๋๋ค.](https://github.com/google/clasp/blob/master/docs/run.md#setup-instructions)
```
$ clasp login --creds cred.json
$ clasp create --rootDir scripts --parentId
```### development
```
$ clasp push
$ clasp run 'main' -p '["CLOCK_IN", "๊น๊ฒฝ์ด", {"pad": "0211"}]'
$ clasp run 'query' -p '["๊น๊ฒฝ์ด"]'
$ clasp logs --watch
```### deploy
```
$ clasp deployments
$ clasp deploy --deploymentId
```### iOS Shortcut
* [NFC ํ๊ทธ๋ฅผ ์ค๋นํฉ๋๋ค.](https://www.amazon.com/s?k=nfc)
* NFC ํ๊ทธ๋ก ์คํํ [Clock In & Out](https://www.icloud.com/shortcuts/05e9e63ffb6145ca9ae28a459e817a62) iOS Shortcut ์ ๊ธฐ๊ธฐ์ ์ค์นํฉ๋๋ค.
* Shortcuts ์ฑ์์ `NFC` Automation ์ ์์ฑํฉ๋๋ค.* NFC ํ๊ทธ๊ฐ ์ค์บ๋์์๋ ์คํํ Shortcut ์ ์ค์ ํฉ๋๋ค.
## [Timing](https://timingapp.com/)
์ถ๊ทผ, ํด๊ทผ์ ๊ฑธ๋ฆฐ ์๊ฐ์ [Timing](https://web.timingapp.com/) ์ ๊ธฐ๋กํฉ๋๋ค. iOS Shortcuts ์ฑ์์ [Timing Web API](https://web.timingapp.com/docs/) ๋ฅผ ํธ์ถํด์ ์คํํฉ๋๋ค.
* [NFC ํ๊ทธ๋ฅผ ์ค๋นํฉ๋๋ค.](https://www.amazon.com/s?k=nfc)
* NFC ํ๊ทธ๋ก ์คํํ [Log Timing Task](https://www.icloud.com/shortcuts/8e930ced7fa045a4bc73f587f884ed84) iOS Shortcut ์ ๊ธฐ๊ธฐ์ ์ค์นํฉ๋๋ค.
* Shortcuts ์ฑ์์ `NFC` Automation ์ ์์ฑํฉ๋๋ค.* NFC ํ๊ทธ๊ฐ ์ค์บ๋์์๋ ์คํํ Shortcut ์ ์ค์ ํฉ๋๋ค.
![]()