Skip to content

A Telegram bot to measure the percentage of black pixels in OLED wallpapers. It helps users evaluate the true black content of their wallpapers.

License

Notifications You must be signed in to change notification settings

ruchernchong/oled-blackmeter

Repository files navigation

OLED BlackMeter

Link to the Telegram Bot: https://t.me/OLEDBlackMeterBot

Installation

# Install the necessary packages
pip install -r requirements.txt

Run in Local Development

# Setup ngrok
ngrok http 5000 # Flask uses port 5000 by default. You can change this accordingly to your preference

# Copy the .env.example file and replace the values accordingly
cp .env.example .env

# Update your NGROK_STATIC_DOMAIN in .env with the ngrok "Forwarding" URL
NGROK_STATIC_DOMAIN=2655-158-140-141-125.ngrok-free.app # Example

# Update your Telegram Bot Token in your .env
TELEGRAM_BOT_TOKEN=

# Run the server.py
python server.py

Once the above is completed, head over to your Telegram Bot that was setup with @BotFather and you are done.

Deploy to Google Cloud Functions

By default, this Telegram bot is already properly setup and you may follow the commands below to deploy to Google Cloud Functions.

# Setup a Pulumi Stack (You will need a Pulumi account first)
pulumi stack init

# Update the stack
pulumi up

However, if you have intention to use other methods of deployment, you are feel free to do so.

*Do note that the current setup is running in webhook mode rather than polling mode.

Screenshots

OLED BlackMeter Telegram Bot OLED BlackMeter Telegram Bot

About

A Telegram bot to measure the percentage of black pixels in OLED wallpapers. It helps users evaluate the true black content of their wallpapers.

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

Languages