GitHub user Alex-Cook4 opened a pull request:
https://github.com/apache/incubator-quarks/pull/98
Quarks IoTF RangeSensor Sample
I have put together a sensor application that uses PI4J libraries to
control a Proximity sensor HC-SR04 and LED and work through Watson IoT.
This sample is based off of the IotfSensor sample, but uses real sensors.
Since it depends on Pi4J libraries, I have updated the build files so that this
sample only builds if there is a PI4J_LIB environment variable present.
The full outline of this sensor application on a Pi is (I have bolded the
main differences to the IotfSensor sample):
**RangeSensor** -> Quarks Analytics (only send to IoTF in case of **close
proximity average**) -> Watson IoT -> IBM Streams IoTF Sample -> Send command
back to IoTF -> to Quarks on Pi -> **Light up LED to say we have received the
command**
This is my first commit to Quarks, so please let me know if I'm doing
anything wrong or if I should be pointed to some specific docs. Thanks!
Also, thank you to @dlaboss and @ddebrunner for helping me figure out how
to get the build working correctly.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/Alex-Cook4/incubator-quarks master
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/incubator-quarks/pull/98.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #98
----
commit 21a1dff8ce83594e10d6a43472c5b868c3a1a12e
Author: streamsadmin <streamsadmin@localhost>
Date: 2016-04-11T21:53:43Z
Initial commit with build failing still.
commit 1dc1cbc9786db5bd1b9b8bbfca4ea9d5211f3003
Author: streamsadmin <streamsadmin@localhost>
Date: 2016-04-11T23:40:44Z
Almost there...build still failing because of javadoc issue.
commit 9efe13eeeaa6dcc0280826b6301dbee9ed8b1d28
Author: streamsadmin <streamsadmin@localhost>
Date: 2016-04-13T19:07:05Z
Better package name.
commit 004788463dac6fc51a6c897992ccdbf1a9e3d814
Author: Alex-Cook4 <[email protected]>
Date: 2016-04-13T20:18:23Z
Merge pull request #1 from apache/master
Get master updates.
commit 50a19619f9a7e646d4d517ce3c65aba442d2a7aa
Author: streamsadmin <streamsadmin@localhost>
Date: 2016-04-18T20:51:21Z
Fix Javadoc classpath.
commit 102afe7df459e6a7ab9b96c8c2373c79325bd4a7
Author: streamsadmin <streamsadmin@localhost>
Date: 2016-04-18T20:52:28Z
Merge branch 'master' of https://github.com/Alex-Cook4/incubator-quarks.git
commit 0a79b434284fd05ed84c69e1ca8c013b0dda63d6
Author: streamsadmin <streamsadmin@localhost>
Date: 2016-04-18T20:58:01Z
Fix build.xml
commit a366c8e844c330defc86c2d4c31fe1ee1f0c2cce
Author: streamsadmin <streamsadmin@localhost>
Date: 2016-04-25T22:14:36Z
Fixed build so that no javadoc errors occur
Made it so that we exclude building the range sensor classes unless
environment variable PI4J_LIB is set.
commit 59ff2da7eeccf79d69d41890916e1f435762844d
Author: streamsadmin <streamsadmin@localhost>
Date: 2016-04-25T22:30:24Z
Documentation on running the sample
commit 51ca8ebace4ad326955b03e824e737d93b7b316d
Author: alex-cook4 <alex-cook4@localhost>
Date: 2016-04-25T22:35:50Z
Update README to look better.
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---