sbonaime / seedlink_plotter

Seedlink_plotter A python script to plot real time seismic data from a seedlink server
GNU Lesser General Public License v3.0
36 stars 18 forks source link

seedlink_plotter embedded in a web page #27

Closed kiriaki closed 7 years ago

kiriaki commented 7 years ago

Hello. Have you tried to run your code with apache and mod_wsgi for displaying real-time plots in the web?

Thank you in advance.

megies commented 7 years ago

I've never tried anything like this with this TKagg based solution and to be fair to other solutions out there, you might want to also have a look at crotwell/seisplotjs-seedlink:

http://www.seis.sc.edu/~crotwell/seisplotjs_demo/realtime/multipleChans.html

CC @crotwell

kiriaki commented 7 years ago

Thank you!! I'll have a look.

crotwell commented 7 years ago

Be aware that this doesn't work with all seedlink servers. The ringserver from IRIS has added the ability to accept an http connection and then upgrade it to a websocket. Once this happens, then normal seedlink commands and packets are sent back and forth. But the browser is prevented from making a generic socket connection, so the server needs that extra ability. I will update the docs to say this. Would be really nice one day for all seedlink servers to support this as well.

That said, running a IRIS ringserver in between an existing server and the web might be an option for realtime displays.

Philip

On Tue, Mar 28, 2017 at 8:00 AM, Kiriaki Konstantinidou < notifications@github.com> wrote:

Thank you!! I'll have a look.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/bonaime/seedlink_plotter/issues/27#issuecomment-289747532, or mute the thread https://github.com/notifications/unsubscribe-auth/AAHxh0Pih_QXwVUvWSPQvEtaskKWfcSnks5rqPZugaJpZM4MrgD2 .

kiriaki commented 7 years ago

Dear Philip, thank you very much for the reply and the valuable information. I've installed IRIS ring server and the plotting works like a charm :) I've one question but I'll rather open an issue in seisplotjs-seedlink git page.

Thank you both again!