switch timer and interval to new namespace

This commit is contained in:
Joel Wetzell
2025-12-26 11:22:45 -06:00
parent 1c6ab9f47e
commit 324176f0ac
3 changed files with 8 additions and 8 deletions
+2 -2
View File
@@ -31,9 +31,9 @@ export default defineConfig({
label: 'Modules',
items: [
{
label: "Generator",
label: "Time",
collapsed: true,
autogenerate: { directory: 'modules/generator' }
autogenerate: { directory: 'modules/time' }
},
{
label: "Network",
@@ -3,9 +3,9 @@ title: Interval
sidebar:
order: 2
---
The `gen.interval` module emits a message at a specified duration. Sending any message to this module will reset the interval timer.
The `time.interval` module emits a message at a specified duration. Sending any message to this module will reset the interval timer.
- **type**: `gen.interval`
- **type**: `time.interval`
- **params**:
- **duration**: time in milliseconds between messsages
@@ -13,7 +13,7 @@ The `gen.interval` module emits a message at a specified duration. Sending any m
Emits a message every 3 seconds
```
- id: every3Secs
type: gen.interval
type: time.interval
params:
duration: 3000
```
@@ -3,9 +3,9 @@ title: Timer
sidebar:
order: 1
---
The `gen.timer` module emits only one message after a specified duration. Sending any message to this module will reset the timer.
The `time.timer` module emits only one message after a specified duration. Sending any message to this module will reset the timer.
- **type**: `gen.timer`
- **type**: `time.timer`
- **params**:
- **duration**: time in milliseconds to wait before emitting message
@@ -13,7 +13,7 @@ The `gen.timer` module emits only one message after a specified duration. Sendin
Emits a message 5 seconds after the module is initialized
```
- id: 5secs
type: gen.timer
type: time.timer
params:
duration: 5000
```