|
DevelopersGuide
System Build Information for Ambient Coders.
Featured IntroductionFirst off, we would like to thank you for taking interest in our AmbientHackystat project. In case you happened to just stumble upon this wiki page and have no idea what you're getting yourself into, but would like to get a acquainted with the system, you can visit the GuidedTour wiki page. Software ToolsYou will need to download a few software tools in order to work and test our source code. You will also need to set up environmental variables for the tools. If you are unfamiliar with setting up environmental variables, please see the EnvironmentalVariables wiki page. We apologize in advance for the time and effort required to install all of these supplemental packages.
Please refer to the InstallingJavaMail wiki page, found at the hackystat wiki to install javamail correctly. Quality Assurance ToolsBelow is a table containing the Quality Assurance tools needed for testing on this project. Please download the specified versions. The configuration file is used to specify which QA tests the tool should perform. Please note that there are newer versions of some of the tools mentioned belower, however, we strongly recommend that you download the specified versions in order to have full compatibility with our system.
HackystatIn order for you to successfully run the AmbientHackystat system, you will need to install the hackystat framework. Please follow the link to download and install the hackystat system on your computer. We recommend that you read through the tutorials and guides to get a better understanding of this great framework. Checkout the sourcesCheck out the sources from the trunk of the ambienthackystat Google Project repository. http://ambienthackystat.googlecode.com/svn/trunk/. The google project source page has more information. Verify your installationInvoke ant -q -f verify.build.xml to make sure everything is running fine. Building and Running the systemTo build the jar file, invoke ant -f dist.build.xml to create the jar file. What this will do is create a distributable zip file in the build directory, as well as create a jar file in the main directory. Alternately, this file can be downloaded from the .zip file that is located in the featured downloads. The jar file is found within the build directory of the .zip. But if you have install all the correct files and set up the environmental variables, you might as well just build the file! Setting up the Configuration FileTo set up the configuration file, go to the directory where you unzipped the file and navigate to xml\test\configuration.test.xml file. From there you need to set up the username and password for your HackyStat account.
Make sure to leave the Servers field alone for now. The next thing you need to edit is the Devices fields. Fill in this field with the information for your devices. The only thing you really need to edit is the DeviceId for the Orb which is the serial number located at the bottom of the Orb. The DeviceId for the Nabaztag Bunny which is the serial number at the bottom of the Bunny and the Token is found on the http://my.nabaztag.com site under "My Burrow" in the area called "Nabazphere."
The last thing you need to edit is the project and the Trigger/Action pairs. The picture below only has one project and one Trigger/Action pair but you can add more and the test file should have at least 5 already preinstalled. The only thing you need to edit is the ProjectName and the Owner for each project. The ProjectName must match the project name in HackyStat and the Owner must be the email of the Owner of the project so that you get any DevEvents (Development Events) that come from that project and not just a single HackyStat account.
Start up serverTo start up server, using the test xml file, invoke the jar file by entering java -jar ambienthackystat.jar xml\test\configuration.test.xml If you entered your username and password correctly, the server should be able to communicate with the sensorbase. Once its running, it will communicate with the sensorbase and look for build information included in the configuration xml file. If the state has changed, it will change the orb's color/appearance accordingly. Kill the serverUnfortunately, there is no graceful way of stopping the server(yet), so enter Ctrl + C. Possible ErrorsWhen you start the server, you might see some text that seem like errors. What's happening is the server is checking for the latest information from the sensorbase, and changes the state of the orb accordingly. If you take a look at the console output above, there are some errors but most of these are out of the hands of the user. Most of the errors you will encounter are mostly errors with your internet connection. Since the server is trying to receive data from the sensorbase, if it cannot reach the internet then there will be an error reaching the server. Any other errors that might be displayed will usually be due to incorrect information in the configuration file. The system is still very fragile so any slight incorrectness in the configuration file will usually trigger some kind of error if not collapsing the system in general. If you do see a printStackTree, a huge amount of garbled text in the command line referring to files in the program and other Java jargon, then it's probably one of those errors. A sample of this sort of error:
Developmental Ant TasksBelow are ant tasks that you can invoke while in the main installation directory.
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||