new version location + version increment
This commit is contained in:
parent
de84dc71e8
commit
b34c1138b9
@ -2,6 +2,7 @@ import mimetypes
|
|||||||
from owrx.websocket import WebSocketConnection
|
from owrx.websocket import WebSocketConnection
|
||||||
from owrx.config import PropertyManager
|
from owrx.config import PropertyManager
|
||||||
from owrx.source import DspManager, CpuUsageThread, SdrService, ClientReporterThread
|
from owrx.source import DspManager, CpuUsageThread, SdrService, ClientReporterThread
|
||||||
|
from owrx.version import openwebrx_version
|
||||||
import json
|
import json
|
||||||
import os
|
import os
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
@ -45,8 +46,7 @@ class StatusController(Controller):
|
|||||||
"gps": pm["receiver_gps"],
|
"gps": pm["receiver_gps"],
|
||||||
"asl": pm["receiver_asl"],
|
"asl": pm["receiver_asl"],
|
||||||
"loc": pm["receiver_location"],
|
"loc": pm["receiver_location"],
|
||||||
# TODO get some version in there
|
"sw_version": openwebrx_version,
|
||||||
"sw_version": "TODO",
|
|
||||||
"avatar_ctime": os.path.getctime("htdocs/gfx/openwebrx-avatar.png")
|
"avatar_ctime": os.path.getctime("htdocs/gfx/openwebrx-avatar.png")
|
||||||
}
|
}
|
||||||
self.send_response("\n".join(["{key}={value}".format(key = key, value = value) for key, value in vars.items()]))
|
self.send_response("\n".join(["{key}={value}".format(key = key, value = value) for key, value in vars.items()]))
|
||||||
|
1
owrx/version.py
Normal file
1
owrx/version.py
Normal file
@ -0,0 +1 @@
|
|||||||
|
openwebrx_version = "v0.18"
|
Loading…
Reference in New Issue
Block a user