Farmbot-Web-App/frontend/__test_support__/fake_state/bot.ts

61 lines
1.2 KiB
TypeScript

import { Everything } from "../../interfaces";
import { panelState } from "../control_panel_state";
export const bot: Everything["bot"] = {
"consistent": true,
"stepSize": 100,
"controlPanelState": panelState(),
"hardware": {
"gpio_registry": {},
"mcu_params": {
encoder_enabled_x: 1,
encoder_enabled_y: 1,
encoder_enabled_z: 0
},
"jobs": {},
"location_data": {
"position": {
x: undefined,
y: undefined,
z: undefined
},
"scaled_encoders": {
x: undefined,
y: undefined,
z: undefined
},
"raw_encoders": {
x: undefined,
y: undefined,
z: undefined
},
},
"pins": {},
"configuration": {},
"informational_settings": {
busy: false,
locked: false,
commit: "---",
controller_uuid: "123",
target: "---",
env: "---",
node_name: "---",
firmware_commit: "---",
},
"user_env": {},
"process_info": {
"farmwares": {}
}
},
"dirty": false,
"currentOSVersion": "3.1.6",
"connectivity": {
uptime: {
"bot.mqtt": undefined,
"user.mqtt": undefined,
"user.api": undefined,
},
pings: {}
}
};