user 101620
Well-Known Member
- Joined
- Dec 29, 2011
- Messages
- 770
- Reaction score
- 181
Are you running as root?
Fantastic work with this Doug. It was quite straightforward for me to setup after reading all of the instructions. Only minor roadblocks for me were to run the same version of java that Elsinore was compiled with and to change Elsinore's default port as it was already occupied by Apache.
Now for my questions - is the layout supposed to be how it is shown in my image (links to full size), or something rendering wrong? Also when the timers run they currently display NA's.
![]()
Thanks Doug, and great work again.
p.s. I just ended up using DS18B20's rather than the higher precision ADC + temp sensors that I mentioned in an earlier post.
edit: Also the temperature text just says temp'F, which I don't think is what is intended
edit2: I also get a lot messages in my console about finding probes and recovering temperatures - does this mean that I have a bad connection somewhere?
e.g.
SEVERE: Couldn't find the probe 28.5DA5AB050000 for Probe 1
Connecting to :4304
Trying to recover Probe 1
May 15, 2014 7:01:27 AM com.sb.elsinore.Temp updateTemp
WARNING: Recovered temperature reading for Probe 1
May 15, 2014 7:01:27 AM com.sb.elsinore.Temp updateTemp
still no dice... i am using Chrome... i will try FF now...
Exception in thread "Thread-13" java.lang.IndexOutOfBoundsException: No group 6
at java.util.regex.Matcher.group(Matcher.java:487)
at jGPIO.GPIO.getPinNumber(GPIO.java:146)
at com.sb.elsinore.OutputControl.run(OutputControl.java:116)
at java.lang.Thread.run(Thread.java:724)
So the rendering issues are because some Javascript isn't being run, no idea why, could you check the javascript console in your browser to see what it says?
As for the OWFS, if it's continuously doing that (like every 500ms) then there's something weird with the OWFS on your system, it could be a dodgy connection, I'd recommend putting one on at a time to see if it's one causing the issue.
I just did a clean install here. Nice touch adding the brewery name customization and the mouse pointer. I have a couple new errors (would you prefer issue reporting on Github?):
I get this message on start up:
Exception in thread "Thread-5" java.lang.NullPointerException
at com.sb.elsinore.StatusRecorder.compare(StatusRecorder.java:258)
at com.sb.elsinore.StatusRecorder.isDifferent(StatusRecorder.java:205)
at com.sb.elsinore.StatusRecorder.run(StatusRecorder.java:78)
at java.lang.Thread.run(Thread.java:745)
And after specifying the GPIO definitions (e.g. java -Dgpio_definitions=extras/beaglebone.json -jar Elsinore.jar), when I go to add a pump or a GPIO for a probe I am told in terminal that:
No definitions file found, assuming direct mapping
Which doesn't work... I try to specify GPIO definitions with ./launch.sh, this happens:
root@beaglebone:~/SB_Elsinore_Server# ./launch.sh -p 8088 -g extras/beaglebone.json
Starting Elsinore as root
May 15, 2014 3:46:03 AM com.sb.elsinore.LaunchControl main
INFO: Running Brewery Controller.
Exception in thread "main" java.lang.NullPointerException
at java.util.Hashtable.put(Hashtable.java:514)
at java.util.Properties.setProperty(Properties.java:161)
at java.lang.System.setProperty(System.java:787)
at com.sb.elsinore.LaunchControl.main(LaunchControl.java:254)
Lastly, the timer is still displaying NA's for me.
This is a bug, I'll investigate it. But also, with the BBB you need to ensure you setup the GPIO: http://dougedey.github.io/2014/03/22/BeagleBoneBlack-Setup/
You'll need to create a custom overlay for your GPIO. extras/w1_setup.sh has a basic GPIO exported.
I am currently using your precompiled .dtbo file, but will give making a custom one another shot. It was working previously (I was testing with my volt meter off the pins I assigned to 'pumps')
I was also having some problems last night with everything going read only on me (2 or 3 times, requiring reboot), after trying a couple things in the web interface. You can imagine that havoc that causes - temperatures can't log, properties can't be saved, was even having difficulty exiting SB because it wanted to save stuff, but couldn't. I couldn't exactly replicate it last night so I didn't include it in my last post. I'm guessing it's probably due to a filesystem corruption, and not something with the software, but I'll mention it incase it's something you come across yourself.
Jul 30, 2014 11:23:22 PM com.sb.elsinore.OutputControl run
WARNING: Could not control the GPIO Pin during loop. Did you start as root?
Jul 30, 2014 11:23:22 PM com.sb.elsinore.OutputControl run
WARNING: Could not control the GPIO Pin during loop. Did you start as root?
java.lang.NullPointerException
at java.math.BigDecimal.multiply(BigDecimal.java:1302)
at com.sb.elsinore.OutputControl.run(OutputControl.java:185)
at java.lang.Thread.run(Thread.java:724)
Jul 30, 2014 11:23:22 PM com.sb.elsinore.OutputControl run
WARNING: Kettle turning off outputs
Jul 30, 2014 11:23:22 PM com.sb.elsinore.OutputControl run