8000 GitHub - kamack38/easycar: Repository for interacting with the https://info-car.pl service
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

kamack38/easycar

Repository files navigation

EasyCar

This is a repo for easy car - an app which finds the newest exams on info-car.pl

Remember to give this repo a ⭐.

Features

  • 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

Prerequisites

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_IDs here.

You can create your own bot using the BotFather.

Installing

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

Building

cargo build --release

Running

RUST_LOG="INFO" cargo run --release

Running as a daemon

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)"

Deployment

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

Roadmap

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.

License

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 🇵🇱!

About

Repository for interacting with the https://info-car.pl service

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages

0