Here Sometimes due to signal strength and some other issues the raspberry pi WiFi disconnects and will not reconnect automatically. Here is a script to check status of the WiFi and keep it connected.
Tip :- You can disconnect and connect wifi using `sudo ifdown wlan0`
and 'sudo ifup wlan0` respectively
Change directory to /usr/local/bin and create file Continue reading [Solved] Raspberry Pi Wifi Disconnect Problems