Skip to content
This repository has been archived by the owner on Sep 21, 2021. It is now read-only.

Commit

Permalink
Fix map zoom level
Browse files Browse the repository at this point in the history
  • Loading branch information
karlhe committed Jul 21, 2016
1 parent 690a1bb commit 08b44f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions notifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,13 @@ def pokemon_found(pokemon):
address = ",".join(location.address.split(",")[0:2])

# Locate pokemon on GMAPS
gMaps = "http://maps.google.com/maps?q={},{}&24z".format(str(pokemon["lat"]), str(pokemon["lng"]))
maps_link = "http://maps.google.com/maps?q={},{}&20z".format(str(pokemon["lat"]), str(pokemon["lng"]))

# Get disappearance time
disappear_time = str(datetime.fromtimestamp(pokemon["disappear_time"]).strftime("%I:%M%p").lstrip('0'))

# Create notification
notification_text = "*{}* is here until *{}* at *{}* ({})".format(_str(pokemon["name"]), disappear_time, address, gMaps)
notification_text = "*{}* is here until *{}* at *{}* ({})".format(_str(pokemon["name"]), disappear_time, address, maps_link)

# Post to Slack
post_url = "https://slack.com/api/chat.postMessage"
Expand Down

0 comments on commit 08b44f2

Please sign in to comment.