DougEdey / SB_Elsinore_Server

Java Server for Strangebrew Elsinore
MIT License
83 stars 25 forks source link

Issues on RaspberryPi #20

Closed ih8lag closed 10 years ago

ih8lag commented 10 years ago

Cannot run on raspberry pi error pid turning off outputs during startup. Tried manual and auto will not turn on.

Ipi@BrewServer ~/BrewServer $ sudo java -jar Elsinore.jar Jul 30, 2014 5:19:45 AM com.sb.elsinore.LaunchControl main INFO: Running Brewery Controller. CFG IS NULL Jul 30, 2014 5:19:47 AM com.sb.elsinore.LaunchControl parseGeneral INFO: Setup OWFS at localhost:4304 Connecting to localhost:4304 Checking section general Checking section device Jul 30, 2014 5:19:47 AM com.sb.elsinore.LaunchControl parseDevice INFO: Parsing XML Device: Kettle Not enough volume data points, 0 found Jul 30, 2014 5:19:47 AM com.sb.elsinore.Temp INFO: Adding28.E93D47040000 Jul 30, 2014 5:19:48 AM com.sb.elsinore.Temp INFO: Using OWFS for 28.E93D47040000/temperature Jul 30, 2014 5:19:49 AM com.sb.elsinore.Temp INFO: 28.E93D47040000 added. Jul 30, 2014 5:19:49 AM com.sb.elsinore.LaunchControl startDevice INFO: Adding Kettle GPIO is (GPIO23) Jul 30, 2014 5:19:49 AM com.sb.elsinore.Temp setScale WARNING: Cut off is: -999 Jul 30, 2014 5:19:49 AM com.sb.elsinore.Temp setScale WARNING: Cut off is now: -999 Jul 30, 2014 5:19:49 AM com.sb.elsinore.LaunchControl startDevice INFO: Adding PID with GPIO: GPIO23 Jul 30, 2014 5:19:49 AM com.sb.elsinore.PID detectGPIO INFO: Matches: 3 Jul 30, 2014 5:19:49 AM com.sb.elsinore.PID detectGPIO INFO: Matched GPIO pinout for Beagleboard: GPIO23. OS: null Jul 30, 2014 5:19:49 AM com.sb.elsinore.PID updateValues INFO: 0: 0: 0 Jul 30, 2014 5:19:49 AM com.sb.elsinore.PID updateValues INFO: 15: 0: 0 Saving the information for Kettle Using base node device with ID Kettle Checking section device Jul 30, 2014 5:19:50 AM com.sb.elsinore.LaunchControl parseDevice INFO: Parsing XML Device: Mash Jul 30, 2014 5:19:50 AM com.sb.elsinore.PID run INFO: Running Kettle PID. Not enough volume data points, 0 found Jul 30, 2014 5:19:50 AM com.sb.elsinore.Temp INFO: Adding28.132347040000 Jul 30, 2014 5:19:50 AM com.sb.elsinore.Temp INFO: Using OWFS for 28.132347040000/temperature Jul 30, 2014 5:19:50 AM com.sb.elsinore.OutputControl setDuty INFO: IN: 0 OUT: 0 Jul 30, 2014 5:19:50 AM com.sb.elsinore.PID run INFO: off: Kettle status: 79.1375 duty cycle: 0 No definitions file found, assuming direct mapping Jul 30, 2014 5:19:51 AM com.sb.elsinore.OutputControl run WARNING: Kettle turning off outputs Exception in thread "Thread-4" java.lang.IndexOutOfBoundsException: No group 5 at java.util.regex.Matcher.group(Matcher.java:487) at jGPIO.GPIO.getPinNumber(GPIO.java:146) at com.sb.elsinore.OutputControl.run(OutputControl.java:114) at java.lang.Thread.run(Thread.java:745) Jul 30, 2014 5:19:51 AM com.sb.elsinore.OutputControl setDuty INFO: IN: 0 OUT: 0 Jul 30, 2014 5:19:52 AM com.sb.elsinore.PID run INFO: off: Kettle status: 79.1375 duty cycle: 0 Jul 30, 2014 5:19:52 AM com.sb.elsinore.Temp INFO: 28.132347040000 added. Jul 30, 2014 5:19:52 AM com.sb.elsinore.LaunchControl startDevice INFO: Adding Mash GPIO is (null) Jul 30, 2014 5:19:52 AM com.sb.elsinore.Temp setScale WARNING: Cut off is: -999 Jul 30, 2014 5:19:52 AM com.sb.elsinore.Temp setScale WARNING: Cut off is now: -999 Jul 30, 2014 5:19:52 AM com.sb.elsinore.LaunchControl INFO: Starting Status Recorder Jul 30, 2014 5:19:52 AM com.sb.elsinore.LaunchControl INFO: CONFIG READ COMPLETED*** Jul 30, 2014 5:19:52 AM com.sb.elsinore.BrewServer INFO: Launching on port 8080 Jul 30, 2014 5:19:52 AM com.sb.elsinore.BrewServer INFO: Debug System property: null Jul 30, 2014 5:19:52 AM com.sb.elsinore.BrewServer INFO: Debug System property: null Server started, kill to stop.

Saving the information for Kettle Using base node device with ID Kettle Saving the information for Kettle Using base node device with ID Kettle Saving the information for Kettle Using base node device with ID Kettle

<?xml version="1.0" encoding="UTF-8" standalone="no"?>

localhost 4304 BrewServer 28.E93D47040000 0 4 110 15 0 0 GPIO23 0 2120 28.132347040000
DougEdey commented 10 years ago

When did you last update this was fixed in: https://github.com/DougEdey/SB_Elsinore_Server/commit/03ffb114519ab1bf79961978fd4073a122346248

ih8lag commented 10 years ago

Last night after you posted on HBT about the new update button.

ih8lag commented 10 years ago

Rebuilt my pi model A from the ground up today with the latest wheezy and owfs... Heading out for a softball game will give it a try when I get home. Maybe it was an OS issue.

DougEdey commented 10 years ago

Not your fault, this is now fixed, I had some invalid logic in jGPIO.