- Download the
monitor.sh
. - Running the
chmod 755 ./monitor.sh
command to make this Bash script executable. - Running the
./monitor.sh
or setting Cron job with specific time to execute this Bash script. - Done.
- Download the
csv_data_converter.sh
to convert all text to CSV files in current directory. - Download the
csv_data_converter_by_day.sh
to convert yesterday text to CSV files in current directory. - All of the above Bash scripts will let converted files be saved as
converted
directory.
- WIP.
- Create the ``
- Download the `` to let all CSV files be imported
- Download the
data_cleaner_by_day.sh
to remove yesterday text file in current directory.
- Before running the Python programs, it should run following commands to ensure required Python modules are installed:
sudo apt-get update
sudo apt-get install python3-requests
pip3 install -U -r requirements.txt
- It should have the GW-06 gateway.
- It should have the detecting devices.
- Creating the
./uuid.txt
file to define detecting device UUID.
- Running the
python3 3e_green_devices.py
program every 1 minute with Crontab. - The above command will store the masured result with the CSV file format.
- Running the
./batch_clean.sh
to clean the outdated data. And it can save the hardware sources. - If the hardware sources are good enough, it can run the
python3 3e_green_devices_cleaner_by_week.py
program every00:01:00
with Crontab.
mysql_auth.txt
setting setup. It can refer the examplemysql_auth.txt.example
file.- Running the
python3 3e_green_devices_importer.py
program every 5 minutes with Crontab.
ssh_auth.txt
setting setup. It can refer the examplessh_auth.txt.example
file.- Running the
python3 3e_green_devices_ssh_client.py
program every 5 minutes with Crontab.
- Running the
create_panasonic_realtime_table.sh
shell script. - Editing the
3e_green_cloud_panasonic_realtime.service.example
to be3e_green_cloud_panasonic_realtime.service
and setup the background service. - Running the
3e_green_cloud_panasonic_realtime.py
Python program as the daemon program.