This code is used to make a telegram bot which can get the daily HF/VHF/UHF condition automatically.
The bot is written in Python
You can read more from my blog: https://www.izumichino.tk/2023/07/07/%e8%87%aa%e5%b7%b1%e5%8a%a8%e6%89%8b%e5%86%99%e4%b8%80%e4%b8%aa%e8%8e%b7%e5%8f%96%e5%bd%93%e6%97%a5%e4%bc%a0%e6%92%ad%e9%a2%84%e6%b5%8b%e7%9a%84telegram-bot/
Please be sure that you have installed the packages that the bot needed
Use these commands to install runtime packages:
pip install request
pip install bs4
pip install python-telegram-bot==13.3
You can use @BotFather( https://t.me/BotFather ) to create a new bot that you will use soon.
First to fill your token into the code and fill the url which you will get condition images soon from it.
Here are some example URLs you can use:
HF & VHF Selectable SN Selectable 304A Band Condition Calculations EME Deg Selectable MUF Horizontal Selectable Solar Images Black Only No Transparent | https://www.hamqsl.com/solarn0nbh.php |
No Band Condition Calculations Large Vertical Selectable 304A 19 Selectable Solar Images Black Only No Transparent | https://www.hamqsl.com/solarpic.php |
HF & VHF Band Condition Calculations Large Vertical Selectable 304A EME Deg Selectable MUF Black Only No Transparent | https://www.hamqsl.com/solarvhf.php |
No Band Condition Calculations Small Vertical Selectable 304A Multi-Color & Transparent | https://www.hamqsl.com/solar.php |
No Band Condition Calculations Small Vertical Selectable 304A Multi-Color & Transparent | https://www.hamqsl.com/solarsmall.php |
No Band Condition Calculations Small Vertical Limited Data Multi-Color & Transparent | https://www.hamqsl.com/solarbrief.php |
Only Band Condition Calculations Small Vertical Multi-Color & Transparent | https://www.hamqsl.com/solarbc.php |
Band Condition Calculations Small Vertical Selectable 304A Multi-Color & Transparent | https://www.hamqsl.com/solar100sc.php |
Band Condition Calculations Large Vertical Selectable 304A Multi-Color & Transparent | https://www.hamqsl.com/solar2.php |
No Band Condition Calculations Horizontal Selectable 304A 19 Selectable Solar Images Black Only No Transparent | https://www.hamqsl.com/solarpich.php |
Band Condition Calculations Selectable Europe K-Ind tromso & dombas Selectable 304A 19 Selectable Solar Images Black Only No Transparent | https://www.hamqsl.com/solar101pic.php |
HF & VHF Selectable Europe K-Ind tromso & dombas Selectable 304A Band Condition Calculations EME Deg Selectable MUF Horizontal Black Only No Transparent | https://www.hamqsl.com/solar101vhf.php |
HF & VHF Selectable Europe K-Ind tromso & dombas Selectable 304A Band Condition Calculations EME Deg Selectable MUF Horizontal Black Only No Transparent | https://www.hamqsl.com/solar101vhfper.php |
HF & VHF Selectable Europe K-Ind tromso & dombas Selectable 304A Band Condition Calculations EME Deg Selectable MUF Horizontal 19 Selectable Solar Images Black Only No Transparent | https://www.hamqsl.com/solar101vhfpic.php |
Band Condition Calculations Selectable Europe K-Ind tromso & dombas Selectable 304A Multi-Color & Transparent | https://www.hamqsl.com/solar101sc.php |
No Band Condition Calculations Horizontal Selectable 304A 19 Selectable Solar Images Black Only No Transparent | https://www.hamqsl.com/solarsun.php |
No Band Condition Calculations Horizontal 304A @ EVE only Solar Flux Sunspot No. Graph Last 30 days Black Only No Transparent | https://www.hamqsl.com/solargraph.php |
No Band Condition Calculations Horizontal 171A & 304A @ EVE only Solar Flux Sunspot No. 11 MUF readings Graph Last 30 days Black Only No Transparent | https://www.hamqsl.com/marston.php |
No Band Condition Calculations Horizontal Selectable 304A Current World Sunlight Map Solar Flux Sunspot No. 11 MUF readings Black Only No Transparent | https://www.hamqsl.com/solarmuf.php |
No Band Condition Calculations Selectable 304A Current World Sunlight Map No Color No Transparent | https://www.hamqsl.com/solarmap.php |
No Band Condition Calculations Selectable 304A Current World Sunlight Globe No Color No Transparent | https://www.hamqsl.com/solarglobe.php |
No Band Condition Calculations Selectable 304A Current World Moon View of Globe EME Deg No Color No Transparent | https://www.hamqsl.com/moonglobe.php |
No Band Condition Calculations Selectable Image Selectable 304A Current Solar System View No Color No Transparent | https://www.hamqsl.com/solarsystem.php |
And what's more you can use theses condition images from https://prop.kc2g.com/
1.https://prop.kc2g.com/renders/current/mufd-normal-now.svg
2.https://prop.kc2g.com/renders/current/fof2-normal-now.svg
After all you can run this code on your server or local with command:
python bot_main.py
This bot has 3 commands:
/start Start to use the bot.
/getcondition To get the daily HF/VHF/UHF condition image.
/help To list all the commands bot can use.
Of course you can modify this bot so that you can have more functions