Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Graph Anything

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 assets
Octocat-spinner-32 include
Octocat-spinner-32 scripts
Octocat-spinner-32 .gitignore
Octocat-spinner-32 .htaccess
Octocat-spinner-32 README.md
Octocat-spinner-32 feedback.php
Octocat-spinner-32 graph.php
Octocat-spinner-32 help.php
Octocat-spinner-32 index.php
Octocat-spinner-32 list.php
Octocat-spinner-32 login.php
Octocat-spinner-32 logout.php
Octocat-spinner-32 twitter_connect.php
README.md

GraphThis.me

This project lets you quickly and easily create graphs of arbitrary data. There is no "signup" process, you just start sending data via email and your account will be created automatically.

Create a new graph by sending an email to "your-graph@graphthis.me" and a graph will be created with the name of whatever you put before the "@" sign. If you send another email there, you'll eventually end up seeing a graph of all the data you sent.

You can include the data for the graph in the subject line or in the message body. If you put your data in the subject, the message body will be attached to that point in the graph as a "note".

Input Formats

Your graphs can have one or more series. To create a graph with one series, just send a single number like "150".

150 A simple one-series graph

For multiple series, either send data as a comma-separated list, or you can name the series for convenience. See the examples below.

15.2, 203992, 34.49 will create a graph with three series. Future emails must send the series data in the same order

gallons:15.2 odometer:203992 cost:34.49 will also create a graph with three series, and the series will be named

Future emails can then specify the data points in a different order by specifying their names odometer:203992 cost:34.49 gallons:15.2

How to Install

  • Download this project and set up a new virtual host serving its files
  • Download the Geoloqi "Common PHP" files at https://github.com/geoloqi/Geoloqi-Common-PHP and set your include path to also search in that project's "include" folder
  • Copy include/config.template.php to include/config.php and configure the database settings
  • You might also want to add a Twitter application key and secret in order to sign in via Twitter
  • If you want to accept data via email, you'll need a mail server like postfix configured to pipe emails to *@example.com to the php script

Sample Apache Config

<VirtualHost *:80>
    ServerName graphthis.me

    DocumentRoot /web/sites/graphthis.me/www
    <Directory /web/sites/graphthis.me/www>
        Options FollowSymLinks
        AllowOverride All
        allow from all
        php_admin_value include_path ".:/web/sites/graphthis.me/www/include:/web/sites/graphthis.me/common/include:/usr/share/pear"
    </Directory>

    CustomLog /var/log/httpd/graphthis.me-access_log combined
    ErrorLog /var/log/httpd/graphthis.me-error_log
</VirtualHost>

License

Copyright © 2011 by Aaron Parecki

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Raphael.js

This project includes Raphael.js, available under the MIT license.

Copyright © 2008 Dmitry Baranovskiy

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

The software is provided "as is", without warranty of any kind, express or implied, including but not limited to the warranties of merchantability, fitness for a particular purpose and noninfringement. In no event shall the authors or copyright holders be liable for any claim, damages or other liability, whether in an action of contract, tort or otherwise, arising from, out of or in connection with the software or the use or other dealings in the software.

http://raphaeljs.com/license.html

Something went wrong with that request. Please try again.