diff --git a/.gitignore b/.gitignore index 4066715..1087c78 100644 --- a/.gitignore +++ b/.gitignore @@ -109,5 +109,8 @@ dist /.pnp .pnp.js +# IDE +.idea + # misc -.DS_Store \ No newline at end of file +.DS_Store diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..0940402 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,17 @@ +FROM node:16 + +# Create app directory +WORKDIR /usr/src/app + +# Install app dependencies +# A wildcard is used to ensure both package.json AND package-lock.json are copied +# where available (npm@5+) +COPY package*.json ./ + +RUN npm install + +# Bundle app source +COPY . . + +EXPOSE 3000 +CMD [ "npm", "start" ] diff --git a/src/App.js b/src/App.js index 0c290a0..6cc0505 100644 --- a/src/App.js +++ b/src/App.js @@ -104,7 +104,8 @@ function App() { "RSRQCurrent": primary.rsrq, "DownlinkEarfcn": null, // Only available in authenticated telemetry endpoint "SignalStrengthLevel":0, - "Band": primary.bands.length ? primary.bands[0].toUpperCase() : null + "Band": primary.bands.length ? primary.bands[0].toUpperCase() : null, + "Firmware": json.device["softwareVersion"] }; const nr = { @@ -115,7 +116,8 @@ function App() { "RSRQCurrent": secondary.rsrq, "Downlink_NR_ARFCN": null, // Only available in authenticated telemetry endpoint "SignalStrengthLevel":0, - "Band": primary.bands.length ? primary.bands[0] : null + "Band": secondary.bands.length ? secondary.bands[0].toUpperCase() : null, + "Firmware": json.device["softwareVersion"] }; if (primary['RSRPStrengthIndexCurrent'] === 0) { @@ -285,7 +287,7 @@ function App() {

Model Selection

{model ? - <>Selected: {model} + <>Selected: {model} {data.length ? '(v' + data.slice(-1)[0].nr.Firmware + ')' : null} :