Advertisement
Guest User

Untitled

a guest
Dec 20th, 2011
508
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.86 KB | None | 0 0
  1. # create rrd graphs
  2. # 10 minute power graph
  3. rrdtool graph /var/www/currentcost/graphs/power-10min.png \
  4. --start end-10m --width 700 --end now --slope-mode \
  5. --no-legend --vertical-label Watts --lower-limit 0 \
  6. --alt-autoscale-max \
  7. DEF:Power=powertemp.rrd:Power:AVERAGE LINE3:Power#0000FF:Average > /dev/null
  8. # 1hr graph
  9. rrdtool graph /var/www/currentcost/graphs/power-60min.png \
  10. --start end-60m --width 700 --end now --slope-mode \
  11. --no-legend --vertical-label Watts --lower-limit 0 \
  12. --alt-autoscale-max \
  13. DEF:Power=powertemp.rrd:Power:AVERAGE LINE3:Power#0000FF:Average > /dev/null
  14. # 1 day power graph
  15. rrdtool graph /var/www/currentcost/graphs/power-day.png \
  16. --start end-1d --width 700 --end now --slope-mode \
  17. --no-legend --vertical-label Watts --lower-limit 0 \
  18. --alt-autoscale-max \
  19. DEF:Power=powertemp.rrd:Power:AVERAGE \
  20. DEF:PowerMin=powertemp.rrd:Power:MIN \
  21. DEF:PowerMax=powertemp.rrd:Power:MAX \
  22. CDEF:PowerRange=PowerMax,PowerMin,- \
  23. LINE1:PowerMin: \
  24. AREA:PowerRange#0000FF11:"Error Range":STACK \
  25. LINE1:PowerMin#0000FF33:"Min" \
  26. LINE1:PowerMax#0000FF33:"Max" \
  27. LINE1:Power#0000FF:"Average" > /dev/null
  28. # 1 week power graph
  29. rrdtool graph /var/www/currentcost/graphs/power-week.png \
  30. --start end-7d --width 700 --end now --slope-mode \
  31. --no-legend --vertical-label Watts --lower-limit 0 \
  32. --alt-autoscale-max \
  33. DEF:Power=powertemp.rrd:Power:AVERAGE \
  34. DEF:PowerMin=powertemp.rrd:Power:MIN \
  35. DEF:PowerMax=powertemp.rrd:Power:MAX \
  36. CDEF:PowerRange=PowerMax,PowerMin,- \
  37. LINE1:PowerMin: \
  38. AREA:PowerRange#0000FF11:"Error Range":STACK \
  39. LINE1:PowerMin#0000FF33:"Min" \
  40. LINE1:PowerMax#0000FF33:"Max" \
  41. LINE1:Power#0000FF:"Average" > /dev/null
  42. # ################# TEMPERATURE GRAPHS ######################
  43. # 60 min temp graph
  44. #rrdtool graph /var/www/currentcost/graphs/temp-hour.png --start end-60m \
  45. --width 700 --end now --slope-mode --no-legend --vertical-label Celcius \
  46. --lower-limit 0 --alt-autoscale-max \
  47. DEF:Power=powertemp.rrd:Temperature:AVERAGE LINE3:Power#0000FF:Average > /dev/null
  48. # 1 day temperature
  49. rrdtool graph /var/www/currentcost/graphs/temp-day.png --start end-1d \
  50. --width 700 --end now --slope-mode --no-legend --vertical-label Celcius \
  51. --lower-limit 0 --alt-autoscale-max \
  52. DEF:Power=powertemp.rrd:Temperature:AVERAGE LINE3:Power#0000FF:Average > /dev/null
  53. # 1 week temperature
  54. rrdtool graph /var/www/currentcost/graphs/temp-week.png --start end-7d \
  55. --width 700 --end now --slope-mode --no-legend --vertical-label Celcius \
  56. --lower-limit 0 --alt-autoscale-max \
  57. DEF:Power=powertemp.rrd:Temperature:AVERAGE LINE3:Power#0000FF:Average > /dev/null
  58. # 1 month temperature
  59. rrdtool graph /var/www/currentcost/graphs/temp-month.png --start end-30d \
  60. --width 700 --end now --slope-mode --no-legend --vertical-label Celcius \
  61. --lower-limit 0 --alt-autoscale-max \
  62. DEF:Power=powertemp.rrd:Temperature:AVERAGE LINE3:Power#0000FF:Average > /dev/null
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement