Skip to content

Commit

Permalink
Move bot token agein to the top... bot token was not recognized, so q…
Browse files Browse the repository at this point in the history
…uiet periode was not respected.
  • Loading branch information
aschuma committed Jan 27, 2018
1 parent 3466703 commit d57e93a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tweet.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,14 +90,14 @@ def may_tweet_again():
if pm_10_0 is not None and pm_2_50 is not None and float(pm_10_0) > conf_limit_pm_10_0:
current_time = strftime("%Y-%m-%d %H:%M:%S UTC", gmtime())

message = "{}\n⚠ PM10: {}g/m PM2.5: {}µg/m³, {}°C, RH:{}%\nDetails: {}\nThis is a #{}, code available on github aschuma/air_tweets\n".format(
message = "{} #{}\n⚠ PM10: {}g/m³, PM2.5: {}µg/m³, {}°C, RH:{}%\nDetails: {}\nThis is a bot, code available on github aschuma/air_tweets\n".format(
conf_twitter_msg_preamble,
conf_twitter_tag_bot,
pm_10_0,
pm_2_50,
temperature,
humidity,
conf_luftdaten_map_url,
conf_twitter_tag_bot
conf_luftdaten_map_url
)

print(message)
Expand Down

0 comments on commit d57e93a

Please sign in to comment.