Hello everyone!
This might be more of a Python than a Pd question, but I thought perhaps some one would have a suggestion:
I am trying to stream data from a web server into Pd using netreceive and Python.
I have written some python code to get data from the server and I can see this working because it prints the data out in Python. However, I want to send this to Pd and I am not sure how to do this.
I have been experimenting with sockets to do this and
have followed examples found in previous threads
and now have no problem sending static values and even text between Python and Pd. Pd acknowledges the connection and receives and prints the results.
However, I cannot seem to figure out how to replace a static variable, or "hello watermellons" or whatever with a dynamic value to send to Pd.
Any ideas? I can't use a normal GET message (like in purest_json library or [httpget] because I cannot find the full http address for the server (I have the server address and port and then use a series of names to connect to the data I want, so it isnt a usual http addy unfortunately....
thanks in advance for any ideas...
Jorge