An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

# cmmt

์ถœํ‡ด๊ทผ, ๊ทผ๋ฌด ์‹œ๊ฐ„์„ ๊ธฐ๋กํ•˜๊ณ  ๊ด€๋ฆฌํ•˜๊ธฐ ์œ„ํ•œ ์Šคํฌ๋ฆฝํŠธ ๋ชจ์Œ.

## cli client

๊ตฌ๊ธ€ ์‹œํŠธ์— ๊ธฐ๋ก๋œ ๊ทผ๋ฌด์‹œ๊ฐ„์„ ํ™•์ธํ•ฉ๋‹ˆ๋‹ค.

[![oclif](https://img.shields.io/badge/cli-oclif-brightgreen.svg)](https://oclif.io)
[![Version](https://img.shields.io/npm/v/cmmt.svg)](https://npmjs.org/package/cmmt)
[![Downloads/week](https://img.shields.io/npm/dw/cmmt.svg)](https://npmjs.org/package/cmmt)
[![License](https://img.shields.io/npm/l/cmmt.svg)](https://github.com/chitacan/cmmt/blob/master/package.json)

### development

```
$ npm install
$ npm link .
```

### usage

```
$ npm install -g cmmt
$ cmmt --help
$ cmmt
Query Sheet... done

Date 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 495

Name 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

[![clasp](https://img.shields.io/badge/built%20with-clasp-4285f4.svg)](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 ์„ ์„ค์ •ํ•ฉ๋‹ˆ๋‹ค.