From b6d07ac3e861335dc66786f1e1c0d2e3183cc325 Mon Sep 17 00:00:00 2001 From: Scott Bowling Date: Mon, 18 Apr 2022 18:56:25 -0500 Subject: [PATCH 1/2] Fixing Arcadyan 5G band logic and added firmware. Added Dockerfile --- Dockerfile | 17 +++++++++++++++++ src/App.js | 8 +++++--- 2 files changed, 22 insertions(+), 3 deletions(-) create mode 100644 Dockerfile 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} :