mirror of
https://github.com/jketterl/openwebrx.git
synced 2026-04-20 22:05:13 +00:00
we got fft
This commit is contained in:
parent
89690d214d
commit
1f909080db
8 changed files with 254 additions and 47 deletions
24
server.py
24
server.py
|
|
@ -1,13 +1,23 @@
|
|||
from http.server import HTTPServer
|
||||
from owrx.http import RequestHandler
|
||||
from owrx.config import PropertyManager
|
||||
from owrx.source import RtlNmuxSource, SpectrumThread
|
||||
from socketserver import ThreadingMixIn
|
||||
|
||||
cfg=__import__("config_webrx")
|
||||
pm = PropertyManager.getSharedInstance()
|
||||
for name, value in cfg.__dict__.items():
|
||||
if (name.startswith("__")): continue
|
||||
pm.getProperty(name).setValue(value)
|
||||
class ThreadedHttpServer(ThreadingMixIn, HTTPServer):
|
||||
pass
|
||||
|
||||
server = HTTPServer(('0.0.0.0', 3000), RequestHandler)
|
||||
server.serve_forever()
|
||||
def main():
|
||||
cfg=__import__("config_webrx")
|
||||
pm = PropertyManager.getSharedInstance()
|
||||
for name, value in cfg.__dict__.items():
|
||||
if (name.startswith("__")): continue
|
||||
pm.getProperty(name).setValue(value)
|
||||
|
||||
RtlNmuxSource()
|
||||
|
||||
server = ThreadedHttpServer(('0.0.0.0', 3000), RequestHandler)
|
||||
server.serve_forever()
|
||||
|
||||
if __name__=="__main__":
|
||||
main()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue