Commit da09729a authored by markus's avatar markus

Optionally disable twitter

parent e3cc8d8c
......@@ -18,6 +18,9 @@ class TwitterClient:
logger.info(f"Logged in to twitter as '{self.api.me().name}")
def handle_observation(self, observation, observation_data, waterfall_image, data_images, tweet_waterfall = False):
global enabled
if not enabled:
return
with tempfile.TemporaryFile() as tmp:
tmp.write(data_images[0])
text = f"New satellite image from {observation_data['satellite_name']} at {observation_data['data_timeframe_start']} UTC. {observation_data['url']} #cccamp19"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment