Subversion Repositories HomeAutomation

Rev

Rev 2048 | Rev 2218 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed

Rev 2048 Rev 2141
Line 45... Line 45...
45
                    names += label;
45
                    names += label;
46
                    first = 0;
46
                    first = 0;
47
                } else {
47
                } else {
48
                    names += ":"+label;  
48
                    names += ":"+label;  
49
                }
49
                }
-
 
50
                if (typeof data[RRD_Tool_StoredData[name]["rrdNames"][label]["data"]]["value"] == "string")
-
 
51
                {
-
 
52
                    values += ":"+data[RRD_Tool_StoredData[name]["rrdNames"][label]["data"]]["value"];
-
 
53
                }
-
 
54
                else
-
 
55
                {
50
                values += ":"+data[RRD_Tool_StoredData[name]["rrdNames"][label]["data"]][RRD_Tool_StoredData[name]["rrdNames"][label]["value"]];
56
                    values += ":"+data[RRD_Tool_StoredData[name]["rrdNames"][label]["data"]]["value"][RRD_Tool_StoredData[name]["rrdNames"][label]["value"]]     
-
 
57
                }  
51
            }
58
            }
52
            cmd += names + " "+RRD_Tool_StoredData[name]["rrd"]["file"]+" "+values;
59
            cmd += names + " "+RRD_Tool_StoredData[name]["rrd"]["file"]+" "+values;
53
            //Log("Command: "+cmd);
60
            //Log("Command: "+cmd);
54
            Execute(cmd);
61
            Execute(cmd);
55
            break;
62
            break;