Automato.Tasks
🤖 tasks while you are sleeping 😴
The easiest tool to automate Challenges
- In the country where i live, you get durring the day an averrage internet speed of (40 kbps).
- The internet quality starts to get better at 2am.
- We need to plan the tasks that require a decent connexion at that time.
- Obviously, not everyone can stay that late.
Solution
Create a tool that waits for the internet speed to get better(the minimum can be set from the settings) and start executing our tasks
- Download files
- Execute commands
While we are sleeping.
Requirements
- .NET Core 3.1
Technologies
- C#
- .NET Core
Principles and patterns
- Separation of concerns pattern
- Don't repeat yourself principle
- Single Responsibility Principle
- Interface Segregation Principle
- Dependency Inversion Principle
Installation
-
Open the terminal and run the command below
user$ dotnet tool install --global Automato.Tasks
Get started
-
After the installation run the following command to create the appropriate environment
user$ automato
-
To update your tasks run the following command
user$ automato tasks
Here is an exemple of some todos
cmd => sudo apt-get update download => https://github.com/Amine-Smahi/Blood-Donation/archive/master.zip cmd => unzip master.zip cmd => cd master cmd => dotnet build
-
Launch automato by executing
user$ automato
-
If you wish that your computer go to sleep after finishing all the tasks
user$ automato sleep
Features
-
All automato settings are easy to configure, simply edit the settings.json file
{ "SettingsFileLocation": "./settings.json", "DownloadLocation": "./downloads", "MinimumInternetSpeed": 30, "MinimumGoodPings": 5, "TasksLocation": "./MyTasks.txt", "TaskTypeSplitter": "=\u003E", "WaitFewSecondsForAnotherTry": 2000 }
-
To open the settings.json file, run
user$ automato settings
-
To open the downloads folder, run
user$ automato downloads
Note
- Feel free to open an issue, request a feature or contribute by opening a PR.
- This project is under MIT license