Does anyone know if it is possible to use HTML-WebSockets to listen to a telnet stream?
Telnet is an internal development interface and not a function of the FRITZ!Box. Starting with FRITZ!OS 6.25, Telnet is no longer supported and also cannot be installed accidentally. Enabling Telnet enabled an interface that could be used to make extensive and sometimes even harmful modifications to the FRITZ!Box. How to full controlling the ASUS router with original firmware via a command line by the Telnet access protocol. For get more opportunities to configure router, many people flash they routers by alternative firmware such as OpenWRT, DDWRT and others. But this is not always justified.
Description: I have a DSL-Phone-Router (Fritzbox) which has a 'Callmonitor'-function. This sends for every incomming/outgoing call a telnet line with specific infos.
I can see this stream, when i run...
on my Windows-CMD or MAC-Terminal.
My Question: Is it possible, that HTML5-Websockets can listen to this stream? Or can HTML5-Websockets only listen to a Websockets-Server like node.js etc...?
AppGeerAppGeer
1 Answer
The websockify project was created for exactly this sort of thing. It is a python program that bridges between the WebSocket clients and raw TCP servers. You will need somewhere to run websockify, but the websockify requirements are fairly minimal. Also, you will need to implement the client side (HTML/Javascript) to display the stream, but websockify includes a wstelnet.html example that you should be able to modify or use directly for that purpose. Disclaimer: I created websockify.
kanakakanaka
Not the answer you're looking for? Browse other questions tagged javascriptjqueryhtml5node.jswebsocket or ask your own question.
Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.
Sign upHave a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
commented Jul 24, 2015
http://avm.de/fritz-labor/labor-fuer-fritzbox-7490/neues-verbesserungen/ Unfortunately AVM decided to disable telnet on fritzboxes with FritzOS 6.35. There is an urgent need to adapt thefritzbox- binding as it uses the telnet connection to fritzbox. |
commented Jul 26, 2015
any of the Fritzbox Binding contributors @ChrisBee@mrzottel@jensihnow@TobiasMende@mod42@dhufnagel? |
commented Jul 26, 2015
I'm gonna have a look at this - after wacken open air ;) |
commented Jul 27, 2015
I have to update my message before. It seems, that the current version (6.30), which is offered since few days, already telnet disables. This is mentioned in the respective changelog. Therefore I didn't update to 6.30, in order to keep the openhab functionality. Many thanks to your efforts, in advance!!! |
commented Jul 27, 2015
I do not use a fritzbox anymore but it could be possible to use the TR069 protocol. Another Option is to parse the web-frontend. Unfortunately I am not able to test these things anymore. |
referenced this issue Jul 27, 2015
ClosedFritzBoxTR064 Binding #2494
commented Jul 29, 2015
Hi, I coded a first draft of my FritzBox TR064 binding a few months ago. I primary implemnted this to do a presence detection based on Wifi. Unfortunately not all telnet features are covered right now. And I need to document it. By now the following is available
Todo:
|
commented Aug 10, 2015
The new firmware FritzOS 6.30 is published now. The german changelog says: 'Hinweis - Zugang zur FRITZ!Box per Telnet wird nicht mehr unterstützt' I deactivated the automatic update on my fritzbox. Is there anyone, who is involved in fixing this issue? |
commented Aug 10, 2015
unfortunately i am not aware of anybody … |
commented Aug 11, 2015
As I own a Fritzbox, I had a quick look today what it would mean to implement the new protocol. Some questions came up intially:
|
commented Aug 11, 2015
Note that I had a similar discussion on the openHAB 2 list earlier this year: https://groups.google.com/forum/#!searchin/openhab2/fritzbox/openhab2/UjwL7sIHnmw/xZug0KVA8c0J The plan is to have a single Fritzbox binding n openHAB 2, which implements also TR064 support. As openHAB 2 is already Java7, there wouldn't be a problem with using the library either. Maybe it is worth to directly focus the efforts on this new binding and have it ready as soon as the openHAB 2 runtime is ready to be used as a replacement for the 1.x runtime? |
commented Aug 11, 2015
also note, that it is possible to configure the source compatibility bundle-wise (see org.openhab.binding.frontiersiliconradio/pom.xml) for more details … but after all we should definitely join forces to smoothly migrate to oh2. |
commented Aug 12, 2015
@teichsta Is there a roadmap for oh2? I can only migrate to oh2, when at least the bindings from oh1 are available for oh2. I fear this takes some more time, isn't it? |
commented Aug 12, 2015
@staehler Well, this very much depends on you, see https://groups.google.com/d/msg/openhab/1RnkDGaWTiM/1T1RMq3SIvgJ So the sooner you make sure that all your required openHAB 1.x bindings work on openHAB 2, the sooner it is ready to be launched! |
commented Aug 12, 2015
OK, I'll do my best. I'm going to build a test installation on my unused raspi and try get it running ... |
referenced this issue Aug 15, 2015
Closed[avmfritz] Implement TR064 and additional features #344
commented Oct 7, 2015
Unfortunately, the TR064 protocoll doesn't support all features implemented in the fritzbox binding. E.g. DECT couldn't be switched, as well the incomming/outgoing call detection doesn't work. I won't miss both of this features! Is there a chance to use freetz (has freetz its own telnet?) and stay with the fritzbox binding? Will the fritzbox-binding be maintained in the future or will it be removed in later OH versions? |
commented Feb 8, 2016
I think this issue can be closed, because of @gitbock FritzBox TR064 binding. |
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment