File tree Expand file tree Collapse file tree 2 files changed +12
-9
lines changed Expand file tree Collapse file tree 2 files changed +12
-9
lines changed Original file line number Diff line number Diff line change 2
2
3
3
#### Java code and wirings for the Raspberry Pi, featuring reusable libraries and snippets
4
4
5
- > This project was started in 2015.
5
+ > This project was started in 2015.
6
+ > Among several modules, some emerged. We clearly have two major threads:
7
+ > - Actuators and Sensors (look into ` raspberry-io-pi4j ` and others)
8
+ > - Navigation utilities (look into ` raspberry-sailor ` , ` NMEA-multiplexer ` and others)
9
+ >
10
+ > Those two above can interact. For example, navigation software can use sensors.
11
+ > And again, this project is not limited to those two threads.
12
+
6
13
---
7
14
Main keywords:
8
15
- Raspberry Pi
Original file line number Diff line number Diff line change 2
2
# Extract temperature and voltage from sysinfo.sh
3
3
# Use it like ./record.sh >> recording.txt
4
4
LOOP=true
5
- while (" ${LOOP} " == " true" )
6
- do
5
+ while [[ " ${LOOP} " == " true" ]]; do
7
6
./sysinfo.sh | grep -E ' temp=|volt=' > snap.txt
8
7
#
9
- while read line
10
- do
8
+ while read line; do
11
9
# echo $line
12
- if [[ " $line " == * " temp" * ]]
13
- then
10
+ if [[ " $line " == * " temp" * ]]; then
14
11
temp=${line#* =}
15
12
temp=${temp::- 2}
16
13
# echo -e "Temp: ${temp}"
17
- elif [[ " $line " == * " volt" * ]]
18
- then
14
+ elif [[ " $line " == * " volt" * ]]; then
19
15
volt=${line#* =}
20
16
volt=${volt::- 1}
21
17
# echo -e "Volt: ${volt}"
You can’t perform that action at this time.
0 commit comments