Rebooting the ADSL Router when it cannot Access Internet

The ADSL Modem hangs every now and then.. a reboot work all the time.. this is a issue if there is nobody to reset the modem or the site is remote.

The solution is a simple script in Python which check if “Google” is accessible every 5 min, if google is not available then reboots the ADSL Router, { Not included in the script due to dependencies: you could also send a email or syslog event at every reboot or send the copy of the log File end of the Day}

The Python Script Runs on a Linux Box.. nothing great and simple box. using Python and pExpect, the script logs into the modem whenever it cannot ping www.google.com and send a reboot command to the router. A log of the Reboot is maintained.

The CRON is enabled to periodically check availability of internet access through the modem.. every 5Mins.. (for India with BSNL) but any larger time frame can be used, as required
Continue reading

using PHP and PYTHON on the Synology NAS for Advance Config of Devices on the LAN

Its been a while since i have been tinkering with idea to use the PHP for advance configuration of Routers, NAS and any device on the LAN / WAN using http1.1 on Port 80 forwarded to Synology NAS Webserver..

am able to achieve the following
1. reboot the NAS, Router etc based on Events in the Cameras
2. Reconfigure the NAS, Router based on specific Events
the use of PHP is because its commonly available on most NAS having a webserver and would not require any further configuration.. and the PHP pages can be pulled through simple URL http://192.168.1.40/reboot_router.php or http://192.168.1.40/reboot_nas.php
However the Telnet on PHP is more of art than Science and SSH is not available on PHP.. ? further the User Name & Password are plain text, hence may pose a security risk.
With the official Release of PYTHON on the Synology NAS, we could think of using the PYTHON where SSH and TELNET lib are available.
Those who have a a fair PHP or PYTHON experience pls contact me for collaboration.
my night build to reboot the Nas is available _telnetNAS_example.php: Click here

How to use VLC 2.0.1 on Macbook Pro for MxPEG Streams Live View

MxPEG support was added as of Version 2.0.1.

“Just download any version over V2.0.1 for the platform of your choice. Remember (as per the WIKI above), if you want to use VLC Player to retrieve the live MxPEG stream from the camera, you will need to specify the –ffmpeg-format=mxg option on the command line.” —Graham Smith
The Wiki http://wiki.videolan.org/MxPEG has the following information



mxg recordings
Simply open the file with VLC.
Live-Streams
Microsoft Windows:
vlc.exe –ffmpeg-format=mxg “http://:@:/control/faststream.jpg?stream=MxPEG”
Mac OS:
$ VLC.app/Contents/MacOS/VLC –ffmpeg-format=mxg “http://:@:/control/faststream.jpg?stream=MxPEG”
Linux:
$ vlc –ffmpeg-format=mxg “http://:@:/control/faststream.jpg?stream=MxPEG”
GUI:
Media -> Open Network Stream -> show more options. In Edit Options, add :ffmpeg-format=mxg
—- 
The Issue is 

GUI: Media -> Open Network Stream -> show more options is not available on the VLC for MAC.. Hence the following is to help configure “ffmpeg-format=mxg”
btw the Audio works bothways.. if you have the speaker and the Mic enabled on the camera..

VLC Support MxPEG from Version 2.0.1

Pls read through the wiki http://wiki.videolan.org/MxPEG

the following is the update for playing the recording or even the live stream ( opens a new business possibility of transcoding for websites ).. 
Challenge any body want to try this and provide a feedback. with a detailed How to or  “ffmpeg on MOBOTIX for Dummies”

  1. mxg recordings
  2. Live-Streams


  • Microsoft Windows:
  • Mac OS:
  • Linux:
  • GUI:

Simply open the file with VLC.
vlc.exe –ffmpeg-format=mxg “http://:@:/control/faststream.jpg?stream=MxPEG”
$ VLC.app/Contents/MacOS/VLC –ffmpeg-format=mxg “http://:@:/control/faststream.jpg?stream=MxPEG”
$ vlc –ffmpeg-format=mxg “http://:@:/control/faststream.jpg?stream=MxPEG”
Media -> Open Network Stream -> show more options. In Edit Options, add :ffmpeg-format=mxg