| 1 | ## little programm that listens of /dev/myAruino and prints (nearly) everything | 
|---|
| 2 | to /ct3data/Slowdata/TEMP_YYYYMMDD.slow | 
|---|
| 3 |  | 
|---|
| 4 | the FACT slow data format is used. | 
|---|
| 5 |  | 
|---|
| 6 | the Filenames follow the agreed naming scheme. | 
|---|
| 7 |  | 
|---|
| 8 | usage: ./listen_to_arduino | 
|---|
| 9 |  | 
|---|
| 10 | end with: 'q'+'Enter' | 
|---|
| 11 | (sorry i did not manage to read single keystrokes) | 
|---|
| 12 |  | 
|---|
| 13 | missing features: | 
|---|
| 14 | no one knows where each of the DALLAS Sensors sits. | 
|---|
| 15 |  | 
|---|
| 16 | Neighther the order of the sent Temperature Data tells anything about the position of the | 
|---|
| 17 | Sensor or whether this is a temperature or a humidity. | 
|---|
| 18 |  | 
|---|
| 19 | I plan to use a kind of config file, where the Sensor Positions and Sensor IDs are stored. | 
|---|
| 20 | This file is read, once ./listen is started. The user has to | 
|---|
| 21 | confirm, that nothing has changed. | 
|---|
| 22 | If a Sensor postion is changed, the user may change the data in this config file as well. | 
|---|
| 23 | This results in some new lines in a Slow Data File. | 
|---|
| 24 |  | 
|---|
| 25 | Like this: | 
|---|
| 26 | DALLAS Sensorpositions 2009 08 22 10 47 43 957 1253609263 SensorID: 0x12 34 45 56 a3 moved from: Copperplate upper left corner to: backside of the camera Box | 
|---|
| 27 |  | 
|---|
| 28 | So the movement of every Sensor can be tracked. | 
|---|
| 29 |  | 
|---|
| 30 | Since the DALLAS Sensors can be orderes by their IDs, the Arduino does so, and prints first all | 
|---|
| 31 | Temperature Sensor values (DS18S20) and then all humidity Sensors (DS2438) (first TEMP then HUM) | 
|---|
| 32 |  | 
|---|
| 33 | So one has to look into the Sensorpositions File to find out which Sensor sits in which postion right now, | 
|---|
| 34 | as well as to find out, which value in the String sent by the arduino belongs to which Sensor. | 
|---|
| 35 | This is quite supid work. | 
|---|
| 36 |  | 
|---|
| 37 | So there are/will be some nice GUIs. | 
|---|
| 38 |  | 
|---|
| 39 | The T72 Window, where the user can see the current sensor Data (including 6 Tempsensors an one Humidity Sensor) | 
|---|
| 40 | The 2nd humidity sensor is not included yet. | 
|---|
| 41 |  | 
|---|
| 42 | The plot_temps_via_gnuplot command. | 
|---|
| 43 | Once it is ready the command: | 
|---|
| 44 | plot_temps_via_gnuplot -d 20090812 -s 1234 -e 1345 | 
|---|
| 45 | will open a gnuplot window which shows a temp vs. time plot. | 
|---|
| 46 |  | 
|---|
| 47 | '-d' date in YYYYMMDD | 
|---|
| 48 | '-s' starttime in HHMM | 
|---|
| 49 | '-e' endtime in HHMM | 
|---|
| 50 |  | 
|---|
| 51 | usually one will wish to print the last 20min e.g. | 
|---|
| 52 | this will be possible just by typing: | 
|---|
| 53 | plot_temps_via_gnuplot -s 1234 or //giving the startime | 
|---|
| 54 | plot_temps_via_gnuplot -l 20 // inorder to plot the last 20 min. | 
|---|
| 55 |  | 
|---|
| 56 |  | 
|---|