https://github.com/boneskull/skwrd
https://github.com/boneskull/skwrd
Last synced: 6 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/boneskull/skwrd
- Owner: boneskull
- License: other
- Created: 2021-05-03T22:40:21.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2021-06-21T17:15:27.000Z (over 4 years ago)
- Last Synced: 2024-10-29T22:37:19.583Z (over 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 77.1 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# skwrd
> Automates the daily school "Wellness Screening Attestation" form as per WA state COVID guidelines
## Prerequisites
- This uses Chrome, so you need Chrome. Sorry, I don't like it either.
- Tested with Node.js v16.x but probably works on v12.x
## Setup
1. `git clone` this and run `npm install` in your working copy. No, I am not going to publish it.
1. Create a `.env` file with the following (you can copy `.env.example` to `.env`):
- `SKWRD_LOGIN_URL` - URL to login page
- `SKWRD_USERNAME` - Your Skyward login
- `SKWRD_PASSWORD` - Your Skyward password
1. Run `node skwrd.js`
Along with some status text, you'll see the following upon success:
> `Attested successfully`
If you have filled out the form, you'll see:
> `Form already submitted`
If something bad happened, you'll see:
> `Failed to submit form!`
...and the process will exit with code 1.
## You might consider...
...running this as a `cron` job. In fact, that's the next thing I'm going to do.
## Troubleshooting
- Go ahead and remove the `logLevel` line from the config section in `skwrd.js`, which will output more info from [WebdriverIO](https://webdriver.io).
## Also
I don't plan to maintain this project. YMMV.
## License
Copyright 2021 Christopher Hiller. Licensed Apache-2.0