new version location + version increment

This commit is contained in:
Jakob Ketterl 2019-05-11 14:18:43 +02:00
parent de84dc71e8
commit b34c1138b9
2 changed files with 3 additions and 2 deletions

View File

@ -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
View File

@ -0,0 +1 @@
openwebrx_version = "v0.18"