added mosqit conf

This commit is contained in:
0xEmm 2024-12-18 21:03:47 +01:00
parent 34e8fc9388
commit d45d7c4a8a
3 changed files with 911 additions and 5 deletions

View file

@ -94,7 +94,8 @@ const roomStatus = reactive({
const roomState = ref(0)
// OFF -> 0; ON -> 1; IN BETWEEN -> 2
watch (roomStatus, (_oldState, _newState) => {
watch (roomStatus, (_, _newState) => {
if (!_newState) { return }
let allOn = _newState.proj_power && _newState.platno_state == 'DOWN' && _newState.lift_state == 'DOWN'
let allOff = !_newState.proj_power && _newState.platno_state == 'UP' && _newState.lift_state == 'UP'
if (allOn) {
@ -104,7 +105,7 @@ watch (roomStatus, (_oldState, _newState) => {
} else {
roomState.value = 2
}
})
}, {immediate: true})
</script>

View file

@ -13,9 +13,6 @@ const props = defineProps({
const _glavni_position = ref('glavni')
const _stranski_position = ref('stranski')
let disableControl = false
let _glavni = ref('glavni')
let _stranski = ref('stranski')