Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
207870d
Add the Stellascapes Number1 PIDs
peternewman Feb 18, 2016
afbe006
Merge branch '0.10' of https://github.com/OpenLightingProject/ola int…
peternewman Feb 18, 2016
70e3e64
Merge pull request #1041 from peternewman/debian
nomis52 Feb 19, 2016
722ecd9
Add warning if JavaScript is off, #1046
brunchboy Feb 28, 2016
85a1bf1
Fix location of insertion.
brunchboy Feb 28, 2016
2c6c247
(Fixes #1043): Use pkg-config for cppunit
daveol Feb 25, 2016
c27062d
Fix Makefile.am reference to config/cppunit.m4
daveol Feb 25, 2016
cea8ff2
Make indentation consistent.
brunchboy Feb 28, 2016
d929099
Be polite, say please. :)
brunchboy Feb 28, 2016
e4e29c3
Merge pull request #1049 from peternewman/debian
peternewman Feb 28, 2016
8d83be8
Merge branch '0.10' into add-javascript-help-to-0-10
brunchboy Feb 28, 2016
fa91db3
Correct the reported min and max for DMX start address via the JSON A…
peternewman Feb 28, 2016
7fc487b
Merge pull request #1048 from brunchboy/add-javascript-help-to-0-10
nomis52 Feb 28, 2016
207ba64
Merge branch '0.10' into debian
peternewman Feb 28, 2016
83799ff
Merge pull request #1050 from peternewman/debian
peternewman Feb 28, 2016
1079bb9
More NEWS
peternewman Feb 28, 2016
3e6aff7
Merge branch '0.10' into debian
peternewman Feb 28, 2016
f6cca2e
Merge pull request #1051 from peternewman/debian
nomis52 Feb 29, 2016
5b86f58
Release 0.10.1
nomis52 Feb 29, 2016
7a34ab2
Merge pull request #1054 from OpenLightingProject/0.10.1
nomis52 Mar 1, 2016
aff23a6
Merge pull request #6 from OpenLightingProject/0.10
peternewman Mar 1, 2016
8fb9073
New placeholder for NEWS
peternewman Mar 1, 2016
e553e15
Try and get Travis building on OS X
peternewman Mar 1, 2016
a3197f6
Remove the generic config, as we're using the matrix
peternewman Mar 1, 2016
c80949c
Fix homebrew package names
peternewman Mar 1, 2016
6577f9b
Only post process the env vars on Linux
peternewman Mar 1, 2016
d3c4fd6
Show the build log if the build failed
peternewman Mar 1, 2016
13bca8f
Add homebrew Python libs to our site-packages
peternewman Mar 1, 2016
1bec40f
Merge pull request #1057 from peternewman/travis-mac
nomis52 Mar 2, 2016
b8a7035
Merge branch '0.10' of https://github.com/OpenLightingProject/ola int…
peternewman Mar 2, 2016
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 37 additions & 14 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,14 @@ addons:
matrix:
fast_finish: true
include:
- compiler: clang
- os: osx
compiler: clang
env: TASK='compile'
- os: osx
compiler: gcc
env: TASK='compile'
- os: linux
compiler: clang
env: TASK='compile'
addons:
apt:
Expand All @@ -46,23 +53,26 @@ matrix:
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-precise
- compiler: gcc
- os: linux
compiler: gcc
env: TASK='compile'
addons:
apt:
packages:
- *core_build_gpp_latest
sources:
- ubuntu-toolchain-r-test
- compiler: gcc
- os: linux
compiler: gcc
env: TASK='coverage'
addons:
apt:
packages:
- *core_build_gpp_latest
sources:
- ubuntu-toolchain-r-test
- compiler: gcc
- os: linux
compiler: gcc
env: TASK='coverity'
addons:
apt:
Expand All @@ -72,7 +82,8 @@ matrix:
- g++-4.9
sources:
- ubuntu-toolchain-r-test
- env: TASK='doxygen'
- os: linux
env: TASK='doxygen'
addons:
apt:
packages:
Expand All @@ -81,21 +92,25 @@ matrix:
- graphviz
sources:
- ubuntu-toolchain-r-test
- env: TASK='lint'
- os: linux
env: TASK='lint'
addons:
apt:
packages:
- *core_build
- env: TASK='check-licences'
- os: linux
env: TASK='check-licences'
addons:
apt:
packages:
- *core_build
- env: TASK='jshint'
- os: linux
env: TASK='jshint'
addons:
apt:
packages:
- env: TASK='flake8'
- os: linux
env: TASK='flake8'
addons:
apt:
packages:
Expand All @@ -108,9 +123,11 @@ matrix:
- python-numpy
- python-rrdtool
allow_failures:
- compiler: gcc
- os: linux
compiler: gcc
env: TASK='coverage'
- compiler: gcc
- os: linux
compiler: gcc
env: TASK='coverity'
- env: TASK='pychecker'

Expand Down Expand Up @@ -151,19 +168,25 @@ install:
- if [ "$TASK" = "pychecker" ]; then pip install --user http://sourceforge.net/projects/pychecker/files/pychecker/0.8.19/pychecker-0.8.19.tar.gz/download; fi

before_install:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install ccache cppunit bison flex ossp-uuid protobuf-c libftdi libftdi0 libusb liblo libmicrohttpd; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then mkdir -p ${HOME}/Library/Python/2.7/lib/python/site-packages; echo 'import site; site.addsitedir("/usr/local/lib/python2.7/site-packages")' >> ${HOME}/Library/Python/2.7/lib/python/site-packages/homebrew.pth; fi
#Coverity doesn't work with g++ 5, so only upgrade to g++ 4.9 for that
- if [ \( "$TASK" = "compile" -o "$TASK" = "coverage" -o "$TASK" = "doxygen" \) -a "$CXX" = "g++" ]; then export CXX="ccache g++-5" CC="ccache gcc-5"; fi
- if [ "$TRAVIS_OS_NAME" == "linux" -a \( "$TASK" = "compile" -o "$TASK" = "coverage" -o "$TASK" = "doxygen" \) -a "$CXX" = "g++" ]; then export CXX="ccache g++-5" CC="ccache gcc-5"; fi
- if [ "$TASK" = "coverity" -a "$CXX" = "g++" ]; then export CXX="ccache g++-4.9" CC="ccache gcc-4.9"; fi
#Use the latest clang if we're compiling with clang
- if [ "$CXX" = "clang++" ]; then export CXX="clang++-3.8" CC="clang-3.8"; fi
- if [ "$TRAVIS_OS_NAME" == "linux" -a "$CXX" = "clang++" ]; then export CXX="clang++-3.8" CC="clang-3.8"; fi
#Report the compiler version
- $CXX --version

after_failure:
- cat ${TRAVIS_BUILD_DIR}/ola-*/_build/test-suite.log

after_success:
- if [ "$TASK" = "coverage" ]; then coveralls --gcov /usr/bin/gcov-5 -b . -E '.*Test\.cpp$' -E '.*\.pb\.cc$' -E '.*\.pb\.cpp$' -E '.*\.pb\.h$' -E '.*\.yy\.cpp$' -E '.*\.tab\.cpp$' -E '.*\.tab\.h$' -E '.*/doxygen/examples.*$' --gcov-options '\-lp' > /dev/null; fi

after_script:
- if [ "$TASK" = "coverity" ]; then cat /home/travis/build/${TRAVIS_REPO_SLUG}/cov-int/scm_log.txt; fi
- if [ "$TASK" = "coverity" ]; then cat ${TRAVIS_BUILD_DIR}/cov-int/scm_log.txt; fi

notifications:
irc:
Expand Down
19 changes: 17 additions & 2 deletions NEWS
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
x/y/2016 ola-0.10.1
x/y/2016 ola-0.10.2
Features:
*

Expand All @@ -9,11 +9,26 @@ x/y/2016 ola-0.10.1
*

Bugs:
* Check if a device exists before trying to acquire a UUCP lock file for it #1006
*

Internal:
*

29/2/2016 ola-0.10.1
Features:
* Add support for Osram Lightify products via a Philips Hue bridge
* Add Stellascapes Lightwidgets Number1 PIDs
* Add a warning to the Web UIs if Javascript is disabled.

Bugs:
* Check if a device exists before trying to acquire a UUCP lock file for it #1006
* Fix the build on FreeBSD
* Fix the build when using the musl C library
* Python RpcChannel incorrectly decodes message header on big-endian machines
* Fix a configure warning on OpenBSD
* Allow you to set DMX address of a one slot device to 512 #1042. The JSON API now returns min and max inclusive
* Switch to pkg-config for cppunit detection #1043

3/1/2016 ola-0.10.0
Features:
* Add better logging for open()
Expand Down
2 changes: 1 addition & 1 deletion config/ola_version.m4
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
# -----------------------------------------------------------------------------
m4_define([ola_major_version], [0])
m4_define([ola_minor_version], [10])
m4_define([ola_revision_version], [0])
m4_define([ola_revision_version], [1])

m4_define([ola_version],
[ola_major_version.ola_minor_version.ola_revision_version])
125 changes: 124 additions & 1 deletion data/rdm/manufacturer_pids.proto
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,129 @@ manufacturer {
set_sub_device_range: ROOT_OR_ALL_SUBDEVICE
}
}
manufacturer {
manufacturer_id: 11720
manufacturer_name: "Stellascapes"
pid {
name: "MODEL_ID"
value: 32770
get_request {
}
get_response {
field {
type: UINT16
name: "model_id"
}
}
get_sub_device_range: ROOT_DEVICE
set_request {
field {
type: UINT16
name: "model_id"
}
}
set_response {
}
set_sub_device_range: ROOT_DEVICE
}
pid {
name: "MODEL_ID_LIST"
value: 32771
get_request {
}
get_response {
field {
type: GROUP
name: "models"
field {
type: UINT16
name: "model_id"
}
}
}
get_sub_device_range: ROOT_DEVICE
}
pid {
name: "PIXEL_TYPE"
value: 32773
get_request {
}
get_response {
field {
type: UINT16
name: "pixel_type"
label {
value: 1
label: "LPD8806"
}
label {
value: 2
label: "WS2801"
}
label {
value: 3
label: "P9813"
}
label {
value: 4
label: "APA102"
}
}
}
get_sub_device_range: ROOT_DEVICE
set_request {
field {
type: UINT16
name: "pixel_type"
label {
value: 1
label: "LPD8806"
}
label {
value: 2
label: "WS2801"
}
label {
value: 3
label: "P9813"
}
label {
value: 4
label: "APA102"
}
}
}
set_response {
}
set_sub_device_range: ROOT_DEVICE
}
pid {
name: "PIXEL_COUNT"
value: 32774
get_request {
}
get_response {
field {
type: UINT16
name: "pixel_count"
}
}
get_sub_device_range: ROOT_DEVICE
set_request {
field {
type: UINT16
name: "pixel_count"
range {
min: 1
max: 65535
}
}
}
set_response {
}
set_sub_device_range: ROOT_DEVICE
}
}
manufacturer {
manufacturer_id: 16761
manufacturer_name: "AYRTON"
Expand Down Expand Up @@ -8263,4 +8386,4 @@ manufacturer {
set_sub_device_range: ROOT_DEVICE
}
}
version: 1438559429
version: 1455773308
6 changes: 6 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
ola (0.10.1-1) unstable; urgency=low

* New upstream release

-- Simon Newton <[email protected]> Sun, 29 Feb 2016 07:51:00 -0700

ola (0.10.0-1) unstable; urgency=low

* New upstream release
Expand Down
10 changes: 10 additions & 0 deletions include/ola/Constants.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,16 @@ enum {
DMX_UNIVERSE_SIZE = 512 /**< The number of slots in a DMX512 universe. */
};

/**
* @brief The minimum number for a DMX512 slot.
*/
static const uint16_t DMX_MIN_SLOT_NUMBER = 1;

/**
* @brief The maximum number for a DMX512 slot.
*/
static const uint16_t DMX_MAX_SLOT_NUMBER = DMX_UNIVERSE_SIZE;

/**
* @brief The minimum value a DMX512 slot can take.
*/
Expand Down
4 changes: 2 additions & 2 deletions olad/RDMHTTPModule.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2104,8 +2104,8 @@ void RDMHTTPModule::GetStartAddressHandler(
} else {
UIntItem *uint_item = new UIntItem("DMX Start Address", address,
ADDRESS_FIELD);
uint_item->SetMin(0);
uint_item->SetMax(DMX_UNIVERSE_SIZE - 1);
uint_item->SetMin(DMX_MIN_SLOT_NUMBER);
uint_item->SetMax(DMX_MAX_SLOT_NUMBER);
item = uint_item;
}
section.AddItem(item);
Expand Down
9 changes: 9 additions & 0 deletions olad/www/mobile.html
Original file line number Diff line number Diff line change
Expand Up @@ -448,6 +448,15 @@
<div id="plugin_info_frame"></div>
</div>

<noscript>
<br>
<p align="center">
<strong>This interface requires JavaScript to function. If you
would like to use it, please enable JavaScript and reload
the page.</strong>
</p>
<br>
</noscript>

<div id='footer'>
OLA &copy; 2005-2015 Open Lighting Project<br/>
Expand Down
9 changes: 9 additions & 0 deletions olad/www/new/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,15 @@
</div>
<!-- /.container-fluid -->
</nav>
<noscript>
<br>
<p align="center">
<strong>This interface requires JavaScript to function. If you
would like to use it, please enable JavaScript and reload the
page.</strong>
</p>
<br>
</noscript>
<div id="errorAlerts"></div>
<div id="ngView" class="container-fluid" ng-view></div>
<div class="modal fade" id="errorModal" tabindex="-1" role="dialog"
Expand Down
9 changes: 9 additions & 0 deletions olad/www/ola.html
Original file line number Diff line number Diff line change
Expand Up @@ -1015,6 +1015,15 @@ <h2 id="plugin_name"></h2>
</div>
</div>
</div>
<noscript>
<br>
<p align="center">
<strong>This interface requires JavaScript to function. If you
would like to use it, please enable JavaScript and reload
the page.</strong>
</p>
<br>
</noscript>

<div id='footer'>
OLA &copy; 2005-2015 Open Lighting Project<br>
Expand Down