This project allows to manage computers in small office via Telegram-bot. You can:
- Check status of PC or router
- Check whether device is online
- Turn on PC's via WOL packet
- Turn off PC Project contains two semi-independent parts: a part hosted on the router, and a part running on PC
- copy files script.rsc, sched.rsc to the router and run them. These files will create all needed scripts and scheduled jobs.
- change script tg_config on the router with real values:
:local config {
"botAPI"="0123456789:dfdfadf";
"defaultChatID"="chatid";
"trusted"="1122445522";
"storage"="";
"timeout"=60;
"ignore"="ignoreCommand";
"executeNotCommit"="health,add,remove,online";
}
:put "<tg_config>: Config------------------------------------------------"
:foreach k,v in=$config do={ :put "\t\"$k\" = \"$v\"" }
:put "\n"
return $config
- reboot router
- copy content of Powershell folder to any place on the PC
- run script install_run_as_admin.bat with elevated rights
- script will copy nessesary files to %programdata%\Dreamcatcher folder and will create a service DreamcatcherService
- create file config.json in the folder %programdata%\Dreamcatcher:
{
"botapi": "0123456789:afdfadfadfad",
"trusted": "1122334455",
"allowed": "shutdown,health,online",
"notCommit":" health,online"
}