Write a simple Python script utilizing pyicloud [login to view URL] that redirects the location data json of all devices every so and so seconds over an UDP socket with desired output as exampled in attachment.
The python script should be something like:
from pyicloud import PyiCloudService
api1 = PyiCloudService('JAppleseedAppleIdEmailHere', 'password') # You are not allowed to include contact details at freelancer.com. If you would like to include contact details, please post a full time project.
api2 = PyiCloudService('SomeOtherAppleIdEmailHere', 'psadfsdfassword')
#PeerIp = '[login to view URL]'
PeerIp = '[login to view URL]'
PeerPort = 2028
import time, threading, socket, json
ContinueDevicesPostionUpdate = True
def DevicesPostionUpdate():
if ContinueDevicesPostionUpdate:
print([login to view URL]())
[login to view URL](10, DevicesPostionUpdate).start()
# Code for generating json from [login to view URL] and [login to view URL][].location()
[login to view URL](MESSAGE, (PeerIp, PeerPort))
sock = [login to view URL](socket.AF_INET, # Internet
socket.SOCK_DGRAM) # UDP
DevicesPostionUpdate()