Skip to content

Commit 5cd466b

Browse files
committed
Doc and tweaks.
1 parent b5a6276 commit 5cd466b

File tree

2 files changed

+12
-9
lines changed

2 files changed

+12
-9
lines changed

README.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,14 @@
22

33
#### Java code and wirings for the Raspberry Pi, featuring reusable libraries and snippets
44

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+
613
---
714
Main keywords:
815
- Raspberry Pi

record.sh

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,16 @@
22
# Extract temperature and voltage from sysinfo.sh
33
# Use it like ./record.sh >> recording.txt
44
LOOP=true
5-
while ("${LOOP}" == "true")
6-
do
5+
while [[ "${LOOP}" == "true" ]]; do
76
./sysinfo.sh | grep -E 'temp=|volt=' > snap.txt
87
#
9-
while read line
10-
do
8+
while read line; do
119
# echo $line
12-
if [[ "$line" == *"temp"* ]]
13-
then
10+
if [[ "$line" == *"temp"* ]]; then
1411
temp=${line#*=}
1512
temp=${temp::-2}
1613
# echo -e "Temp: ${temp}"
17-
elif [[ "$line" == *"volt"* ]]
18-
then
14+
elif [[ "$line" == *"volt"* ]]; then
1915
volt=${line#*=}
2016
volt=${volt::-1}
2117
# echo -e "Volt: ${volt}"

0 commit comments

Comments
 (0)