Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -109,5 +109,8 @@ dist
/.pnp
.pnp.js

# IDE
.idea

# misc
.DS_Store
.DS_Store
17 changes: 17 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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" ]
8 changes: 5 additions & 3 deletions src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand All @@ -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) {
Expand Down Expand Up @@ -285,7 +287,7 @@ function App() {
<section>
<h2>Model Selection</h2>
{model ?
<>Selected: {model} <button onClick={(e) => {setModel('')}}>Change Selection</button></>
<>Selected: {model} {data.length ? '(v' + data.slice(-1)[0].nr.Firmware + ')' : null}<button onClick={(e) => {setModel('')}}>Change Selection</button></>
:
<select name="model" value={model} onChange={(e) => {setModel(e.target.value)}}>
<option value="">Select a Model</option>
Expand Down