Skip to content

Commit

Permalink
Start data logging on each boot
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaellehmkuhl committed Nov 22, 2023
1 parent 2415730 commit dd8ac1f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ import Dialog from './components/Dialog.vue'
import EditMenu from './components/EditMenu.vue'
import MiniWidgetContainer from './components/MiniWidgetContainer.vue'
import Alerter from './components/widgets/Alerter.vue'
import { datalogger } from './libs/logging'
import { useWidgetManagerStore } from './stores/widgetManager'
const widgetStore = useWidgetManagerStore()
Expand Down Expand Up @@ -196,6 +197,9 @@ watch([() => widgetStore.currentView, () => widgetStore.currentView.showBottomBa
const debouncedToggleBottomBar = useDebounceFn(() => (showBottomBarNow.value = !showBottomBarNow.value), 25)
const bottomBarToggleCallbackId = registerActionCallback(CockpitAction.TOGGLE_BOTTOM_BAR, debouncedToggleBottomBar)
onBeforeUnmount(() => unregisterActionCallback(bottomBarToggleCallbackId))
// Start datalogging
datalogger.startLogging()
</script>

<style>
Expand Down

0 comments on commit dd8ac1f

Please sign in to comment.