Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/the-phinisher/auto-netaccess
Automatic renewal of authorization for IITM netaccess
https://github.com/the-phinisher/auto-netaccess
iitm netacces nodejs puppeteer
Last synced: about 1 month ago
JSON representation
Automatic renewal of authorization for IITM netaccess
- Host: GitHub
- URL: https://github.com/the-phinisher/auto-netaccess
- Owner: the-phinisher
- Created: 2024-09-11T19:39:40.000Z (2 months ago)
- Default Branch: main
- Last Pushed: 2024-09-17T05:51:59.000Z (about 2 months ago)
- Last Synced: 2024-09-30T07:41:25.706Z (about 2 months ago)
- Topics: iitm, netacces, nodejs, puppeteer
- Language: Shell
- Homepage:
- Size: 16.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# IITM Netacess Auto Update
Automatic authorization renewal for [IITM netaccess](https://netaccess.iitm.ac.in).
Requires NodeJS, see: [NodeJS download and installation](https://nodejs.org/en/download/package-manager).
> **_NOTE:_** It's recommended to offset your cron times to different values to ensure low workload during specific times like the default time.
# Setup
## Setup script
Run `chmod +x setup.sh && ./setup.sh` on your terminal and input the required data. Have a look at [cron wiki](https://en.wikipedia.org/wiki/Cron) for understanding cron scheduling conventions.
## Manual
After changing to current directory, run `npm install` or `npm i` to install packages.
Create a file `.env` and write its contents,
```
ROLLNO=""
PASSWD=""
```Switch from `"` to `'` if your password contains `"`.
With the script ready, run `crontab -e`, and add a new line `* * * * * node /path/to/project/index.js`. Replace the `* * * * *` with your own cron schedule.
Refer to cron scheduling convention at [cron wiki](https://en.wikipedia.org/wiki/Cron).