Oh, why are you using GPIO8_12?
BBB is GPIO<0|1|2>_x
You probably mean to use GPIO1_12... You set the DTO up for that, but the UI you stated is using GPIO1_12 (and the output says gpio268)
circling on something from another poster, do we in fact need to run bbb_setup.sh every time we boot prior to launching elsinore?
thanks again for the help -
ubuntu@arm:~$ ps aux | less
root 295 0.0 0.1 2224 804 ? S 10:25 0:00 upstart-udev-bridge --daemon
root 300 0.0 0.2 9860 1260 ? Ss 10:25 0:00 /lib/systemd/systemd-udevd --daemon
message+ 356 0.0 0.1 3384 944 ? Ss 10:25 0:00 dbus-daemon --system --fork
root 375 0.0 0.2 3360 1348 ? Ss 10:25 0:00 /lib/systemd/systemd-logind
syslog 378 0.0 0.2 29580 1372 ? Ssl 10:25 0:01 rsyslogd
avahi 396 0.0 0.2 2696 1304 ? S 10:25 0:00 avahi-daemon: running [arm.local]
avahi 398 0.0 0.0 2696 496 ? S 10:25 0:00 avahi-daemon: chroot helper
root 406 0.0 0.0 0 0 ? S 10:25 0:00 [flush-179:0]
root 621 0.0 0.0 1940 452 ? S 10:25 0:00 upstart-socket-bridge --daemon
root 646 0.0 0.1 2484 908 ? S 10:25 0:00 upstart-file-bridge --daemon
root 708 0.0 0.1 3376 692 tty4 Ss+ 10:25 0:00 /sbin/getty -8 38400 tty4
root 709 0.0 0.1 3376 692 tty5 Ss+ 10:25 0:00 /sbin/getty -8 38400 tty5
root 713 0.0 0.1 3376 692 tty2 Ss+ 10:25 0:00 /sbin/getty -8 38400 tty2
root 714 0.0 0.1 3376 692 tty3 Ss+ 10:25 0:00 /sbin/getty -8 38400 tty3
root 717 0.0 0.1 3376 692 tty6 Ss+ 10:25 0:00 /sbin/getty -8 38400 tty6
root 734 0.0 0.4 5880 2132 ? Ss 10:25 0:00 /usr/sbin/sshd -D
root 749 0.0 0.1 2256 736 ? Ss 10:25 0:00 cron
root 753 0.0 0.1 1348 540 ? Ss 10:25 0:00 acpid -c /etc/acpi/events -s /var/run/acpid.socket
root 810 0.0 0.0 0 0 ? S 10:25 0:00 [file-storage]
root 878 0.3 0.0 0 0 ? S 10:26 0:58 [w1_bus_master1]
root 885 0.0 0.2 2368 1172 ? S 10:26 0:00 /bin/bash /home/ubuntu/SB_Elsinore_Server/launch.sh -c /home/ubuntu/SB_Elsinore_Server/elsinore.cfg
root 892 0.0 0.3 4000 1580 ? S 10:26 0:00 sudo /usr/bin/java -jar /home/ubuntu/SB_Elsinore_Server/Elsinore.jar --config /home/ubuntu/SB_Elsinore_Server/elsinore.cfg --baseUser root
root 893 0.0 0.0 1328 412 ? S 10:26 0:00 tee /home/ubuntu/SB_Elsinore_Server/elsinore.log
root 896 3.3 3.9 398772 19856 ? Sl 10:26 8:23 /usr/bin/java -jar /home/ubuntu/SB_Elsinore_Server/Elsinore.jar --config /home/ubuntu/SB_Elsinore_Server/elsinore.cfg --baseUser root
root 940 0.0 0.1 1780 532 ? Ss 10:26 0:00 /usr/sbin/udhcpd -S /etc/udhcpd.conf
root 946 0.0 0.1 20036 972 ? Ssl 10:26 0:03 /usr/bin/owftpd -c /etc/owfs.conf --pid-file /var/run/owfs/owftpd.pid
root 987 0.0 0.1 2612 928 ? Ss 10:26 0:00 /usr/bin/owhttpd -c /etc/owfs.conf --pid-file /var/run/owfs/owhttpd.pid
root 1015 0.0 0.1 29228 1000 ? Ssl 10:26 0:00 /usr/bin/owserver -c /etc/owfs.conf --pid-file /var/run/owfs/owserver.pid
root 1058 0.0 0.1 3376 692 tty1 Ss+ 10:26 0:00 /sbin/getty -8 38400 tty1
root 1059 0.0 0.1 1624 628 ttyO0 Ss+ 10:26 0:00 /sbin/getty 115200 ttyO0
ntp 1705 0.0 0.2 4228 1524 ? Ss 10:41 0:07 /usr/sbin/ntpd -p /var/run/ntpd.pid -g -u 106:112
root 1800 0.1 0.0 0 0 ? S 13:49 0:03 [kworker/0:0]
root 1820 0.0 0.0 0 0 ? S 14:24 0:00 [kworker/0:1]
root 1821 0.1 0.0 0 0 ? S 14:32 0:00 [kworker/0:2]
root 1822 0.3 0.5 9708 3024 ? Ss 14:35 0:00 sshd: ubuntu [priv]
ubuntu 1841 0.3 0.3 9708 1544 ? S 14:35 0:00 sshd: ubuntu@pts/0
ubuntu 1844 0.1 0.3 4216 1724 pts/0 Ss 14:35 0:00 -bash
ubuntu 1856 0.0 0.1 3944 968 pts/0 R+ 14:36 0:00 ps aux
ubuntu 1857 0.0 0.1 3140 720 pts/0 S+ 14:36 0:00 less
#!/bin/sh
### BEGIN INIT INFO
# Provides: elsinore
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: StrangeBrew Elsinore Brewery Controller
# Description: Start and stop the StrangeBrew Elsinore Brewery controller.
### END INIT INFO
ELSINORE_PATH=/home/ubuntu/SB_Elsinore_Server
CONFFILE=$ELSINORE_PATH/elsinore.cfg
PATH=/sbin:/bin:/usr/sbin:/usr/bin:$ELSINORE_PATH
DESC="Elsinore Brewery Controller"
NAME="elsinore"
DAEMON=$ELSINORE_PATH/launch.sh
PIDDIR=/var/run/elsinore
PIDFILE=$PIDDIR/$NAME.pid
LOGFILE=$ELSINORE_PATH/elsinore.log
# Uncomment this line if you're on BBB to ensure One Wire/GPIOs are setup
W1_SETUP=$ELSINORE_PATH/extras/bbb_setup.sh
# Gracefully exit if the package has been removed.
test -x $DAEMON || exit 0
. /lib/lsb/init-functions
d_start() {
# Uncomment these lines if you're on BBB
if [ ! -d /sys/devices/w1_bus_master1 ]; then
echo "Pushing One Wire Modules"
$ELSINORE_PATH/extras/w1_setup.sh
fi
[ -d $PIDDIR ] || {
mkdir -m 0775 -p $PIDDIR
chown root:root $PIDDIR >/dev/null 2>&1
}
start-stop-daemon --start --quiet --background --pidfile $PIDFILE --make-pidfile --oknodo --exec $DAEMON -- -c $CONFFILE
echo $! > $PIDFILE
# ensure the daemon has been started
sleep 1
# Gracefully exit if the package has been removed.
test -x $DAEMON || exit 0
. /lib/lsb/init-functions
d_start() {
# Uncomment these lines if you're on BBB
if [ ! -d /sys/devices/w1_bus_master1 ]; then
echo "Pushing One Wire Modules"
$ELSINORE_PATH/extras/w1_setup.sh
fi
[ -d $PIDDIR ] || {
mkdir -m 0775 -p $PIDDIR
chown root:root $PIDDIR >/dev/null 2>&1
}
start-stop-daemon --start --quiet --background --pidfile $PIDFILE --make-pidfile --oknodo --exec $DAEMON -- -c $CONFFILE
echo $! > $PIDFILE
# ensure the daemon has been started
sleep 1
pidofproc -p $PIDFILE $DAEMON >/dev/null
}
d_stop() {
pkill -TERM -P `cat $PIDFILE`
sleep 1
if [ -f $PIDFILE ] && ! ps h `cat $PIDFILE` > /dev/null
then
# Stale PID file (owserver was successfilly stoped),
#remove it
rm -f $PIDFILE
fi
}
d_status() {
pidofproc -p $PIDFILE $DAEMON > /dev/null
}
case "$1" in
start)
log_daemon_msg "Starting $DESC" "$NAME"
etc...
root@arm:/home/ubuntu# service elsinore stop
* Stopping Elsinore Brewery Controller elsinore pkill: option requires an argument -- 'P'
Usage:
pkill [options] <pattern>
Options:
-<sig>, --signal <sig> signal to send (either number or name)
-e, --echo display what is killed
-c, --count count of matching processes
-f, --full use full process name to match
-g, --pgroup <id,...> match listed process group IDs
-G, --group <gid,...> match real group IDs
-n, --newest select most recently started
-o, --oldest select least recently started
-P, --parent <ppid,...> match only child processes of the given parent
-s, --session <sid,...> match session IDs
-t, --terminal <tty,...> match by controlling terminal
-u, --euid <id,...> match by effective IDs
-U, --uid <id,...> match by real IDs
-x, --exact match exactly with the command name
-F, --pidfile <file> read PIDs from file
-L, --logpidfile fail if PID file is not locked
--ns <pid> match the processes that belong to the same
namespace as <pid>
--nslist <ns,...> list which namespaces will be considered for
the --ns option.
Available namespaces: ipc, mnt, net, pid, user, uts
-h, --help display this help and exit
-V, --version output version information and exit
For more details see pgrep(1).
[ OK ]
root@arm:/home/ubuntu#
root@arm:/home/ubuntu/SB_Elsinore_Server# ./launch.sh
Starting Elsinore as root
Mar 29, 2015 3:19:46 PM com.sb.elsinore.LaunchControl main
INFO: Running Brewery Controller.
Mar 29, 2015 3:19:47 PM com.sb.elsinore.LaunchControl readConfig
INFO: CFG IS NULL
Mar 29, 2015 3:19:47 PM com.sb.elsinore.LaunchControl enableRecorder
INFO: Enabling the recorder
Mar 29, 2015 3:19:47 PM com.sb.elsinore.LaunchControl parseXMLSections
INFO: Checking section switches
Mar 29, 2015 3:19:47 PM com.sb.elsinore.LaunchControl parseXMLSections
INFO: Checking section phSensors
Mar 29, 2015 3:19:47 PM com.sb.elsinore.LaunchControl parseXMLSections
INFO: Checking section general
Mar 29, 2015 3:19:47 PM com.sb.elsinore.LaunchControl parseXMLSections
INFO: Checking section device
Mar 29, 2015 3:19:47 PM com.sb.elsinore.LaunchControl parseDevice
INFO: Parsing XML Device: White_black_tip
Mar 29, 2015 3:19:47 PM com.sb.elsinore.LaunchControl parseDevice
INFO: Not enough volume data points, 0 found
Mar 29, 2015 3:19:47 PM com.sb.elsinore.Temp <init>
INFO: Adding28-0000068da70a
Mar 29, 2015 3:19:47 PM com.sb.elsinore.Temp <init>
INFO: 28-0000068da70a added.
Mar 29, 2015 3:19:47 PM com.sb.elsinore.LaunchControl startDevice
INFO: Adding White_black_tip GPIO is (GPIO1_12)
Mar 29, 2015 3:19:47 PM com.sb.elsinore.Temp setScale
WARNING: Cut off is: -999
Mar 29, 2015 3:19:47 PM com.sb.elsinore.Temp setScale
WARNING: Cut off is now: -999
Mar 29, 2015 3:19:47 PM com.sb.elsinore.LaunchControl startDevice
INFO: Adding PID with GPIO: GPIO1_12
Mar 29, 2015 3:19:47 PM com.sb.elsinore.PID detectGPIO
INFO: Matches: 3
Mar 29, 2015 3:19:47 PM com.sb.elsinore.PID detectGPIO
INFO: Matched GPIO pinout for Beagleboard: GPIO1_12. OS: null
Mar 29, 2015 3:19:47 PM com.sb.elsinore.PID run
INFO: Running White_black_tip PID.
Looking for: ti_am335x-bone
Looking for: ti_am335x-bone
Mar 29, 2015 3:19:48 PM com.sb.elsinore.PID updateValues
INFO: 0: 0: 0
Mar 29, 2015 3:19:48 PM com.sb.elsinore.PID updateValues
INFO: 0: 0: 0
Mar 29, 2015 3:19:48 PM com.sb.elsinore.LaunchControl savePID
INFO: Saving the information for White_black_tip
Mar 29, 2015 3:19:48 PM com.sb.elsinore.OutputControl run
INFO: Fduty: 0
Mar 29, 2015 3:19:48 PM com.sb.elsinore.OutputControl run
INFO: Fduty: 0
Mar 29, 2015 3:19:48 PM com.sb.elsinore.LaunchControl savePID
INFO: Using base node device with ID White_black_tip
Mar 29, 2015 3:19:48 PM com.sb.elsinore.PID run
INFO: off: White_black_tip status: 0E-52 duty cycle: 0
Mar 29, 2015 3:19:48 PM com.sb.elsinore.LaunchControl addNewElement
INFO: Creating element of heat
Mar 29, 2015 3:19:48 PM com.sb.elsinore.LaunchControl addNewElement
INFO: on device
Mar 29, 2015 3:19:48 PM com.sb.elsinore.LaunchControl addNewElement
INFO: Creating element of cycle_time
Mar 29, 2015 3:19:48 PM com.sb.elsinore.LaunchControl addNewElement
INFO: on heat
Mar 29, 2015 3:19:48 PM com.sb.elsinore.LaunchControl addNewElement
INFO: Creating element of proportional
Mar 29, 2015 3:19:48 PM com.sb.elsinore.LaunchControl addNewElement
INFO: on heat
Mar 29, 2015 3:19:48 PM com.sb.elsinore.LaunchControl addNewElement
INFO: Creating element of integral
Mar 29, 2015 3:19:48 PM com.sb.elsinore.LaunchControl addNewElement
INFO: on heat
Mar 29, 2015 3:19:48 PM com.sb.elsinore.LaunchControl addNewElement
INFO: Creating element of derivative
Mar 29, 2015 3:19:48 PM com.sb.elsinore.LaunchControl addNewElement
INFO: on heat
Mar 29, 2015 3:19:48 PM com.sb.elsinore.LaunchControl addNewElement
INFO: Creating element of gpio
Mar 29, 2015 3:19:48 PM com.sb.elsinore.LaunchControl addNewElement
INFO: on heat
Mar 29, 2015 3:19:48 PM com.sb.elsinore.LaunchControl addNewElement
INFO: Creating element of invert
Mar 29, 2015 3:19:48 PM com.sb.elsinore.LaunchControl addNewElement
INFO: on heat
Mar 29, 2015 3:19:48 PM com.sb.elsinore.LaunchControl addNewElement
INFO: Creating element of cool
Mar 29, 2015 3:19:48 PM com.sb.elsinore.LaunchControl addNewElement
INFO: on device
Mar 29, 2015 3:19:48 PM com.sb.elsinore.LaunchControl addNewElement
INFO: Creating element of cycle_time
Mar 29, 2015 3:19:48 PM com.sb.elsinore.LaunchControl addNewElement
INFO: on cool
Mar 29, 2015 3:19:48 PM com.sb.elsinore.LaunchControl addNewElement
INFO: Creating element of delay
Mar 29, 2015 3:19:48 PM com.sb.elsinore.LaunchControl addNewElement
INFO: on cool
Mar 29, 2015 3:19:48 PM com.sb.elsinore.LaunchControl addNewElement
INFO: Creating element of proportional
Mar 29, 2015 3:19:48 PM com.sb.elsinore.LaunchControl addNewElement
INFO: on cool
Mar 29, 2015 3:19:48 PM com.sb.elsinore.LaunchControl addNewElement
INFO: Creating element of integral
Mar 29, 2015 3:19:48 PM com.sb.elsinore.LaunchControl addNewElement
INFO: on cool
Mar 29, 2015 3:19:48 PM com.sb.elsinore.LaunchControl addNewElement
INFO: Creating element of derivative
Mar 29, 2015 3:19:48 PM com.sb.elsinore.LaunchControl addNewElement
INFO: on cool
Mar 29, 2015 3:19:48 PM com.sb.elsinore.LaunchControl addNewElement
INFO: Creating element of gpio
Mar 29, 2015 3:19:48 PM com.sb.elsinore.LaunchControl addNewElement
INFO: on cool
Mar 29, 2015 3:19:48 PM com.sb.elsinore.LaunchControl addNewElement
INFO: Creating element of invert
Mar 29, 2015 3:19:48 PM com.sb.elsinore.LaunchControl addNewElement
INFO: on cool
Mar 29, 2015 3:19:48 PM com.sb.elsinore.LaunchControl <init>
INFO: CONFIG READ COMPLETED***********
Mar 29, 2015 3:19:48 PM com.sb.elsinore.BrewServer <init>
INFO: Launching on port 8080
Mar 29, 2015 3:19:48 PM com.sb.elsinore.BrewServer <init>
INFO: Enabled logging at level:WARNING
I'm not sure what other info to supply. Any ideas on why the manual launch works, but not the service method?
thanks in advance -
Want to try the elsinore.debian service script? I think some users have reported it working on ubuntu. I tried to put checks in it that would give you more information when something didn't start/stop properly.
sure, thanks jangevaa - also, I'll answer my own question about changes to the elsinore.ubuntu script - I'll get to that tonight sometime and post the results.
Anyone else having the same problem? (service seeming to run, but not giving web-ui wherein manual launch everything is working well, including web-ui?)
I also have that exact problem with the Debian Elsinore service script. Haven't been able to figure out why yet.
With all the activity that this thread gets, does anyone else think it would make sense to create a seperate (free) forum just for SB Elsinore?
Sections for hardware, software, photos, diagrams, etc. Sort of expand Doug's github site and the info that jangevaa has on his informative blog.
quick google search shows some are available for free:
http://www.forumotion.com/
-Dan
I understand that elsinore can use several ds18b20's and it averages the temperature from them to compute the duty cycle. Does anyone use more then one thermometer? Probable yes . Are there any images that show where they were placed or does someone have some recommendations on where to place more then one?
You can put multiple probes on a vessel sure... especially since they are so cheap... but PIDs with SB elsinore are set up to each work with a single probe.
while (running) {
tempList.add(fTemp.getTemp());
BigDecimal tempAvg = calcAverage();
this.calculatedDuty = calculate(tempAvg, true);
}
Network controlled is much cheaper (e.g. a panel with Doug's software, SB Elsinore can be built for around $4-500, the electric brewery panel costs $2-3k in many cases.
I was reading the source just because I want to know how it works and it seems the code can handle multiple temperature devices.
In the PID loop:
The code can support it. It seems interesting to maybe have a probe at the bottom and a probe at the top so the average temperature is somewhere between the two.Code:while (running) { tempList.add(fTemp.getTemp()); BigDecimal tempAvg = calcAverage(); this.calculatedDuty = calculate(tempAvg, true); }
Thanks for the detailed response. Cost and comfort level with panel wiring or automation using Pi/Arduino/BB are non-issues. An ElectricBrewery knockoff can be made for <$1k (yes you won't get a shiny powder-coated panel ). Stability of an ElectricBrewery panel will always be higher, but the flexibility as you pointed out is much less (and requires much more work to do so). Logging / data geeking is a huge plus with software controlled. It seems like both get the job done, they just do it in slightly different ways.
The automation aspects of Elsinore are starting to make it more attractive to me, even having started down the design road of the EB panel already. Once I figure out how to make a brew space in my unfinished basement, SW controlled will likely be the route I take.
I'm interested in seeing some <$1000 EB style builds... I should search harder. Don't want to be misinforming on the cost comparison. It's accurate for a comparison of ready-built systems I think (hosehead vs. EB), but maybe not for DIY. In the future I plan on doing a detailed cost break down of my control panel which may help some trying to make a decision.
With all the activity that this thread gets, does anyone else think it would make sense to create a seperate (free) forum just for SB Elsinore?
Sections for hardware, software, photos, diagrams, etc. Sort of expand Doug's github site and the info that jangevaa has on his informative blog.
quick google search shows some are available for free:
http://www.forumotion.com/
-Dan
ah! I'm not the only one... okay!
Doug, I know you've launched your baby and don't necessarily want to field all the questions (completely understandable), but I'm wondering if you have any expert guidance for us in this instance, if it's quick and painless to write here.
On the aside, you mentioned you won't be monitoring this thread, so I'm wondering if there's another forum or thread in which you'll be more active and wanting/fielding questions. Please let us know. I'm a linux noob, so for setup and trouble-shooting I'm pretty-much relegated to following pat instructions, even if I don't understand what I'm doing. Playing the pity card there, yes; essentially it's difficult for me to self-answer all the questions which arise when troubleshooting an issue, given my limitations with linux.
Would love to have this thing running via the service, starting auto at boot, etc.... then again, I'm pretty happy having it run any which way. It's really great now that I know how to get the output GPIOs going, to control devices. Thanks for putting this together.
I think its 8080...not 8088
Thought I could make it through without help but.
Got SB running on BBB yesterday with two one wire sensors. Today I decided to add 2 more to display my fermentor temperatures. If I run the bbb_setup file they are listed by ID #, so i know they are properly connected.
Upon launching SB and viewing in my browser, all that appear are the original 2. What obvious step have I over looked or misunderstood?
My main concern is with tying the brewing process with monitoring the fermentation chamber conical temperatures. This will be a part time brewery at first and having this info in SB would alert the brewer that there is a problem that needs attention fast. Do-able?
Thanks
I believe if you are adding probes to an existing configuration you will need to be in "edit" view and then name/unhide the sensors for them to appear.
Appreciate the response, I assumed this as well but when I click "LOCK" it will change to "EDIT" but for no more than a second or two then the screen refreshes and it's Locked again.
Can I disable the LOCK in a file to configure or do I have another issue?
Thanks,
Which browser are you using? I found Chrome to work better than Firefox and Safari.
Appreciate the response, I assumed this as well but when I click "LOCK" it will change to "EDIT" but for no more than a second or two then the screen refreshes and it's Locked again.
Can I disable the LOCK in a file to configure or do I have another issue?
Thanks,
Is there something I need to do to get the Graph option to show up? I've even tried clicking on the temperature with no luck.
For those of you that are building your own Elsinore box's, can you post what enclosure you went with? Im looking through Amazon and Ebay trying to figure out exactly what i need without getting something that is way overkill and wasting money. The standard Kal standard 16x16x8 seems like huge overkill considering there are no PID's or switches, just a few SSR's and a RPI...
Also I look at the pictures of Doug's box post fire incident and see two SSR's, then i look at Java's and i see 4, and i look at the initial thread's Circuit and it shows 3...so that's a bit confusing
We hear alot about the software, but not many people posting about their actual builds or final product which would be a great help to the rest of us trying to get idea's! If running the BrewPi DIY thread taught me anything is that people come up with some crazy ass ways to create enclosures with connecctors that i would have never thought of.
Make sure you are running the latest version of SB elsinore, and that the recorder is enabled. You can enable the recorder in edit mode.
Enter your email address to join: