Have fun with LINE!
-
Create folder named
ssl
, then copy all certs intossl
- You can create free SSL certificate at SSL For Free if you don't have it yet
-
Make sure to replace infomations listed in
config.js
, including- SSL
- CA bundle
- Private key
- Certificate
- LINE channel
- Channel ID
- Channel secret
- Channel access token
- CWB
- Path
- Absolute path to the project
- SSL
-
Run
npm install
$ node .
It's recommended to add the script into crontab to run automatically
Below is an example that run script every 15 mins
*/15 * * * * osk2 /usr/bin/node /var/www/bot/scripts/update-information.js
- AQX data fecth from opendata2.epa.gov.tw
- Weather data fetch from Taiwan's Weather Maps!