Skip to content

A simple telegram bot that tells the current weather, developed at HackNTU 2019.

License

Notifications You must be signed in to change notification settings

AaronCQL/telegram-weather-man

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 

Repository files navigation

WeatherMan

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 data.gov.sg 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 data.gov.sg API for weather updates

Challenges we ran into

  1. Using Python for the first time
  2. Extracting and using the data.gov.sg 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 data.gov.sg API

What we learned

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

What's next for WeatherMan

This list contains (future) updates not done in the Hackathon itself

  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

About

A simple telegram bot that tells the current weather, developed at HackNTU 2019.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages