Message boards : Cafe : Charts?
Author | Message |
---|---|
Hi, I have prepared new simple chart. http://192.166.218.170/scripts/wykres.php?ID=2444 where ID is ID for your detector...If anybody would like to try his own chart library, query to load hourly average measurements (last 24h) from particular detector is: SELECT DATE_FORMAT(data, '%d/%c/%Y %H') AS data, (AVG(pomiar_raw) / AVG(czas_pomiaru)/171.232876) as pomiar FROM trickles_lite WHERE hostid = $host AND data >= NOW() - INTERVAL 24 HOUR GROUP BY DATE_FORMAT(data, '%d/%c/%Y %H') ORDER BY data ASC Table structure: CREATE TABLE trickles_lite ( id int(11) NOT NULL AUTO_INCREMENT, hostid int(11) DEFAULT NULL, pomiar_raw int(11) DEFAULT NULL, `data` datetime DEFAULT NULL, loc1 float(10,6) DEFAULT NULL, loc2 float(10,6) DEFAULT NULL, czas_pomiaru float(10,3) DEFAULT NULL, typ_pomiaru char(1) DEFAULT NULL, eksperyment tinyint(4) DEFAULT NULL, PRIMARY KEY (id), KEY data_index (`data`), KEY host_data_index (hostid,`data`), KEY eksperyment (eksperyment), KEY hostid (hostid) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; Enjoy :) ____________ Regards, Krzysztof 'krzyszp' Piszczek Android Radioactive@Home Map Android Radioactive@Home Map - donated My Workplace | |
ID: 791 | Rating: 0 | rate: / Reply Quote | |
All right. only need another small picture size of a banner - which can be inserted into the signature on the forum and website. | |
ID: 795 | Rating: 0 | rate: / Reply Quote | |
Hello | |
ID: 869 | Rating: 0 | rate: / Reply Quote | |
Hallo | |
ID: 947 | Rating: 0 | rate: / Reply Quote | |
Can you (or anybody) translate to English, please? As google translator are not very good know German, I can't really understand... | |
ID: 957 | Rating: 0 | rate: / Reply Quote | |
Hallo I'll try: Wouldn't it be better to do that with ORDER BY id DESC? It should even work correct with data over two months. ____________ Gruesse vom Saenger | |
ID: 958 | Rating: 0 | rate: / Reply Quote | |
Danke Sänger | |
ID: 961 | Rating: 0 | rate: / Reply Quote | |
Message boards :
Cafe :
Charts?