Wall's Corners Wall's Corners Author
Title: PiPlanter | Graphing timed mysql data with pchart
Author: Wall's Corners
Rating 5 of 5 Des:
Time to get this data we’re harvesting graphed. In a couple past posts, I’ve used pChart to graph random data but now since data is getting ...

Time to get this data we’re harvesting graphed. In a couple past posts, I’ve used pChart to graph random data but now since data is getting dumped into a mysql chart, it would make sense to try and graph that data.

First, get the php5-gd package by running:

Then download, rename and move the pChart files to the proper directory:

Now pChart is ready to be used.

I used a lot of the info found here:

http://ift.tt/20bJuL6

http://ift.tt/1WfKNZw

The code is pretty well commented so I’m not really going to get into describing it, but essentially, the following php will retrieve data from a mysql table (which is being populated by a script seen in this post) and after leaving it on in my room for like 3 days, render this graph:

Here’s that php script:

Share This:

View more at: http://yoursmart.mobi

About Author

Advertisement

Post a Comment

 
Top