A simple telegram bot developed at HackNTU 2019

Try it out on telegram!

Server hosted on pythonanywhere

What it does

Gives the current weather update (current temperature, UV index, PSI, and area forecast) at 16 specific locations as specified in to everyone in a group, or directly via private messaging.

These 4 indicators are especially important for social sports group (e.g. water sports, tennis, soccer), even so when there is an increasing trend of social networking platforms centered around sports. However, these 4 arguably most important indicators are located on different pages on NEA's app and website, making it user-unfriendly and annoying.

How we built it

It is built using Python with pyTelegramBotAPI and with Singapore's API for weather updates

Challenges we ran into

  1. Using Python for the first time
  2. Extracting and using the API (lack of documentation)

Accomplishments that we're proud of

  1. Learning Python in 2 hours
  2. Learning how to use pyTelegramBotAPI
  3. Extracting the data from the API

What we learned

  1. Programming in Python!
  2. Roughly how to use the API

What's next for WeatherMan

  1. Instant updates should any of the 4 metrics go beyond the "unhealthy" levels
  2. Done: Letting users geo-tag their location to return the closest station and its data
  3. Options to choose from 2, 6, 12, 24, or 96 hours forecasts
  4. An update button instead of constantly having to give the same commands

Built With

Share this project: