From 95f8202d80783b4ad5685a3ddfc07f49cfab1955 Mon Sep 17 00:00:00 2001 From: jl777 Date: Thu, 12 May 2016 17:11:12 -0500 Subject: [PATCH] test --- iguana/iguana_rpc.c | 4 + iguana/index.html | 183 +++++++++++++---------------------- iguana/js/amcharts/style.css | 20 +++- 3 files changed, 92 insertions(+), 115 deletions(-) diff --git a/iguana/iguana_rpc.c b/iguana/iguana_rpc.c index f398cdc79..1d5f7f24b 100755 --- a/iguana/iguana_rpc.c +++ b/iguana/iguana_rpc.c @@ -842,6 +842,10 @@ char *SuperNET_rpcparse(struct supernet_info *myinfo,char *retbuf,int32_t bufsiz *jsonflagp = 1; i += strlen("/api"); } else *jsonflagp = 0; + if ( strncmp(&url[i],"/data",strlen("/data")) == 0 ) + { + return(clonestr("[{\"date\":\"2016-08-19T21:30:43.878Z\",\"value\":30},{\"date\":\"2016-08-19T21:30:43.878Z\",\"value\":44},{\"date\":\"2016-08-19T21:30:43.878Z\",\"value\":49},{\"date\":\"2016-08-19T21:30:43.878Z\",\"value\":28},{\"date\":\"2016-08-19T21:30:43.878Z\",\"value\":52}]")); + } if ( strncmp(&url[i],"/bitmap",strlen("/bitmap")) == 0 ) { i += strlen("/bitmap"); diff --git a/iguana/index.html b/iguana/index.html index 0b735d79a..858d614bf 100755 --- a/iguana/index.html +++ b/iguana/index.html @@ -21,123 +21,75 @@ - + + @@ -706,8 +658,11 @@ data-path="{tc}/{config}"> -
- +
+ + +
+