-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmake3jsonposts.sh
More file actions
executable file
·30 lines (23 loc) · 960 Bytes
/
make3jsonposts.sh
File metadata and controls
executable file
·30 lines (23 loc) · 960 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/usr/bin/env bash
#
# This is a test script to generate data for the BioMonitor Program.
# It calls the makejsondata.sh script file 3 times, once for each
# of the three data types.
#
# Put this script into the Windows Task Scheduler or into CRON on
# Linux for the Raspberry Pi. Set it to run every 5 minutes.
#
# This is not a production script as there is no error handling.
# it's purpos is to simulate the constant creation of json datafiles
# on the Raspberry Pi
logdate=$(date +"%Y%m%d_%H%M%S")
temp_fname="/usr/local/bin/BioReactor/bio_temp_"$logdate".json"
gas_fname="/usr/local/bin/BioReactor/bio_gas_"$logdate".json"
light_fname="/usr/local/bin/BioReactor/bio_light_"$logdate".json"
#echo $temp_fname
#echo $gas_fname
#echo $light_fname
#exit 0
bash /usr/local/bin/BioReactor/makejsondata.sh t > $temp_fname
bash /usr/local/bin/BioReactor/makejsondata.sh g > $gas_fname
bash /usr/local/bin/BioReactor/makejsondata.sh l > $light_fname