I'm attempting a new install, can someone confirm that I'm on the right path? I am using the new Raspberry Pi 2. I'm running into the same issue as I did earlier with the configuration not properly saving when I exit.
Connected HDMI, keyboard, mouse, Ethernet, and a temperature sensor (GPIO 4, +5, ground, with appropriate resistor). Power on, install Raspbain (NOOBS).
In raspi-config, change locale to en_US.UTF8, enable device tree, enable I2C.
After Raspbian is installed, type:
Code:
sudo modprobe w1-gpio sudo modprobe w1-therm
then type:
Code:
sudo nano /boot/config.txt
Add this line:
Code:
dtoverlay=w1-gpio,gpiopin=4
then type:
and add these lines to the bottom of the file /etc/modules:
then type:
Run:
Code:
git clone https://github.com/DougEdey/SB_Elsinore_Server
then type:
then run:
Do I need to run the last command as su? The instructions don't say to, but I see examples of it in the thread.
Do I need to install OWFS? If so, are there instructions somewhere? Do I need to install Java, and finally, how about lshw?
Here's what I get when I initially sudo ./launch.sh:
Code:
~/SB_Elsinore_Server $ sudo ./launch.sh
Starting Elsinore as root
May 19, 2015 12:50:46 AM com.sb.elsinore.LaunchControl main
INFO: Running Brewery Controller.
May 19, 2015 12:50:46 AM com.sb.elsinore.LaunchControl getShaFor
INFO: Checking for sha for HEAD
May 19, 2015 12:50:46 AM com.sb.elsinore.LaunchControl getShaFor
INFO: 29aada6a571b2050e3a7c71d1d5d99c49ba529f7
May 19, 2015 12:50:46 AM com.sb.elsinore.LaunchControl main
INFO: Currently at: 29aada6a571b2050e3a7c71d1d5d99c49ba529f7
May 19, 2015 12:50:46 AM com.sb.elsinore.LaunchControl readConfig
INFO: CFG IS NULL
May 19, 2015 12:50:46 AM com.sb.elsinore.LaunchControl readConfig
INFO: DOC IS NULL
May 19, 2015 12:50:46 AM com.sb.elsinore.LaunchControl listOneWireSys
INFO: Checking for 28-000005f3b7b4
May 19, 2015 12:50:46 AM com.sb.elsinore.Temp <init>
INFO: Adding28-000005f3b7b4
May 19, 2015 12:50:46 AM com.sb.elsinore.Temp <init>
INFO: 28-000005f3b7b4 added.
May 19, 2015 12:50:46 AM com.sb.elsinore.Temp setScale
WARNING: Cut off is: -999
May 19, 2015 12:50:46 AM com.sb.elsinore.Temp setScale
WARNING: Cut off is now: -999
1) 28-000005f3b7b4May 19, 2015 12:50:47 AM com.sb.elsinore.LaunchControl displaySensors
INFO: 70.925
May 19, 2015 12:50:47 AM com.sb.elsinore.LaunchControl createConfig
WARNING: Please go to the Web UI to the web UI http://VashPi:8080/controller
May 19, 2015 12:50:47 AM com.sb.elsinore.LaunchControl <init>
INFO: CONFIG READ COMPLETED***********
May 19, 2015 12:50:47 AM com.sb.elsinore.BrewServer <init>
INFO: Launching on port 8080
May 19, 2015 12:50:47 AM com.sb.elsinore.BrewServer <init>
INFO: Enabled logging at level:WARNING
After I access my site, add 2 timers (90 Minute at time 90, and 60 Minute at time 60, and 2 elements with Element 1 at GPIO 17, and Element 2 at GPIO 24), and shut down, here is what I see in the console:
Code:
~/SB_Elsinore_Server $ sudo ./launch.sh
Starting Elsinore as root
May 19, 2015 12:50:46 AM com.sb.elsinore.LaunchControl main
INFO: Running Brewery Controller.
May 19, 2015 12:50:46 AM com.sb.elsinore.LaunchControl getShaFor
INFO: Checking for sha for HEAD
May 19, 2015 12:50:46 AM com.sb.elsinore.LaunchControl getShaFor
INFO: 29aada6a571b2050e3a7c71d1d5d99c49ba529f7
May 19, 2015 12:50:46 AM com.sb.elsinore.LaunchControl main
INFO: Currently at: 29aada6a571b2050e3a7c71d1d5d99c49ba529f7
May 19, 2015 12:50:46 AM com.sb.elsinore.LaunchControl readConfig
INFO: CFG IS NULL
May 19, 2015 12:50:46 AM com.sb.elsinore.LaunchControl readConfig
INFO: DOC IS NULL
May 19, 2015 12:50:46 AM com.sb.elsinore.LaunchControl listOneWireSys
INFO: Checking for 28-000005f3b7b4
May 19, 2015 12:50:46 AM com.sb.elsinore.Temp <init>
INFO: Adding28-000005f3b7b4
May 19, 2015 12:50:46 AM com.sb.elsinore.Temp <init>
INFO: 28-000005f3b7b4 added.
May 19, 2015 12:50:46 AM com.sb.elsinore.Temp setScale
WARNING: Cut off is: -999
May 19, 2015 12:50:46 AM com.sb.elsinore.Temp setScale
WARNING: Cut off is now: -999
1) 28-000005f3b7b4May 19, 2015 12:50:47 AM com.sb.elsinore.LaunchControl displaySensors
INFO: 70.925
May 19, 2015 12:50:47 AM com.sb.elsinore.LaunchControl createConfig
WARNING: Please go to the Web UI to the web UI http://VashPi:8080/controller
May 19, 2015 12:50:47 AM com.sb.elsinore.LaunchControl <init>
INFO: CONFIG READ COMPLETED***********
May 19, 2015 12:50:47 AM com.sb.elsinore.BrewServer <init>
INFO: Launching on port 8080
May 19, 2015 12:50:47 AM com.sb.elsinore.BrewServer <init>
INFO: Enabled logging at level:WARNING
~/SB_Elsinore_Server $ sudo ./launch.sh
Starting Elsinore as root
May 19, 2015 12:50:46 AM com.sb.elsinore.LaunchControl main
INFO: Running Brewery Controller.
May 19, 2015 12:50:46 AM com.sb.elsinore.LaunchControl getShaFor
INFO: Checking for sha for HEAD
May 19, 2015 12:50:46 AM com.sb.elsinore.LaunchControl getShaFor
INFO: 29aada6a571b2050e3a7c71d1d5d99c49ba529f7
May 19, 2015 12:50:46 AM com.sb.elsinore.LaunchControl main
INFO: Currently at: 29aada6a571b2050e3a7c71d1d5d99c49ba529f7
May 19, 2015 12:50:46 AM com.sb.elsinore.LaunchControl readConfig
INFO: CFG IS NULL
May 19, 2015 12:50:46 AM com.sb.elsinore.LaunchControl readConfig
INFO: DOC IS NULL
May 19, 2015 12:50:46 AM com.sb.elsinore.LaunchControl listOneWireSys
INFO: Checking for 28-000005f3b7b4
May 19, 2015 12:50:46 AM com.sb.elsinore.Temp <init>
INFO: Adding28-000005f3b7b4
May 19, 2015 12:50:46 AM com.sb.elsinore.Temp <init>
INFO: 28-000005f3b7b4 added.
May 19, 2015 12:50:46 AM com.sb.elsinore.Temp setScale
WARNING: Cut off is: -999
May 19, 2015 12:50:46 AM com.sb.elsinore.Temp setScale
WARNING: Cut off is now: -999
1) 28-000005f3b7b4May 19, 2015 12:50:47 AM com.sb.elsinore.LaunchControl displaySensors
INFO: 70.925
May 19, 2015 12:50:47 AM com.sb.elsinore.LaunchControl createConfig
WARNING: Please go to the Web UI to the web UI http://VashPi:8080/controller
May 19, 2015 12:50:47 AM com.sb.elsinore.LaunchControl <init>
INFO: CONFIG READ COMPLETED***********
May 19, 2015 12:50:47 AM com.sb.elsinore.BrewServer <init>
INFO: Launching on port 8080
May 19, 2015 12:50:47 AM com.sb.elsinore.BrewServer <init>
INFO: Enabled logging at level:WARNING
Warning: NLS unused message: CHANGE_SCALE in: com.sb.elsinore.nls.messages
Warning: NLS unused message: DUTY in: com.sb.elsinore.nls.messages
Warning: NLS unused message: CALIBRATION in: com.sb.elsinore.nls.messages
Warning: NLS unused message: HIDE in: com.sb.elsinore.nls.messages
Warning: NLS unused message: SHOW in: com.sb.elsinore.nls.messages
Warning: NLS unused message: INVERT_COOL in: com.sb.elsinore.nls.messages
Warning: NLS unused message: INVERT_HEAT in: com.sb.elsinore.nls.messages
Warning: NLS unused message: INVERT_GPIO in: com.sb.elsinore.nls.messages
Warning: NLS unused message: UPDATE_GRAVITY in: com.sb.elsinore.nls.messages
Warning: NLS unused message: DESCRIPTION in: com.sb.elsinore.nls.messages
Warning: NLS unused message: TARGET in: com.sb.elsinore.nls.messages
Warning: NLS unused message: SHUTDOWN in: com.sb.elsinore.nls.messages
Warning: NLS unused message: SHUTDOWN_SYSTEM in: com.sb.elsinore.nls.messages
Couldn't execute lshw to identify board
Cannot run program "lshw": error=2, No such file or directory
No definitions file found, assuming direct mapping
Couldn't execute lshw to identify board
Cannot run program "lshw": error=2, No such file or directory
No definitions file found, assuming direct mapping
After I run sudo ./launch.sh again, here is what I see in the console:
Code:
~/SB_Elsinore_Server $ sudo ./launch.sh
Starting Elsinore as root
May 19, 2015 12:54:17 AM com.sb.elsinore.LaunchControl main
INFO: Running Brewery Controller.
May 19, 2015 12:54:17 AM com.sb.elsinore.LaunchControl getShaFor
INFO: Checking for sha for HEAD
May 19, 2015 12:54:17 AM com.sb.elsinore.LaunchControl getShaFor
INFO: 29aada6a571b2050e3a7c71d1d5d99c49ba529f7
May 19, 2015 12:54:17 AM com.sb.elsinore.LaunchControl main
INFO: Currently at: 29aada6a571b2050e3a7c71d1d5d99c49ba529f7
May 19, 2015 12:54:17 AM com.sb.elsinore.LaunchControl readConfig
INFO: CFG IS NULL
Couldn't execute lshw to identify board
Cannot run program "lshw": error=2, No such file or directory
No definitions file found, assuming direct mapping
May 19, 2015 12:54:18 AM com.sb.elsinore.LaunchControl parseXMLSections
INFO: Checking section timers
May 19, 2015 12:54:18 AM com.sb.elsinore.LaunchControl parseXMLSections
INFO: Checking section switches
May 19, 2015 12:54:18 AM com.sb.elsinore.LaunchControl parseXMLSections
INFO: Checking section phSensors
May 19, 2015 12:54:18 AM com.sb.elsinore.LaunchControl parseXMLSections
INFO: Checking section general
May 19, 2015 12:54:18 AM com.sb.elsinore.LaunchControl parseXMLSections
INFO: Checking section device
May 19, 2015 12:54:18 AM com.sb.elsinore.LaunchControl parseDevice
INFO: Parsing XML Device: 28-000005f3b7b4
May 19, 2015 12:54:18 AM com.sb.elsinore.LaunchControl parseDevice
INFO: min: null
May 19, 2015 12:54:18 AM com.sb.elsinore.LaunchControl parseDevice
INFO: Not enough volume data points, 0 found
May 19, 2015 12:54:18 AM com.sb.elsinore.Temp <init>
INFO: Adding28-000005f3b7b4
May 19, 2015 12:54:18 AM com.sb.elsinore.Temp <init>
INFO: 28-000005f3b7b4 added.
May 19, 2015 12:54:18 AM com.sb.elsinore.LaunchControl startDevice
INFO: Adding 28-000005f3b7b4 Heat GPIO is (null)
May 19, 2015 12:54:18 AM com.sb.elsinore.LaunchControl startDevice
INFO: Adding 28-000005f3b7b4 Cool GPIO is (null)
May 19, 2015 12:54:18 AM com.sb.elsinore.Temp setScale
WARNING: Cut off is: -999
May 19, 2015 12:54:18 AM com.sb.elsinore.Temp setScale
WARNING: Cut off is now: -999
May 19, 2015 12:54:18 AM com.sb.elsinore.LaunchControl <init>
INFO: CONFIG READ COMPLETED***********
May 19, 2015 12:54:18 AM com.sb.elsinore.BrewServer <init>
INFO: Launching on port 8080
May 19, 2015 12:54:18 AM com.sb.elsinore.BrewServer <init>
INFO: Enabled logging at level:WARNING
Warning: NLS unused message: CHANGE_SCALE in: com.sb.elsinore.nls.messages
Warning: NLS unused message: DUTY in: com.sb.elsinore.nls.messages
Warning: NLS unused message: CALIBRATION in: com.sb.elsinore.nls.messages
Warning: NLS unused message: HIDE in: com.sb.elsinore.nls.messages
Warning: NLS unused message: SHOW in: com.sb.elsinore.nls.messages
Warning: NLS unused message: INVERT_COOL in: com.sb.elsinore.nls.messages
Warning: NLS unused message: INVERT_HEAT in: com.sb.elsinore.nls.messages
Warning: NLS unused message: INVERT_GPIO in: com.sb.elsinore.nls.messages
Warning: NLS unused message: UPDATE_GRAVITY in: com.sb.elsinore.nls.messages
Warning: NLS unused message: DESCRIPTION in: com.sb.elsinore.nls.messages
Warning: NLS unused message: TARGET in: com.sb.elsinore.nls.messages
Warning: NLS unused message: SHUTDOWN in: com.sb.elsinore.nls.messages
Warning: NLS unused message: SHUTDOWN_SYSTEM in: com.sb.elsinore.nls.messages
And here is my elsinore.cfg file after shutting down:
Code:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<elsinore>
<timers>
<timer id="60 Minute" position="-1" target="60"/>
</timers>
<switches>
<switch gpio="GPIO24" name="Element%202" position="-1">
<invert>false</invert>
</switch>
</switches>
<phSensors/>
<general>
<pagelock>false</pagelock>
<scale>F</scale>
<recorder>false</recorder>
<recorderDiff>0.15</recorderDiff>
<recorderTime>5000</recorderTime>
</general>
<device id="28-000005f3b7b4">
<probe>28-000005f3b7b4</probe>
<position>-1</position>
<cutoff>-999</cutoff>
<calibration>0F</calibration>
<hidden>false</hidden>
</device>
</elsinore>
The first picture is the initial site, the second picture is the site after I make my configurations, and the third picture is after I shutdown Elsinore and rerun sudo ./launch.sh.
Thanks everyone, sorry for the long post, just really want to get this working. I'm trying to piece together what's in this thread and in the various files on github.