Started to configure and tweak Cricket to fit my needs to monitor the temperature from the two TINIs I have here.
I’m not sure exactley how far the ports installation goes in the Installing Cricket for the Complete Beginner documentation. Most of the configuration up to 7 is done. Though the Cricket home directory is set to /usr/local/cricket instead of /home/cricket.
After you have copied the config you want and modified it accordingly you are going to compile it but before doing so you much do the following:
mv cricket-conf.pl.dist cricket-conf.pl
so that cricket can find the script and run it.
So after a while of fiddling with the config files I succefully created my own config.
The Default file in the cricket-config/proxycache looks like this:
target --default--
short-desc = ""
client = ""
variable = ""
target-type = proxycache
datasource variable-value
ds-source = "exec:0:/usr/local/jdk1.3.1/bin/java -cp '/usr/local/cricket/exec/proxycache/lib/tinisoap.jar:/usr/local/cricket/exec/proxycache/lib/minml2.jar:/usr/local/cricket/exec/proxycache/' ProxyCacheTiniSoapClientTester %client% %variable%"
rrd-ds-type = GAUGE
targetType proxycache
ds = "variable-value"
and then I made a file called variable looking like this:
target ute
short-desc = "The temperature outside at Riksdalersgatan 46, Gothenburg, Sweden"
client = tini-temp
variable = ute
target inne
short-desc = "The temperature inside at Riksdalersgatan 46, Gothenburg, Sweden"
client = tini-trial
variable = inside
Though these compiled fine I realized that the ProxyCacheTiniSoapClient does not do what is supposed to do. Have to fix but that does not belong here anymore.