kopia lustrzana https://github.com/glidernet/ogn-python
20 wiersze
417 B
Python
20 wiersze
417 B
Python
![]() |
from ogn.gateway import ognGateway
|
||
|
|
||
|
DB_URI = 'sqlite:///beacons.db'
|
||
|
|
||
|
from manager import Manager
|
||
|
manager = Manager()
|
||
|
|
||
|
@manager.command
|
||
|
def run(aprs_user="anon-dev"):
|
||
|
"""Run the aprs client."""
|
||
|
gateway = ognGateway()
|
||
|
print("Start OGN gateway")
|
||
|
gateway.connect_db()
|
||
|
gateway.connect(aprs_user)
|
||
|
try:
|
||
|
gateway.run()
|
||
|
except KeyboardInterrupt:
|
||
|
pass
|
||
|
print("\nOGN gateway Exit")
|