mirror of
https://github.com/craigerl/aprsd.git
synced 2025-06-14 12:22:25 -04:00
this patch refactors the client, drivers and client factory to use the same Protocol mechanism used by the stats collector to construct the proper client to be used according to the configuration
21 lines
892 B
Python
21 lines
892 B
Python
from aprsd import plugin
|
|
from aprsd.client import stats as client_stats
|
|
from aprsd.packets import packet_list, seen_list, tracker, watch_list
|
|
from aprsd.plugins import email
|
|
from aprsd.stats import app, collector
|
|
from aprsd.threads import aprsd
|
|
|
|
|
|
# Create the collector and register all the objects
|
|
# that APRSD has that implement the stats protocol
|
|
stats_collector = collector.Collector()
|
|
stats_collector.register_producer(app.APRSDStats)
|
|
stats_collector.register_producer(packet_list.PacketList)
|
|
stats_collector.register_producer(watch_list.WatchList)
|
|
stats_collector.register_producer(tracker.PacketTrack)
|
|
stats_collector.register_producer(plugin.PluginManager)
|
|
stats_collector.register_producer(aprsd.APRSDThreadList)
|
|
stats_collector.register_producer(email.EmailStats)
|
|
stats_collector.register_producer(client_stats.APRSClientStats)
|
|
stats_collector.register_producer(seen_list.SeenList)
|