mirror of https://github.com/craigerl/aprsd.git
Compare commits
2 Commits
2e9cf3ce88
...
b3889896b9
Author | SHA1 | Date |
---|---|---|
Hemna | b3889896b9 | |
Hemna | 8f6f8007f4 |
|
@ -257,7 +257,6 @@ class APRSISClient(Client):
|
||||||
backoff += 1
|
backoff += 1
|
||||||
continue
|
continue
|
||||||
self._client = aprs_client
|
self._client = aprs_client
|
||||||
LOG.warning(f"APRS_CLIENT {aprs_client}")
|
|
||||||
return aprs_client
|
return aprs_client
|
||||||
|
|
||||||
def consumer(self, callback, blocking=False, immortal=False, raw=False):
|
def consumer(self, callback, blocking=False, immortal=False, raw=False):
|
||||||
|
|
|
@ -414,7 +414,6 @@ def location(callsign):
|
||||||
@flask_app.route("/")
|
@flask_app.route("/")
|
||||||
def index():
|
def index():
|
||||||
stats = _stats()
|
stats = _stats()
|
||||||
LOG.error(stats)
|
|
||||||
|
|
||||||
# For development
|
# For development
|
||||||
html_template = "index.html"
|
html_template = "index.html"
|
||||||
|
|
|
@ -246,6 +246,11 @@ class MessagePacket(Packet):
|
||||||
_type: str = field(default="MessagePacket", hash=False)
|
_type: str = field(default="MessagePacket", hash=False)
|
||||||
message_text: Optional[str] = field(default=None)
|
message_text: Optional[str] = field(default=None)
|
||||||
|
|
||||||
|
@property
|
||||||
|
def human_info(self) -> str:
|
||||||
|
self.prepare()
|
||||||
|
return self._filter_for_send(self.message_text).rstrip("\n")
|
||||||
|
|
||||||
def _build_payload(self):
|
def _build_payload(self):
|
||||||
self.payload = ":{}:{}{{{}".format(
|
self.payload = ":{}:{}{{{}".format(
|
||||||
self.to_call.ljust(9),
|
self.to_call.ljust(9),
|
||||||
|
|
Loading…
Reference in New Issue