Example #1
0
 def __init__(self):
     Output.__init__(self)
     self.icecast_sink = gst.element_factory_make(
             "shout2send", "icecastsink"
     )
     self.add(self.icecast_sink)
     self.sink_pad.set_target(self.icecast_sink.sink_pads().next())
Example #2
0
 def __init__(self):
     Output.__init__(self)
     self.fgdp_sink = gst.element_factory_make("fgdpsink", "fgdpsink")
     self.queue_fgdp = gst.element_factory_make("queue", None)
     self.fgdp_sink.set_property('port', 15000)
     self.add(self.fgdp_sink)
     self.add(self.queue_fgdp)
     self.queue_fgdp.link(self.fgdp_sink)
     self.sink_pad.set_target(self.queue_fgdp.sink_pads().next())
Example #3
0
 def __init__(self):
     Output.__init__(self)        
     self.fgdp_sink = gst.element_factory_make(
             "fgdpsink", "fgdpsink"
     )
     self.queue_fgdp = gst.element_factory_make(
             "queue", None
     )
     self.fgdp_sink.set_property('port', 15000)
     self.add(self.fgdp_sink)
     self.add(self.queue_fgdp)
     self.queue_fgdp.link(self.fgdp_sink)
     self.sink_pad.set_target(self.queue_fgdp.sink_pads().next())
Example #4
0
 def __init__(self):
     Output.__init__(self)
     self.fake_sink = gst.element_factory_make("fakesink", "fakesink")
     self.add(self.fake_sink)
     self.sink_pad.set_target(self.fake_sink.sink_pads().next())
Example #5
0
 def __init__(self):
     Output.__init__(self)
     self.file_sink = gst.element_factory_make("filesink", "filesink")
     self.add(self.file_sink)
     self.sink_pad.set_target(self.file_sink.sink_pads().next())
Example #6
0
 def __init__(self):
     Output.__init__(self)
     self.icecast_sink = gst.element_factory_make("shout2send",
                                                  "icecastsink")
     self.add(self.icecast_sink)
     self.sink_pad.set_target(self.icecast_sink.sink_pads().next())
Example #7
0
import geopandas as gpd
from datetime import datetime as dt

# configure server
app = Wrapper(__name__, meta_tags=const.meta_tags)
app.config["suppress_callback_exceptions"] = True
app.title = const.title
server = app.server

# credentials
mapbox_access_token = const.credentials['mapbox']

app.layout = Div([Location(id='url', refresh=False), Div(id='page-content')])


@app.callback(Output('page-content', 'children'), [Input('url', 'pathname')])
def display_page(pathname):
    if pathname == '/abi':
        return build_abi_page()
    elif pathname == '/aquisition':
        return build_download_page()
    else:
        return build_glm_page(app)


@app.callback(
    [
        Output("states-mapview", "figure"),
        Output("histogram", "figure"),
        Output("lightnings", "figure"),
        Output("lightning-by-state", "figure"),