@orchestree/command-center
v1.0.0
Published
Command Center module — Fleet grid, real-time alerts, IoT sensor data, mission control
Maintainers
Readme
@orchestree/command-center
Fleet management and IoT control for Orchestree. Monitor devices, manage fleets, and run missions with real-time alerts.
Installation
npm install @orchestree/command-centerQuick Start
const { CommandCenterClient } = require('@orchestree/command-center');
const client = new CommandCenterClient({
apiKey: 'your-api-key',
});
// Connect a device
const device = await client.connectDevice({
name: 'Sensor-01',
type: 'temperature',
location: { lat: 37.7749, lng: -122.4194 },
});
// Get fleet status
const fleet = await client.getFleetStatus('fleet-123');
// Get sensor data
const data = await client.getSensorData(device.id, {
start: '2024-04-01',
end: '2024-04-15',
});
// Run a mission
const mission = await client.runMission({
name: 'Area Scan',
devices: [device.id],
});API Reference
CommandCenterClient
getFleetStatus(fleetId)
Get fleet status information.
const status = await client.getFleetStatus('fleet-123');connectDevice(deviceDef)
Connect a new device.
const device = await client.connectDevice({
name: 'Sensor-02',
type: 'humidity',
});getSensorData(deviceId, timeRange)
Retrieve sensor readings.
const readings = await client.getSensorData('device-123', {
start: '2024-04-10',
end: '2024-04-15',
});runMission(missionDef)
Run a mission on devices.
const mission = await client.runMission({
name: 'Delivery',
devices: ['dev-1', 'dev-2'],
});License
MIT
