This is a repo for easy car - an app which finds the newest exams on info-car.pl
Remember to give this repo a ⭐.
- Username and password login
- Session refreshing
- Separate library crate
- Enrolling to exam
- Easy deployment to shuttle.rs
- Mobile notifications via a telegram
- Customisable telegram bot
- Checking exam status
- Paying for exam using BLIK code
To run this project and use the telegram bot you have to fill in the Secrets.toml.example
file and
then rename it to Secrets.toml
.
If you want to choose a proper OSK_ID
for your exam centre you can see the corresponding word
names and OKS_ID
s here.
You can create your own bot using the BotFather.
You can either compile this program yourself or use one of the provided binaries in the release page
cargo install --git https://github.com/kamack38/easycar.git
cargo build --release
RUST_LOG="INFO" cargo run --release
A user systemd unit file is provided (assets/easycar.service
). Secrets.toml
needs to reside in
the home directory of a user. After completing the installation, copy the unit file to
~/.config/systemd/user/
and then enable and start the service:
systemctl --user enable --now easycar.service
If you want it to start automatically after a reboot, enable lingering for your user:
sudo loginctl enable-linger "$(whoami)"
This repo provides a shuttle deployment.
To use it create an account at shuttle.dev.
Install cargo-shuttle
:
cargo install cargo-shuttle
and login to your account:
shuttle login
Create a new project:
shuttle init
To deploy run:
shuttle deploy
I consider the project feature complete but if You are missing certain a feature please contribute.
The only thing I may refactor is the logining in, because it currently depends on a bug on the website.
The easycar
project is distributed under the AGPL-3.0 license and the info-car-api
crate is
distributed under the LGPL-3.0 license. The license files are stored in the respective project
roots.
Copyright (C) 2024 Kamack38
Made with ❤️ in 🇵🇱!