Skip to content

Commit

Permalink
feat: Nevermore Controller support
Browse files Browse the repository at this point in the history
Signed-off-by: Pedro Lamas <pedrolamas@gmail.com>
  • Loading branch information
pedrolamas committed Nov 13, 2024
1 parent db4e43b commit bce96f0
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 2 deletions.
37 changes: 37 additions & 0 deletions src/components/widgets/thermals/TemperatureTargets.vue
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,38 @@
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
<tr
v-for="item in nevermore"
:key="item.key"
>
<td>
<v-icon
small
:color="item.color"
>
$fan
</v-icon>
</td>
<td class="temp-name">
<span class="legend-item">
{{ item.prettyName }}
</span>
</td>
<td
class="temp-actual"
:colspan="showRateOfChange ? 3 : 2"
>
<span>
{{ item.intake_gas?.toFixed() ?? '-' }} > {{ item.exhaust_gas?.toFixed() ?? '-' }}
<small><br>{{ item.intake_temperature?.toFixed(1) ?? '-' }} > {{ item.exhaust_temperature?.toFixed(1) ?? '-' }} °C</small>
<small v-if="showRelativeHumidity"><br>{{ item.intake_humidity?.toFixed(1) ?? '-' }} > {{ item.exhaust_humidity?.toFixed(1) ?? '-' }} %</small>
<small v-if="showBarometricPressure"><br>{{ item.intake_pressure?.toFixed(1) ?? '-' }} > {{ item.exhaust_pressure?.toFixed(1) ?? '-' }} hPa</small>
<small v-if="item.rpm != null"><br>{{ item.rpm }} RPM</small>
</span>
</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
</tbody>
</v-simple-table>
</div>
Expand Down Expand Up @@ -268,6 +300,10 @@ export default class TemperatureTargets extends Mixins(StateMixin) {
return this.$store.getters['printer/getOutputs'](['temperature_fan'])
}

get nevermore () {
return this.$store.getters['printer/getOutputs'](['nevermore'])
}

get sensors () {
return this.$store.getters['printer/getSensors']
}
Expand Down Expand Up @@ -379,6 +415,7 @@ export default class TemperatureTargets extends Mixins(StateMixin) {
font-weight: 300;
font-size: 1.125rem;
white-space: nowrap;
text-align: right;
}
> thead > tr > th {
Expand Down
4 changes: 2 additions & 2 deletions src/store/printer/getters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -638,7 +638,8 @@ export const getters: GetterTree<PrinterState, RootState> = {
'neopixel',
'dotstar',
'pca9533',
'pca9632'
'pca9632',
'nevermore'
]

const supportedTypes = (filter && filter.length)
Expand Down Expand Up @@ -760,7 +761,6 @@ export const getters: GetterTree<PrinterState, RootState> = {
'aht10',
'bme280',
'htu21d',
'nevermoresensor',
'sht3x'
]

Expand Down

0 comments on commit bce96f0

Please sign in to comment.