Automatic scripts for sam210723/himawari-rx.
There are two verions of systems supported: Windows and Linux.
The scripts for Windows are included in Windows folder, and for Linux are in Linux folder.
himawari-rx__auto.bat
is the main script for start TSDuck
to record a dump file, then rename the dump file and start himawari-rx__decode.bat
automatically when TSDuck
is terminated, and start TSDuck
again at the same time to record next round.
If you want to choose device, just add argument 1 named "adapter
" (if it is empty, the script will use adapter 0
automatically), it is like "-a N
" or "--adapter N
" for TSDuck
. (Use tsp -I dvb --help
command for help)
-a N
--adapter N
Specifies the Nth tuner device in the system. This option can be used
instead of device name.
For example (for adapter 1
):
himawari-rx__auto.bat 1
himawari-rx__decode.bat
is the script for start himawari-rx
to receive files, and make pictures automatically. It will start automatically by the himawari-rx__auto.bat
script.
himawari-rx__sataid.bat
is the script for convert
all received HRIT Data (HRIT File Format)
to SATAID Data (SATAID Format)
(It will start automatically by the himawari-rx__decode.bat
script), then you can Register
the SATAID Files
to SATAID
software.
Here is the download link of HimawariCast_software.zip
(which SATAID
is included in): https://www.data.jma.go.jp/mscweb/en/himawari89/himawari_cast/software/HimawariCast_software.zip.
Note: If you don't want to convert
all received HRIT Data (HRIT File Format)
to SATAID Data (SATAID Format)
automatically, just remove the script himawari-rx__sataid.bat
from himawari-rx
's directory (at the same directory as himawari-rx.py
), then this feature will be disabled.
The hrit2sataid
folder is the directory of the programs for convert
all received HRIT Data (HRIT File Format)
to SATAID Data (SATAID Format)
, which are relied on by the himawari-rx__sataid.bat
script.
The files of the hrit2sataid
folder are extracted from HimawariCast_software.zip (https://www.data.jma.go.jp/mscweb/en/himawari89/himawari_cast/software/HimawariCast_software.zip)
.
Warnning: Do not
remove this directory or any file of it when you are using the himawari-rx__sataid.bat
script, or the himawari-rx__sataid.bat
script can't work well.
himawari-rx__rmdir.bat
is the script for remove the directories of hrit files
after all pictures
are made (functional like clear cache
).
Warnning: This script mustn't run directly, to avoid it remove current directory and its all files!
Note: If you don't want to "remove the directories of hrit files
after all pictures
are made", just remove the script himawari-rx__rmdir.bat
from himawari-rx
's directory (at the same directory as himawari-rx.py
), then this feature will be disabled.
time_monitor_to_terminate_TSDuck.bat
is the script to terminate all TSDuck processes (tsp.exe)
automatically every 10 minutes
(when the last digit
of minute
is 5
), then will make himawari-rx__decode.bat
started automatically by himawari-rx__auto.bat
.
Notice: all TSDuck processes (tsp.exe)
will be terminated when it's time to terminate tsp.exe
by this script!
start.vbs
and start.bat
are the one-click script of these scripts, you can using start.bat
instead of start.vbs
to get start if vbscript
on your system is not allowed.
If you want to choose device, just add argument 1 named "adapter
" (if it is empty, the script will use adapter 0
automatically), it is like "-a N
" or "--adapter N
" for TSDuck
. (Use tsp -I dvb --help
command for help)
-a N
--adapter N
Specifies the Nth tuner device in the system. This option can be used
instead of device name.
For example (for adapter 1
):
start.bat 1
Usage:
(1) Be sure the operating system is Windows
, TSDuck
is installed, your hardwares is working and himawari-rx
can work at the same machine.
(2) Then put the scripts of Windows version to himawari-rx
's directory (at the same directory as himawari-rx.py
).
(3) Finally just start start.vbs
or start.bat (if vbscript on your system is not allowed)
, it will automatically start himawari-rx__auto.bat
and time_monitor_to_terminate_TSDuck.bat
at the same time, they will start to receive and make pictures automatically.
If you want to choose device, just add argument 1 named "adapter
" (if it is empty, the script will use adapter 0
automatically), it is like "-a N
" or "--adapter N
" for TSDuck
. (Use tsp -I dvb --help
command for help)
-a N
--adapter N
Specifies the Nth tuner device in the system. This option can be used
instead of device name.
For example (for adapter 1
):
start.bat 1
himawari-rx__auto.sh
is functionally like himawari-rx__auto.bat
in Windows version.
If you want to choose device or frontend, just add argument 1 named "device
" (if it is empty, the script will use adapter0
and use the frontend
automatically), it is like "-d name
" or "--device-name name
" for TSDuck
. (Use tsp -I dvb --help
command for help)
-d name
--device-name name
Specify the DVB receiver device name, /dev/dvb/adapterA[:F[:M[:V]]] where
A = adapter number, F = frontend number (default: 0), M = demux number
(default: 0), V = dvr number (default: 0). By default, the first receiver
device is used. Use the tslsdvb utility to list all DVB devices.
For example (for TBS5520SE Device [ adapter 0 frontend 1, is for DVB-S2 ]):
himawari-rx__auto.sh "/dev/dvb/adapter0:1"
himawari-rx__decode.sh
is functionally like himawari-rx__decode.bat
in Windows version.
himawari-rx__sataid.sh
is functionally like himawari-rx__sataid.bat
in Windows version.
The hrit2sataid
folder is the same as the hrit2sataid
folder in Windows version.
himawari-rx__rmdir.sh
is functionally like himawari-rx__rmdir.bat
in Windows version, but the remove commands is included in other scripts and not this script (just for mark to remove the directories of hrit files
).
time_monitor_to_terminate_TSDuck.sh
is functionally like time_monitor_to_terminate_TSDuck.bat
in Windows version.
start.sh
is functionally like start.bat
in Windows version.
If you want to choose device or frontend, just add argument 1 named "device
" (if it is empty, the script will use adapter0
and use the frontend
automatically), it is like "-d name
" or "--device-name name
" for TSDuck
. (Use tsp -I dvb --help
command for help)
-d name
--device-name name
Specify the DVB receiver device name, /dev/dvb/adapterA[:F[:M[:V]]] where
A = adapter number, F = frontend number (default: 0), M = demux number
(default: 0), V = dvr number (default: 0). By default, the first receiver
device is used. Use the tslsdvb utility to list all DVB devices.
For example (for TBS5520SE Device [ adapter 0 frontend 1, is for DVB-S2 ]):
start.sh "/dev/dvb/adapter0:1"
Notice:
These scripts will automatically modify the decoder scripts to fix the bug of them when the path splitter is not for Linux (if it's for Windows only).
For exit these script, just create a file as /tmp/exit_himawari_rx.txt
and terminate the tsp
process, and don't forget to delete /tmp/exit_himawari_rx.txt
if you want to start these automatic scripts again.
Usage:
(1) Be sure the operating system is Linux
, TSDuck
and wine
installed (if you don't want to convert
all received HRIT Data (HRIT File Format)
to SATAID Data (SATAID Format)
automatically, wine
is not requried), your hardwares is working and himawari-rx
can work at the same machine.
(2) Then put the scripts of Linux version to himawari-rx
's directory (at the same directory as himawari-rx.py
).
(3) Finally just start start.sh
, it will automatically start himawari-rx__auto.sh
and time_monitor_to_terminate_TSDuck.sh
at the same time, they will start to receive and make pictures automatically.
If you want to choose device or frontend, just add argument 1 named "device
" (if it is empty, the script will use adapter0
and use the frontend
automatically), it is like "-d name
" or "--device-name name
" for TSDuck
. (Use tsp -I dvb --help
command for help)
-d name
--device-name name
Specify the DVB receiver device name, /dev/dvb/adapterA[:F[:M[:V]]] where
A = adapter number, F = frontend number (default: 0), M = demux number
(default: 0), V = dvr number (default: 0). By default, the first receiver
device is used. Use the tslsdvb utility to list all DVB devices.
For example (for TBS5520SE Device [ adapter 0 frontend 1, is for DVB-S2 ]):
start.sh "/dev/dvb/adapter0:1"