Skip to content

Commit

Permalink
fix: use correct sensor in Thingy:91 X
Browse files Browse the repository at this point in the history
Fixes #995
  • Loading branch information
coderbyheart committed Jan 20, 2025
1 parent 7c57024 commit 9847e55
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
12 changes: 6 additions & 6 deletions src/components/BME680.tsx → src/components/BME688.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,27 +16,27 @@ import {
ThermometerIcon,
} from 'lucide-preact'

export const BME680 = () => (
export const BME688 = () => (
<section data-testid="environment-info">
<h2>Environment</h2>
<EnvironmentReadings />
<p>
<small class="text-muted">
These values are reported by the devices'{' '}
<a
href="https://www.bosch-sensortec.com/products/environmental-sensors/gas-sensors/bme680/"
href="https://www.bosch-sensortec.com/products/environmental-sensors/gas-sensors/bme688/"
target="_blank"
>
Bosch BME680 environment sensor
Bosch BME688 environment sensor
</a>
.<br />
The air quality rating is based on a proprietary algorithm. See
page&nbsp;8 in{' '}
<a
href="https://www.bosch-sensortec.com/media/boschsensortec/downloads/datasheets/bst-bme680-ds001.pdf"
href="https://www.bosch-sensortec.com/media/boschsensortec/downloads/datasheets/bst-bme688-ds000.pdf"
target="_blank"
>
the BME680 datasheet
the BME688 datasheet
</a>
.
</small>
Expand Down Expand Up @@ -82,7 +82,7 @@ export const EnvironmentReadings = () => {
)
}

// See https://www.bosch-sensortec.com/media/boschsensortec/downloads/datasheets/bst-bme680-ds001.pdf
// See https://www.bosch-sensortec.com/media/boschsensortec/downloads/datasheets/bst-bme688-ds001.pdf
export const IAQ = ({ iaq }: { iaq: number }) => {
let iaqLabel = 'unknown'
let Icon = BanIcon
Expand Down
2 changes: 1 addition & 1 deletion src/components/deviceheader/EnvironmentInfo.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Ago } from '#components/Ago.js'
import { IAQ } from '#components/BME680.js'
import { IAQ } from '#components/BME688.js'
import { LoadingIndicator } from '#components/ValueLoading.js'
import { useDevice } from '#context/Device.js'
import { isEnvironment, toEnvironment } from '#proto/lwm2m.js'
Expand Down
4 changes: 2 additions & 2 deletions src/model/PCA20065/Page.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { BME680 } from '#components/BME680.js'
import { BME688 } from '#components/BME688.js'
import { Collapsible } from '#components/Collapsible.js'
import { Configuration } from '#components/Configuration.js'
import { DeviceHeader } from '#components/DeviceHeader.js'
Expand Down Expand Up @@ -77,7 +77,7 @@ export const Page = ({ device }: { device: TDevice }) => {
<DeviceFOTAInfo />
</div>
<div class="my-4">
<BME680 />
<BME688 />
</div>
</section>
<section class="col-12 col-md-6 col-lg-6 offset-lg-2">
Expand Down

0 comments on commit 9847e55

Please sign in to comment.