Sign inSign up

nicokne/wol-server

By nicokne

•Updated over 6 years ago

Image
0

88

nicokne/wol-server repository overview

⁠WakeOnLanServer

⁠Where do you find the machines

In "config.json" you can find all the machines the WOL server has access to.

⁠Add a new machine

If you want to add a new machine, do so according to the template.

"name": "Max",
"email": "[email protected]",
"mac": "0A-1b-2C-3d-4E-5f",
"chatId": "123456789"
  • In the "name" field, please indicate which name the machine should react to.
  • In the "email" field, enter the e-mail address of the machine owner.
  • In the "mac" field, enter the MAC address of the machine.
  • In the "chatID" field, enter the chat ID the user to be notified has when he contacts the bot.

⁠Communication

The communication is handled via the "communication.py" file. This file wakes up the machine and sends a notification to the user specified as the owner. There is also the possibility to send an e-mail, but this is annoying in the long run.

⁠Sending the Magic Packet

The Magic Packet is sent through the "onLan.py" file. It processes the information about the machine and sends the packet to the MAC address.

⁠Telegram configuration

The configuration of the telegram communication is made by the "telegram.py". It contains the token of the bot, all messages and which commands the bot should react to. Likewise, a list is created in it, which can call up a help menu. This help menu shows which commands the bot can handle.

⁠Telegram Bot

The bot must be configured before use and its token must be specified in the "telegram.py".

  • In the "main.py" only two parameters concerning the bot are given.

⁠Information for the server

The "getInfo.py" contains information that the server needs to be able to act. The information is about:

  • How the bot gets the name of the owner from the ChatID.
  • How the bot gets the ChatID from the name of the owner
  • And how the bot gets the email address from the owner's name.

Tag summary

Content type

Image

Digest

Size

32.9 MB

Last updated

over 6 years ago

docker pull nicokne/wol-server:v0.0.1-arm