Hello,
Anyone make a Websocket client for Pd? I see there is a server attempt out there (could not find external code, just references) but a client is what I need....
Been trying to build one with python/pyext but running into a wall and thought I would just ask in case I could save myself some time.
Thanks! m
hello,
I'm doing web socket with pd and a patch taken in here, it's a server using mrpeach/tcp objects, I've attached it again...
my client is written in html5 there are pletores of online tutorials for doing the socket client working with this http server...
Is it possible to run a python http server through pyext without admin rights?
patco
Le 23/06/2016 à 22:54, me.grimm a écrit :
Hello,
Anyone make a Websocket client for Pd? I see there is a server attempt out there (could not find external code, just references) but a client is what I need....
Been trying to build one with python/pyext but running into a wall and thought I would just ask in case I could save myself some time.
Thanks! m
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
Le 24/06/2016 à 00:10, IOhannes m zmölnig a écrit :
On 06/24/2016 12:01 AM, patrice colet wrote:
Is it possible to run a python http server through pyext without admin rights?
sure. unless you want to run it on a standard port (like 80, or 443; or really anything below 1024)
Oh yes, so if I want to run the http server without admin rights on port 80, the patch has to run through a system service
dmsa IOhannes
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
Both iptables and pf let you do some sort of port remapping which gives you the advantage of appearing to be on a standard port from outside, but the advantage of running as an unprivileged user.
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport $srcPortNumber -j REDIRECT --to-port $dstPortNumber
On Fri, Jun 24, 2016 at 12:20:31AM +0200, patrice colet wrote:
Le 24/06/2016 à 00:10, IOhannes m zmölnig a écrit :
On 06/24/2016 12:01 AM, patrice colet wrote:
Is it possible to run a python http server through pyext without admin rights?
sure. unless you want to run it on a standard port (like 80, or 443; or really anything below 1024)
Oh yes, so if I want to run the http server without admin rights on port 80, the patch has to run through a system service
dmsa IOhannes
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
-- Patrice Colet fr: 0632660357
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
that's what I was looking for, thank you Andy
Le 24/06/2016 à 10:50, Andy Farnell a écrit :
Both iptables and pf let you do some sort of port remapping which gives you the advantage of appearing to be on a standard port from outside, but the advantage of running as an unprivileged user.
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport $srcPortNumber -j REDIRECT --to-port $dstPortNumber
On Fri, Jun 24, 2016 at 12:20:31AM +0200, patrice colet wrote:
Le 24/06/2016 à 00:10, IOhannes m zmölnig a écrit :
On 06/24/2016 12:01 AM, patrice colet wrote:
Is it possible to run a python http server through pyext without admin rights?
sure. unless you want to run it on a standard port (like 80, or 443; or really anything below 1024)
Oh yes, so if I want to run the http server without admin rights on port 80, the patch has to run through a system service
dmsa IOhannes
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
-- Patrice Colet fr: 0632660357
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
by the way I wanted to know why writing a socket client in pd because it just take three lines of code for having a functionnal FUDI pdsend in almost all interpreted language...
Le 24/06/2016 à 00:01, patrice colet a écrit :
hello,
I'm doing web socket with pd and a patch taken in here, it's a server using mrpeach/tcp objects, I've attached it again...
my client is written in html5 there are pletores of online tutorials for doing the socket client working with this http server...
Is it possible to run a python http server through pyext without admin rights?
patco
Le 23/06/2016 à 22:54, me.grimm a écrit :
Hello,
Anyone make a Websocket client for Pd? I see there is a server attempt out there (could not find external code, just references) but a client is what I need....
Been trying to build one with python/pyext but running into a wall and thought I would just ask in case I could save myself some time.
Thanks! m
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management ->https://lists.puredata.info/listinfo/pd-list
-- Patrice Colet fr: 0632660357
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
yeah I am basically looking to stream a data feed from a website for example:
wss://ws-feed.foobar.com
with python: https://github.com/Lawouach/WebSocket-for-Python
which I'm having a hard time adapting to pyext. see: http://stackoverflow.com/questions/37995999/print-to-console-outside-of-the-...
but maybe you awesome list peeps have better suggestions?
On Fri, Jun 24, 2016 at 7:03 AM, patrice colet colet.patrice@free.fr wrote:
by the way I wanted to know why writing a socket client in pd because it just take three lines of code for having a functionnal FUDI pdsend in almost all interpreted language...
Le 24/06/2016 à 00:01, patrice colet a écrit :
hello,
I'm doing web socket with pd and a patch taken in here, it's a server using mrpeach/tcp objects, I've attached it again...
my client is written in html5 there are pletores of online tutorials for doing the socket client working with this http server...
Is it possible to run a python http server through pyext without admin rights?
patco
Le 23/06/2016 à 22:54, me.grimm a écrit :
Hello,
Anyone make a Websocket client for Pd? I see there is a server attempt out there (could not find external code, just references) but a client is what I need....
Been trying to build one with python/pyext but running into a wall and thought I would just ask in case I could save myself some time.
Thanks! m
_______________________________________________Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
-- Patrice Colet fr: 0632660357
_______________________________________________Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
-- Patrice Colet fr: 0632660357
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
You could maybe use rhizome and have the server send the websocket stream to Pd via OSC
https://github.com/sebpiq/rhizome
I can help if needed
On Fri, Jun 24, 2016 at 5:22 PM, me.grimm megrimm@gmail.com wrote:
yeah I am basically looking to stream a data feed from a website for example:
wss://ws-feed.foobar.com
with python: https://github.com/Lawouach/WebSocket-for-Python
which I'm having a hard time adapting to pyext. see:
http://stackoverflow.com/questions/37995999/print-to-console-outside-of-the-...
but maybe you awesome list peeps have better suggestions?
On Fri, Jun 24, 2016 at 7:03 AM, patrice colet colet.patrice@free.fr wrote:
by the way I wanted to know why writing a socket client in pd because it just take three lines of code for having a functionnal FUDI pdsend in almost all interpreted language...
Le 24/06/2016 à 00:01, patrice colet a écrit :
hello,
I'm doing web socket with pd and a patch taken in here, it's a server using mrpeach/tcp objects, I've attached it again...
my client is written in html5 there are pletores of online tutorials for doing the socket client working with this http server...
Is it possible to run a python http server through pyext without admin rights?
patco
Le 23/06/2016 à 22:54, me.grimm a écrit :
Hello,
Anyone make a Websocket client for Pd? I see there is a server attempt out there (could not find external code, just references) but a client is what I need....
Been trying to build one with python/pyext but running into a wall and thought I would just ask in case I could save myself some time.
Thanks! m
_______________________________________________Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
-- Patrice Colet fr: 0632660357
_______________________________________________Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
-- Patrice Colet fr: 0632660357
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
-- ____________________ m.e.grimm, m.f.a, ed.m. syracuse u., tc3 megrimm.net ____________________
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
Hi,
Jamoma [1] let you (among others things) control your patch through a web page thanks to websocket. Look into the websocket example.
Cheers
a
[1] http://jamoma.org/ and https://github.com/jamoma/JamomaPureData
-- do it yourself http://antoine.villeret.free.fr
2016-06-24 16:46 GMT+02:00 s p sebpiq@gmail.com:
You could maybe use rhizome and have the server send the websocket stream to Pd via OSC
https://github.com/sebpiq/rhizome
I can help if needed
On Fri, Jun 24, 2016 at 5:22 PM, me.grimm megrimm@gmail.com wrote:
yeah I am basically looking to stream a data feed from a website for example:
wss://ws-feed.foobar.com
with python: https://github.com/Lawouach/WebSocket-for-Python
which I'm having a hard time adapting to pyext. see:
http://stackoverflow.com/questions/37995999/print-to-console-outside-of-the-...
but maybe you awesome list peeps have better suggestions?
On Fri, Jun 24, 2016 at 7:03 AM, patrice colet colet.patrice@free.fr wrote:
by the way I wanted to know why writing a socket client in pd because it just take three lines of code for having a functionnal FUDI pdsend in almost all interpreted language...
Le 24/06/2016 à 00:01, patrice colet a écrit :
hello,
I'm doing web socket with pd and a patch taken in here, it's a server using mrpeach/tcp objects, I've attached it again...
my client is written in html5 there are pletores of online tutorials for doing the socket client working with this http server...
Is it possible to run a python http server through pyext without admin rights?
patco
Le 23/06/2016 à 22:54, me.grimm a écrit :
Hello,
Anyone make a Websocket client for Pd? I see there is a server attempt out there (could not find external code, just references) but a client is what I need....
Been trying to build one with python/pyext but running into a wall and thought I would just ask in case I could save myself some time.
Thanks! m
_______________________________________________Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
-- Patrice Colet fr: 0632660357
_______________________________________________Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
-- Patrice Colet fr: 0632660357
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
-- ____________________ m.e.grimm, m.f.a, ed.m. syracuse u., tc3 megrimm.net ____________________
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
--
*Sébastien Piquemal*
-----* @sebpiq* ----- http://github.com/sebpiq ----- http://funktion.fm
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
maybe flask would be better for a python socket module
https://flask-socketio.readthedocs.io/en/latest/
Le 24/06/2016 à 16:22, me.grimm a écrit :
yeah I am basically looking to stream a data feed from a website for example:
wss://ws-feed.foobar.com http://ws-feed.foobar.com
with python: https://github.com/Lawouach/WebSocket-for-Python
which I'm having a hard time adapting to pyext. see: http://stackoverflow.com/questions/37995999/print-to-console-outside-of-the-...
but maybe you awesome list peeps have better suggestions?
On Fri, Jun 24, 2016 at 7:03 AM, patrice colet <colet.patrice@free.fr mailto:colet.patrice@free.fr> wrote:
by the way I wanted to know why writing a socket client in pd because it just take three lines of code for having a functionnal FUDI pdsend in almost all interpreted language... Le 24/06/2016 à 00:01, patrice colet a écrit :
hello, I'm doing web socket with pd and a patch taken in here, it's a server using mrpeach/tcp objects, I've attached it again... my client is written in html5 there are pletores of online tutorials for doing the socket client working with this http server... Is it possible to run a python http server through pyext without admin rights? patco Le 23/06/2016 à 22:54, me.grimm a écrit :
Hello, Anyone make a Websocket client for Pd? I see there is a server attempt out there (could not find external code, just references) but a client is what I need.... Been trying to build one with python/pyext but running into a wall and thought I would just ask in case I could save myself some time. Thanks! m _______________________________________________ Pd-list@lists.iem.at <mailto:Pd-list@lists.iem.at> mailing list UNSUBSCRIBE and account-management ->https://lists.puredata.info/listinfo/pd-list
-- Patrice Colet fr: 0632660357 _______________________________________________ Pd-list@lists.iem.at <mailto:Pd-list@lists.iem.at> mailing list UNSUBSCRIBE and account-management ->https://lists.puredata.info/listinfo/pd-list
-- Patrice Colet fr: 0632660357 _______________________________________________ Pd-list@lists.iem.at <mailto:Pd-list@lists.iem.at> mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
-- ____________________ m.e.grimm, m.f.a, ed.m. syracuse u., tc3 megrimm.net http://megrimm.net ____________________
i just found this: https://libwebsockets.org/
which might be implementable in external? though i have never written an external against a lib api.... any good examples?
jamoma looks awesome... i had never seen it before. I will have to look into it more. rhizome might not work. it is a web server I assume? I need to get data from a feed via a websocket (not mine).. but maybe I can? I will also look at flask... looks good on surface.
cheers m
On Fri, Jun 24, 2016 at 6:08 PM, patrice colet colet.patrice@free.fr wrote:
maybe flask would be better for a python socket module
https://flask-socketio.readthedocs.io/en/latest/
Le 24/06/2016 à 16:22, me.grimm a écrit :
yeah I am basically looking to stream a data feed from a website for example:
wss://ws-feed.foobar.com
with python: https://github.com/Lawouach/WebSocket-for-Python
which I'm having a hard time adapting to pyext. see:
http://stackoverflow.com/questions/37995999/print-to-console-outside-of-the-...
but maybe you awesome list peeps have better suggestions?
On Fri, Jun 24, 2016 at 7:03 AM, patrice colet colet.patrice@free.fr wrote:
by the way I wanted to know why writing a socket client in pd because it just take three lines of code for having a functionnal FUDI pdsend in almost all interpreted language...
Le 24/06/2016 à 00:01, patrice colet a écrit :
hello,
I'm doing web socket with pd and a patch taken in here, it's a server using mrpeach/tcp objects, I've attached it again...
my client is written in html5 there are pletores of online tutorials for doing the socket client working with this http server...
Is it possible to run a python http server through pyext without admin rights?
patco
Le 23/06/2016 à 22:54, me.grimm a écrit :
Hello,
Anyone make a Websocket client for Pd? I see there is a server attempt out there (could not find external code, just references) but a client is what I need....
Been trying to build one with python/pyext but running into a wall and thought I would just ask in case I could save myself some time.
Thanks! m
_______________________________________________Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
-- Patrice Colet fr: 0632660357
_______________________________________________Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
-- Patrice Colet fr: 0632660357
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list https://lists.puredata.info/listinfo/pd-list
-- ____________________ m.e.grimm, m.f.a, ed.m. syracuse u., tc3 megrimm.net ____________________
-- Patrice Colet fr: 0632660357
i just got a chance to revisit. scrapped ws4py for websocket-client. threw together in pyext. seems to work fine. i have to close connection though which I did not immediately figure out but just sending [reload{ to pyext with close connection.... hmmmm.
https://github.com/megrimm/pd-pyws
also, anyone know why I get "Bad arguments for message 'loadbang' to object 'pyext'" for pyext objects? and how do I stop that?
cheers m
On Sat, Jun 25, 2016 at 11:47 AM, me.grimm megrimm@gmail.com wrote:
i just found this: https://libwebsockets.org/
which might be implementable in external? though i have never written an external against a lib api.... any good examples?
jamoma looks awesome... i had never seen it before. I will have to look into it more. rhizome might not work. it is a web server I assume? I need to get data from a feed via a websocket (not mine).. but maybe I can? I will also look at flask... looks good on surface.
cheers m
On Fri, Jun 24, 2016 at 6:08 PM, patrice colet colet.patrice@free.fr wrote:
maybe flask would be better for a python socket module
https://flask-socketio.readthedocs.io/en/latest/
Le 24/06/2016 à 16:22, me.grimm a écrit :
yeah I am basically looking to stream a data feed from a website for example:
wss://ws-feed.foobar.com
with python: https://github.com/Lawouach/WebSocket-for-Python
which I'm having a hard time adapting to pyext. see:
http://stackoverflow.com/questions/37995999/print-to-console-outside-of-the-...
but maybe you awesome list peeps have better suggestions?
On Fri, Jun 24, 2016 at 7:03 AM, patrice colet colet.patrice@free.fr wrote:
by the way I wanted to know why writing a socket client in pd because it just take three lines of code for having a functionnal FUDI pdsend in almost all interpreted language...
Le 24/06/2016 à 00:01, patrice colet a écrit :
hello,
I'm doing web socket with pd and a patch taken in here, it's a server using mrpeach/tcp objects, I've attached it again...
my client is written in html5 there are pletores of online tutorials for doing the socket client working with this http server...
Is it possible to run a python http server through pyext without admin rights?
patco
Le 23/06/2016 à 22:54, me.grimm a écrit :
Hello,
Anyone make a Websocket client for Pd? I see there is a server attempt out there (could not find external code, just references) but a client is what I need....
Been trying to build one with python/pyext but running into a wall and thought I would just ask in case I could save myself some time.
Thanks! m
_______________________________________________Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
-- Patrice Colet fr: 0632660357
_______________________________________________Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
-- Patrice Colet fr: 0632660357
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list https://lists.puredata.info/listinfo/pd-list
-- ____________________ m.e.grimm, m.f.a, ed.m. syracuse u., tc3 megrimm.net ____________________
-- Patrice Colet fr: 0632660357
-- ____________________ m.e.grimm, m.f.a, ed.m. syracuse u., tc3 megrimm.net ____________________