Vocational education Page Books (BD and UML) Lessons Responsibilities (education) degree in Computer Courses in mix Tickets Search Page Frames and professional projects Responsibilities (Research) Research westfields shepherds bush Publications Tickets Tickets NLP Summary UIMA UIMA UIMA Tickets Home Automation Controllers Monitoring Modules Tutorials Linux Commands Applications Software Necessary LaTeX WordPress Android Wiring Material Synology FreeBox DLink Holiday westfields shepherds bush Home Rental westfields shepherds bush Lease Rent Tickets Taxes Miscellaneous westfields shepherds bush Thoughts DIY Carto & GPS Photo & Video
The case Freebox Server does not crash often. However, in three years, he planted three times during Holiday (early for that matter). This is very annoying because: Impossible to know if this is the Freebox is planted or if there is more power in the house The home network is not accessible, and therefore more access personal data stored on the NAS More Automation either (restarting the heating before returning for example) instead westfields shepherds bush of josdblog More ... well, not great at all!
The solution described in this post is to start from the solution presented in the ticket Synology: Notification of passing on UPS (Server is on battery) by inserting a plug Zwave switch between the inverter and the power of the box so that the Freebox Server Synology NAS, through SynoZwave, can cut and restore power to the Freebox Server box to force it to restart.
I list below a list of problems to consider. The case Freebox server is the ADSL modem. When planted, can not access from outside the network, and therefore the NAS. Synology NAS should detect and solve the problem alone. The case Freebox server is the network router, so there is no guarantee that even cut out, the network still works. The NAS is likely to be completely isolated and no longer able to interact via the network with a dedicated home automation box connected (like ZiBASE of ZODIANET). Z-Wave (Aeon Labs Z-Wave Z-Stick USB S2) SynoZwave controller is connected directly to the Synology, piloting Zwave device therefore does not require a functional network, which is a definite plus! A Zwave switch socket can not remember its state after a power outage of more than a few seconds westfields shepherds bush (in the case of the switch Everspring AN157-6 Take for example). When the NAS restarts after a power failure, it must also restart the Zwave switch controlling the power outlet box Freebox server. In addition, westfields shepherds bush it is better that the Synology NAS is configured with a static westfields shepherds bush IP so it does not expect the address of the router that may start much later than him. SynoZwave is not very stable, it is best to periodically westfields shepherds bush check that it is still active. Http requests used to control the Zwave switch socket can crash SynoZwave. westfields shepherds bush Connections
The diagram above shows an example of interconnections box Freebox server, NAS, UPS, power supplies and switch Zwave outlet. In the diagram, power connections are blue and network connections in red. The script restart box Freebox Server
#! / Opt / bin / bash export _____ # Function to start SynoZwave start_SynoZwave () {/ var / packages / synozwave / scripts / start-stop-status start> / dev / null sleep 60} # _____ function to restart SynoZwave reboot_SynoZwave () {sleep 10 killall synozwave sleep 10 start_SynoZwave } echo-e "\ n__________ westfields shepherds bush DomoInternetTest.sh [$ (date +% c)]" # _____ Check that SynoZwave is still active ps | grep-v grep | grep synozwave> / dev / null if [$? -Ne 0] then echo-e start_SynoZwave "Restarting SynoZwave" fi # _____ Checking the internet TEST1 = "www.google.com" westfields shepherds bush TEST2 = "ping.funet.fi" ping-q-c1 $ TEST1> / dev / null if [$? -Ne 0] then ping-q-c1 westfields shepherds bush $ TEST2> / dev / null if [$? -Ne 0] then # reboot_SynoZwave Extinction wget - quiet - spider "http://localhost:4020/data=devices&action=edit&deviceNum=8&valueNum=1&setValue=0" reboot_SynoZwave reignition # wget - quiet - spider "http:/ westfields shepherds bush / localhost: 4020/data devices = & action = edit & deviceNum = 8 & valueNum = 1 & setValue
No comments:
Post a Comment