This repository has been archived by the owner on May 14, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Updating ideAlarm
B Synnerlig edited this page Jul 18, 2018
·
5 revisions
The release notices contains important notes about steps that you might have to do before updating. If you are updating from an older release you should go through all the required steps. If you don't pay attention to them, your ideAlarm system will likely fail to work.
(Example commands will follow)
- Set a temporary user variable named $OH_PY_LIB to point on your python library directory. It should match whatever directory that you have set up in the EXTRA_JAVA_OPTS environment variable. (As described in First Installation )
- Check that your user variable is now pointing to a valid directory.
- Download The library init file and save it by the name
$OPENHAB_CONF/automation/lib/python/idealarm/__init__.py
overwriting the previous file. - Download the 001_ideAlarm.py and save it by the name
$OPENHAB_CONF/automation/jsr223/001_ideAlarm.py
overwriting the previous file. - Change file ownership to openhab and group information to openhab for all downloaded files.
Example linux commands for doing all of the above:
export OH_PY_LIB=$OPENHAB_CONF/automation/lib/python # Change this line to match your EXTRA_JAVA_OPTS
ls -ld $OH_PY_LIB # Should output a valid directory
sudo wget -O $OH_PY_LIB/idealarm/__init__.py https://raw.githubusercontent.com/OH-Jython-Scripters/ideAlarm/master/automation/lib/python/idealarm/__init__.py
sudo wget -O $OPENHAB_CONF/automation/jsr223/001_ideAlarm.py https://raw.githubusercontent.com/OH-Jython-Scripters/ideAlarm/master/automation/jsr223/001_ideAlarm.py
sudo chown openhab:openhab $OH_PY_LIB/idealarm/__init__.py
sudo chown openhab:openhab $OPENHAB_CONF/automation/jsr223/001_ideAlarm.py
- Restart openHAB