Smartcharts Howto
To use Cronimon you need to register for a user account. Trying it out is completely free.
Step 1 - Add a data hook with:
1. Download the lib_cronimon.php client Library for php
2. Call cmon_add($seriesname, $value, $time, $user_id);
2. Call cmon_add($seriesname, $value, $time, $user_id);
<?php
include("lib_cronimon.php");
// Series-Name, Value, Time, USER-ID
$returncode = cmon_add("Sold Items", 12.5, 1272359293, "ex4mPl3");
// Your Data Series is created automatically if not existing
?>
1. Add an image tag to your website
<img src="http://[USER_ID].put.cronimon.com/datapixel.png?name=[NAME]&value=[VALUE]&time=[TIME]">
USER_ID (your user-id), NAME (name of your dataseries),
VALUE (double) , TIME (Unix-Timestamp, optional)
Example:
<img src="http://ex4mPl3.put.cronimon.com/datapixel.png?name=SoldItems&value=12.5&time=1272359293">
1. Download the libCronimon.jar client Library for Java
2. Call LibCronimon.add(seriesname, value, time, user_id);
Example:
2. Call LibCronimon.add(seriesname, value, time, user_id);
Example:
import cronimon.LibCronimon;
int result = LibCronimon.add("Sold Items",12.5,1272359293,"ex4mPl3");
1. Create a simple Shell script
echo '#!/bin/bash
export name="$1"
export value="$2"
export time="$3"
export user="$4"
wget "http://$user.put.cronimon.com/?name=$name&value=$value&time=$time" -Sq --spider &'> put_cronimon &&
chmod 755 put_cronimon
2. Add some data./put_cronimon 'Sold Items' 12.5 1272359293 ex4mPl3
1. Snippet for a simple python function
import httplib
def cronimon_get(data_series, value, time=None):
cronimondomain = "USER.put.cronimon.com" # Replace with your User-ID
conn = httplib.HTTPConnection(cronimondomain)
conn.request("GET", "/?name=%s&value=%s" % (data_series, value))
returncode = conn.getresponse()
# Success == 1, for a complete list of returncodes see http://cronimon.com/sm_doc.php
data1 = returncode.read()
conn.close()
2. Add some data
cronimon_get("Sold Items", 12.5, 1272359293)
Our HTTP-based API can be called by any programming language or environment:
see Documentation for more details.
http://[YOUR USER ID].put.cronimon.com/ ?name=[DESCRIPTION OF YOUR DATA] &value=[DATA POINT] &time=[TIME THE DATA POINT WAS CREATED]
see Documentation for more details.
Step 2 - Login and customize your Smart Chart
Add dataseries to your chart
Manage multiple charts
Modify chart appearance
CSV-Export
Optional - Embed your Smart Chart on your Website / Adminpanel
<object width="520" height="390" type="application/x-shockwave-flash" id="_cw"
data="http://widgets.cronimon.com/CronimonWidget.swf">
<param name="wmode" value="opaque" />
<param name="movie" value="http://widgets.cronimon.com//CronimonWidget.swf" />
<param name="allowFullScreen" value="true" />
<param name="allowscriptaccess" value="always" />
<param name="flashvars" value="externalName=YOUR_CHART&server_url=widgets.cronimon.com/&host=http://" />
<embed width="520" height="390" flashvars="externalName=YOUR_CHART&server_url=widgets.cronimon.com/&host=http://"
wmode="opaque" allowscriptaccess="always" id="_cw" src="http://widgets.cronimon.com//CronimonWidget.swf" />
</object>

