Hello everyone and sorry for my english.
I have a raspberry pi powered from the usb port of mikrotik RB951G-2HnD. Sometimes raspberry pi not run correctly and network is down. I have a script inside netwatch tool on mikrotik.
/tool netwatch
add down-script="if (([/system clock get time] > \"06:30:00\") && ([/system clock get time] < \"22:30:00\")) do={[/system routerboard usb power-reset duration=5]}\r\
\n" host=192.168.88.22
Netwach checks the raspberry's ip, if down launch this script (work in console perfectly):
if (([/system clock get time] > "06:30:00") && ([/system clock get time] < "22:30:00")) do={[/system routerboard usb power-reset duration=5]}
The script must check between 6:30 to 22:30 that raspberry is working, if not, reset usb power on mikrotik
Every morning i have to disable an re enable netwatch, not work automatically
Can you help me? Thank you