Skip to content

Blyschak/lights-on

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lights On

Use Telegram Bot and GitHub Workflows to notify you about power supply status on your OpenWRT router.

Installation

  • Telegram Bot setup
  • GitHub setup
    • Fork this repository
    • Create personal GitHub access token
    • Add Telegram bot token TELEGRAM_TOKEN secret to your repository
  • Router setup
    • Install OpenWrt on your Router
    • Install curl and jq:
      opkg update && opkg install curl jq
    • Set the following variables in the lightson script:
      • TELEGRAM_TOKEN - Telegram bot token
      • GH_USER - Your GitHub user
      • GH_TOKEN - Your personal GitHub access token
    • Copy lightson script to /usr/bin/ on the router. Make sure it's executable and owned by root
    • Copy etc/init.d/lightson script to /etc/init.d/lightson on the router. Make sure it's executable and owned by root
    • Enable and start the service:
      /etc/init.d/lightson enable && /etc/init.d/lightson start

About

Lights On Telegram Bot that I run on my router to make it send me a notification when it turns on

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages