I'm enjoying myself far too much with this when I should be working on my Master's research...

If you run into any problems, let me know. There's no obspy involved, so I think installing is relatively straightforward, but there could be snags I haven't thought to put in the README.Ian
--
Some useful links:
Manual: http://manual.raspberryshake.org/
Do It YourSelf Page: http://raspberryshake.org/do-it-yourself
Shop: https://shop.raspberryshake.org/
Website: http://raspberryshake.org/
Instagram: https://www.instagram.com/raspishake/
Facebook: https://www.facebook.com/raspishake/
Twitter: https://twitter.com/raspishake/
Hashtag: #rasperryshake, @raspishake
DOI: https://doi.org/10.7914/SN/AM
---
You received this message because you are subscribed to the Google Groups "RaspberryShake" group.
To unsubscribe from this group and stop receiving emails from it, send an email to raspberryshak...@googlegroups.com.
To post to this group, send email to raspber...@googlegroups.com.
Visit this group at https://groups.google.com/group/raspberryshake.
To view this discussion on the web visit https://groups.google.com/d/msgid/raspberryshake/7a4e4ee3-0844-4442-9570-56df855a3855%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
OSError Traceback (most recent call last) <ipython-input-28-31e41a729ebd> in <module>() 16 per_lap = 0.9 17 mult = 8.0 ---> 18 sock = s.socket(s.AF_INET, s.SOCK_DGRAM | s.SO_REUSEADDR) 19 sock.bind((host, port)) 20 T:\Anaconda\lib\socket.py in __init__(self, family, type, proto, fileno) 142 # constructor of _socket.socket converts the given argument to an 143 # integer automatically. --> 144 _socket.socket.__init__(self, family, type, proto, fileno) 145 self._io_refs = 0 146 self._closed = False OSError: [WinError 10044] The support for the specified socket type does not exist in this address family
Any Ideas
Kind Regards
Graham
host = '127.0.0.1'host = 'localhost'import socket
UDP_IP = "127.0.0.1"
UDP_PORT = 5005
sock = socket.socket(socket.AF_INET, # Internet
socket.SOCK_DGRAM) # UDP
sock.bind((UDP_IP, UDP_PORT))
while True:
data, addr = sock.recvfrom(1024) # buffer size is 1024 bytes
print "received message:", data
and the code to send a UDP message:
import socket
UDP_IP = "127.0.0.1"
UDP_PORT = 5005
MESSAGE = "Hello, World!"
print "UDP target IP:", UDP_IP
print "UDP target port:", UDP_PORT
print "message:", MESSAGE
sock = socket.socket(socket.AF_INET, # Internet
socket.SOCK_DGRAM) # UDP
sock.sendto(MESSAGE, (UDP_IP, UDP_PORT))