This page last changed on Sep 01, 2014 by rich.sperrin.

Hi hopefully this is enough log to get to an answer - for some reason I'm getting a good response followed by a bad response for my http volume sensor. I would only expect the single response. I've removed all sensors except the this one.

Due to the way the wheezy is packaged for the raspberry pi I am using JDK7 but understand this only effects drools engine?

Is it me or is something doubling up in this log?

Pointer anyone?

2014-09-01 20:31:45,495 INFO [Controller Definition File Watcher for Default Deployer]: Initialized event processor : RRD4J Data Logger
2014-09-01 20:31:45,507 INFO [Controller Definition File Watcher for Default Deployer]: Initialized event processor : EmonCMS Data Logger
2014-09-01 20:31:45,764 DEBUG [Controller Definition File Watcher for Default Deployer]: Building HttGetCommand
2014-09-01 20:31:45,770 DEBUG [Controller Definition File Watcher for Default Deployer]: HttpGetCommand: pollingInterval = 10s
2014-09-01 20:31:45,771 DEBUG [Controller Definition File Watcher for Default Deployer]: HttpGetCommand: method = GET
2014-09-01 20:31:45,771 DEBUG [Controller Definition File Watcher for Default Deployer]: HttpGetCommand: url = http://192.168.1.82:8889/ELAPSE
2014-09-01 20:31:45,772 DEBUG [Controller Definition File Watcher for Default Deployer]: HttpGetCommand: jsonpath = $.volume
2014-09-01 20:31:45,773 INFO [Controller Definition File Watcher for Default Deployer]: Registered sensor : Range Sensor (Name = 'VolumeSensor', ID = '1953', Min: 0, Max: 64)
2014-09-01 20:31:45,774 DEBUG [Controller Definition File Watcher for Default Deployer]: *** setSensor called as part of EventListener init *** sensor is: Range Sensor (Name = 'VolumeSensor', ID = '1953', Min: 0, Max: 64)
2014-09-01 20:31:45,790 DEBUG [Polling thread for sensor: VolumeSensor]: Sensor thread started for sensor: Range Sensor (Name = 'VolumeSensor', ID = '1953', Min: 0, Max: 64)
2014-09-01 20:31:45,840 INFO [Polling thread for sensor: VolumeSensor]: received message: {'command':'ELAPSE',
'value':1514,
'mute':0,
'shuffle':0,
'repeat':0,
'play':1,
'volume':20,
'TotalTime':306,
'favstatus':0}
2014-09-01 20:31:45,844 TRACE [Polling thread for sensor: VolumeSensor]: Processed '20', received '20'
2014-09-01 20:31:45,845 TRACE [Polling thread for sensor: VolumeSensor]: Processed 'N/A', received 'N/A'

Decided to test JDK7 and sure enough it was the problem. I set up another Pi with a pre-jdk7 wheezy and loaded jdk8. And voila my sensors are working again. Sorted

Unfortunately this means the standard Wheezy download that comes pre-poaded with JDK7 is not OR's friend! I tried stripping JDK7 and its not at all straightforward. Is it worth keeping a Wheezy/JDK8 image available users wanting to run OR on Pi?

For reference the pre-jdk7 wheezy version is here:-

http://downloads.raspberrypi.org/raspbian/images/2013-07-26-wheezy-raspbian/

The JDK8 is here:-

http://www.oracle.com/technetwork/java/javase/downloads/jdk8-arm-downloads-2187472.html

With a bit of help here:-

http://www.rpiblog.com/2014/03/installing-oracle-jdk-8-on-raspberry-pi.html

These are also useful:-

Putty to remote into you Pi terminal:-

http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html

And then run the following command if you want to remote into Pi desktop:-

sudo apt-get install xrdp

Posted by rich.sperrin at Sep 04, 2014 21:44
Document generated by Confluence on Jun 05, 2016 09:36