From 68b793f0597c59b6ddf8be886e63118714f943c8 Mon Sep 17 00:00:00 2001 From: Arksine Date: Sun, 2 May 2021 20:48:05 -0400 Subject: [PATCH] test: register proc stat json-rpc notifications in client Signed-off-by: Eric Callahan --- test/client/js/main.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/test/client/js/main.js b/test/client/js/main.js index 39c8a67..7142faa 100644 --- a/test/client/js/main.js +++ b/test/client/js/main.js @@ -814,6 +814,18 @@ function handle_metadata_update(metadata) { } json_rpc.register_method("notify_metadata_update", handle_metadata_update); +function handle_cpu_throttled(tdata) { + console.log("CPU Throttled"); + console.log(tdata); +} +json_rpc.register_method("notify_cpu_throttled", handle_cpu_throttled); + +function handle_proc_stat_update(proc_stats) { + // TODO: Display Temp + return; +} +json_rpc.register_method("notify_proc_stat_update", handle_proc_stat_update); + //***********End Klipper Event Handlers (JSON-RPC)*****************/ //*****************Websocket Batch GCode Tests*********************/