Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Software Defined Radio
r0tor-proc3ssing
Commits
da09729a
Commit
da09729a
authored
Aug 22, 2019
by
markus
Browse files
Optionally disable twitter
parent
e3cc8d8c
Changes
1
Hide whitespace changes
Inline
Side-by-side
twitter.py
View file @
da09729a
...
...
@@ -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"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment