A question regarding scrtipt

petar

Neuer User
Mitglied seit
10 Dez 2016
Beiträge
23
Punkte für Reaktionen
0
Punkte
1
I have a device that sometimes disconnect from fritz wifi without a reason.

I need to make a script that will check if device is not connected, restart it using fritz dect socket.

What would be the best way to do this?

Thanks in advance.

DS.
 
Well, that depends...
On a Fritzbox with current, unmodified firmware, you can't run a script because you won't get shell access. You might use modFS, Freetz or an AVM "inhouse" version of the firmware. If you can read German, you'll find plenty of information about each variant on this forum. In a nutshell, modFS extends the official firmware a little bit (in particular shell access) whereas Freetz offers quite a few additional packages (but imho too much effort if you just want to run a script). AVM's inhouse firmware builds contain Shell-in-a-box (SIAB) and you don't have to build a firmware image yourself, but they might contain bugs. What's most suitable for you depends on the Fritzbox model you have and the firmware available for it as well as your computer skills (especially Linux).
Maybe you could run a script for checking the connection status on the device itself, but as you haven't provided any information about that device, my crystal ball remains opaque for the time being.
 
Thanks for your prompt answer.

I run freetz 6.83 build, so it should not be that complicated. However I am not an expert in the filed. I can read German through google translate. I am not familiar with either modfs or "inhose", but will try to research some. I had to run some scripts in order to make fritz work with voip on my provider, as far as i could understand i had to have freetz and I did it. It works now for the purpose. It probably has some additional features that are not used by me as of right now. I have built image using a vm on linux and as far as I could see it works 99% correct. I have 7490 DE version. The device is a Air condition unit connection. For some reason the unit does not have 7 days timer. I found it after I purchase it, so only way to realize it through wifi connection and the app on android. I wish it had it like all normal AC before, so I would not spend additional money and effort on a simple feature that was available and present in almost each AC 20 years ago.

It randomly disconnects itself from wifi and the only way to make it to work is to unplug it from 220v and re plug it.

Now I turn it of and turn it on each day before the timer needs to start, but there is a chance that it does not to be turned off if it is not disconnected from wifi.

What other info will be necessary?

LG, DS.
 
If You are using a DECT200-Device for switching, You should have a look at the newest Firmware of the device, which may avoid the "sometime disconnections" from DECT-Base.
You may use a USB-Storing-Stick by renaming the *.upd-file according to your FB-Settings. (Country-Code, Branding etc.)
LG
 
Dect200 is updated to newest fw. Dect200 is not disconnecting. Device that is controlled by Dect200 is disconnecting, and dect200 is used as a switch tool.

BR
 
Holen Sie sich 3CX - völlig kostenlos!
Verbinden Sie Ihr Team und Ihre Kunden Telefonie Livechat Videokonferenzen

Gehostet oder selbst-verwaltet. Für bis zu 10 Nutzer dauerhaft kostenlos. Keine Kreditkartendetails erforderlich. Ohne Risiko testen.

3CX
Für diese E-Mail-Adresse besteht bereits ein 3CX-Konto. Sie werden zum Kundenportal weitergeleitet, wo Sie sich anmelden oder Ihr Passwort zurücksetzen können, falls Sie dieses vergessen haben.