Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/qeteshpony/mikrotikleds
Switch port LEDs on a MikroTik device
https://github.com/qeteshpony/mikrotikleds
home-automation leds mikrotik mikrotik-api mqtt
Last synced: 1 day ago
JSON representation
Switch port LEDs on a MikroTik device
- Host: GitHub
- URL: https://github.com/qeteshpony/mikrotikleds
- Owner: Qeteshpony
- License: mit
- Created: 2024-08-05T22:29:06.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2024-08-15T17:27:26.000Z (4 months ago)
- Last Synced: 2024-12-16T00:05:51.077Z (7 days ago)
- Topics: home-automation, leds, mikrotik, mikrotik-api, mqtt
- Language: Python
- Homepage:
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Switch the Interface LEDs on a MikroTik RouterOS device
This script uses the REST API of MikroTik RouterOS devices to turn the interface LEDs on or off,
controlled by an MQTT topic on the local network.I run this on my docker host but the python script can be easily adapted to work on its own.
### Usage
- Create a user with _full_ permissions on each of the devices and give it a strong password
- Copy the ledswitch.example.env file to ledswitch.env
- Edit the ledswitch.env file and fill in your data
- Build and start the container by running `docker compose up -d`### Not all MikroTik devices support this
I am using this on a _CRS309-1G-8S+IN_ and a _CRS326-24G-2S+RM_ which both support switching all Interface LEDs.
If the interface LEDs are listed unter /system/leds the chances are good that you can switch them.
Some devices only support switching some of their LEDs, e.g. the _hEX S_ can only switch the LED for the SFP-Port off.