6 | | All aspects of Trac have been designed with the single goal to |
7 | | '''help developers write great software''' while '''staying out of the way''' |
8 | | and imposing as little as possible on a team's established process and |
9 | | culture. |
10 | | |
11 | | As all Wiki pages, this page is editable, this means that you can |
12 | | modify the contents of this page simply by using your |
13 | | web-browser. Simply click on the "Edit this page" link at the bottom |
14 | | of the page. WikiFormatting will give you a detailed description of |
15 | | available Wiki formatting commands. |
16 | | |
17 | | "[wiki:TracAdmin trac-admin] ''yourenvdir'' initenv" created |
18 | | a new Trac environment, containing a default set of wiki pages and some sample |
19 | | data. This newly created environment also contains |
20 | | [wiki:TracGuide documentation] to help you get started with your project. |
21 | | |
22 | | You can use [wiki:TracAdmin trac-admin] to configure |
23 | | [http://trac.edgewall.org/ Trac] to better fit your project, especially in |
24 | | regard to ''components'', ''versions'' and ''milestones''. |
| 5 | == Overview of dataMine == |
39 | | For a complete list of local wiki pages, see TitleIndex. |
| 23 | Go to the "Create Device" tab and set the following values-: |
| 24 | - '''{{{UpnpDevFilename}}}''' D_DataMine1.xml |
| 25 | - '''{{{UpnpImplFilename}}}''' I_DataMine1.xml |
| 26 | - '''{{{DeviceType}}}''' urn:cd-jackson-com:serviceId:DataMine1:1 |
| 27 | - '''{{{Description}}}''' dataMin |
| 28 | |
| 29 | Use WinSCP (or another SSH client) to upload the following files |
| 30 | |
| 31 | Directory: /www/cmh/plugins/dataMine |
| 32 | - All the GIF/PNG/JS files (other than the files listed above) |
| 33 | |
| 34 | Directory: /www/cmh/skins/default/icons |
| 35 | - Data_Mine.png |
| 36 | |
| 37 | The plugin needs the json library. To install this, go to -: |
| 38 | - http://code.mios.com/trac/mios_genericutils/export/20/json.lua |
| 39 | and download this to the following directory on Vera |
| 40 | - /usr/lib/lua |
| 41 | |
| 42 | Format a USB stick and mount it to the Vera. |
| 43 | (I was unable to get the Vera USB log command to work.) I formatted my drive using FAT32 on my Windows 7 machine and it worked a treat. |
| 44 | - md /dataMine |
| 45 | - mount /dev/scsi/host0/bus0/target0/lun0/part1 /dataMine |
| 46 | |
| 47 | Modify the /etc/init.d.custom-user-startup file to add the line -: |
| 48 | - mount /dev/scsi/host0/bus0/target0/lun0/part1 /dataMine & |
| 49 | This ensures the USB stick is remapped when Vera restarts |
| 50 | |
| 51 | Once the dataMine device is running, click on the tool icon. You will get the graph tab, and config tab. |
| 52 | Click on the config tab, and select the variables you want to log. All changes to the selected variables should now be logged to files in the /dataMine directory. |
| 53 | |
| 54 | |
| 55 | |
| 56 | == Use == |
| 57 | The dataMine plugin installs as a device, and by clicking on the tools button you are presented with two tabs. The first one is the graph tab. This has a listbox to list all the available variables, and a number of buttons. The buttons allow you to select the last day/week/month, or all data, and to scroll and zoom the data. You can also zoom by selecting an area of the graph with the mouse. |
| 58 | |
| 59 | [[Image(dataMine1.png)]] |
| 60 | |
| 61 | The config tab allows you to select the variables to log. This provides a list of all variables for devices that aren't hidden. Variables are listed by service, and if you click on the variable name, logging will be enabled. Clicking again will disable logging, but the variable will still be listed in the graph page dropdown. There's also a little clock button for selected variables. Clicking on this will generate the hourly/daily data for the different zoom levels (currently this is only manual, but it will be made automatic soon). |
| 62 | |
| 63 | [[Image(dataMine2.png)]] |
| 64 | |
| 65 | == Under the hood == |
| 66 | |