@@ -9,3 +9,4 PGDATA=/var/lib/postgresql/data | |||||
9 | LC_ALL=C.UTF-8 |
|
9 | LC_ALL=C.UTF-8 | |
10 | TZ=America/Lima |
|
10 | TZ=America/Lima | |
11 | DOCKER_DATA=/Volumes/dockers/radarsys/ |
|
11 | DOCKER_DATA=/Volumes/dockers/radarsys/ | |
|
12 | LOCAL_IP=192.168.1.128 |
@@ -9,7 +9,7 import socket | |||||
9 | import json |
|
9 | import json | |
10 | import requests |
|
10 | import requests | |
11 | import struct |
|
11 | import struct | |
12 | import sys, time |
|
12 | import os, sys, time | |
13 |
|
13 | |||
14 | import multiprocessing |
|
14 | import multiprocessing | |
15 |
|
15 | |||
@@ -408,7 +408,7 class ABSConfiguration(Configuration): | |||||
408 | return False |
|
408 | return False | |
409 | else: |
|
409 | else: | |
410 | self.message = "ABS Beams List have been sent to ABS Modules" |
|
410 | self.message = "ABS Beams List have been sent to ABS Modules" | |
411 | beams[0].set_as_activebeam() |
|
411 | self.active_beam = beams[0].pk | |
412 |
|
412 | |||
413 | self.device.status = 3 |
|
413 | self.device.status = 3 | |
414 | self.module_status = ''.join(status) |
|
414 | self.module_status = ''.join(status) | |
@@ -490,7 +490,7 class ABSConfiguration(Configuration): | |||||
490 | # Create the datagram socket |
|
490 | # Create the datagram socket | |
491 | sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) |
|
491 | sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) | |
492 | sock.settimeout(0.01) |
|
492 | sock.settimeout(0.01) | |
493 | local_ip = "0.0.0.0" |
|
493 | local_ip = os.environ.get('LOCAL_IP', '127.0.0.1') | |
494 | sock.setsockopt(socket.IPPROTO_IP, socket.IP_MULTICAST_IF, socket.inet_aton(local_ip)) |
|
494 | sock.setsockopt(socket.IPPROTO_IP, socket.IP_MULTICAST_IF, socket.inet_aton(local_ip)) | |
495 | sent = sock.sendto(message, multicast_group) |
|
495 | sent = sock.sendto(message, multicast_group) | |
496 | print('Sending ' + message) |
|
496 | print('Sending ' + message) |
General Comments 0
You need to be logged in to leave comments.
Login now