Beispiel #1
0
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
#  =================================================
#  test.py
#   - Author jouke hijlkema <*****@*****.**>
#   - Initial Version 1.0
#  =================================================

from zmqClient import zmqClient

myClient = zmqClient("GpsBase","GpsBase","tcp://192.168.1.32:4245","tcp://192.168.1.32:4244")

for i in range(10):
    myClient.send("Alive")
Beispiel #2
0
 def __init__(self):
     GpsBase.com = zmqClient("GpsBase","GpsBase",PILOT_IN,PILOT_OUT)
Beispiel #3
0
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
#  =================================================
#   - Author jouke hijlkema <*****@*****.**>
#   - ven. déc. 14:53 2017
#   - Initial Version 1.0
#  =================================================
import sys
sys.path.append("/home/pi/spyCam/Classes")

from zmqClient import zmqClient
from cameraPipe import cameraPipe

com = zmqClient("meteoCam","tcp://192.168.1.102:5003","tcp://192.168.1.102:5002")
com.start()

cam = cameraPipe("192.168.1.102",5001)

cam.Play()

while (1):
    if com.receiveNb():
        if com.got("ServerUp",True):
            cam.Play()
        if com.got("highRes",True):
            cam.Conf("highRes")
        if com.got("lowRes",True):
            cam.Conf("lowRes")