mzdrale / pyubee Goto Github PK
View Code? Open in Web Editor NEWSimple library for getting stats from Ubee routers.
License: GNU General Public License v3.0
Simple library for getting stats from Ubee routers.
License: GNU General Public License v3.0
I have a modem provided by RCN with their 1 GBps package so they have provided me with a modem with DOCSIS 3.1 support. Any chance in supporting this device?
Model No. : | UBC1301AA00
Specification Compliant : | DOCSIS 3.1
$ pyubee -h
Traceback (most recent call last):
File "/.../9_no_git_testing/pyubee/venv-3_12_0/bin/pyubee", line 5, in <module>
from pyubee.__main__ import main
File "/.../9_no_git_testing/pyubee/venv-3_12_0/lib/python3.12/site-packages/pyubee/__init__.py", line 8, in <module>
import requests
ModuleNotFoundError: No module named 'requests'
requests
package needed but not added as dependency.
Could do it, but do not know what version to set.
Auto-detect the model
1 0 http://192.168.0.1:80 urn:schemas-upnp-org:device:InternetGatewayDevice:1 Ubee Interactive Corp. EVW327N Ubee Interactive Corp. http://www.ubeeinteractive.com EVW327N EVW327N EVW327N http://www.ubeeinteractive.com (unimplemented) uuid:upnp-InternetGatewayDevice-1_0-a8a795bd6192 (unimplemented) urn:schemas-upnp-org:service:Layer3Forwarding:1 urn:upnp-org:serviceId:L3Forwarding1 /Layer3Forwarding.xml /Layer3Forwarding /Layer3Forwarding urn:schemas-upnp-org:device:WANDevice:1 Ubee Interactive Corp. EVW327N Ubee Interactive Corp. http://www.ubeeinteractive.com EVW327N EVW327N EVW327N http://www.ubeeinteractive.com (unimplemented) uuid:upnp-WANDevice-1_0-a8a795bd6192 (unimplemented) urn:schemas-upnp-org:service:WANCommonInterfaceConfig:1 urn:upnp-org:serviceId:WANCommonIFC1 /WANCommonInterfaceConfig.xml /WANCommonInterfaceConfig /WANCommonInterfaceConfig urn:schemas-upnp-org:device:WANConnectionDevice:1 Ubee Interactive Corp. EVW327N Ubee Interactive Corp. http://www.ubeeinteractive.com EVW327N EVW327N EVW327N http://www.ubeeinteractive.com (unimplemented) uuid:upnp-WANConnectionDevice-1_0-a8a795bd6192 (unimplemented) urn:schemas-upnp-org:service:WANIPConnection:1 urn:upnp-org:serviceId:WANIPConn1 /WANIPConnection.xml /WANIPConnection /WANIPConnection /
Logging in
`
<td class="celltopright">
</td>
</tr>
<tr>
<td class="cell1">
</td>
<td class="cell2">
<p style="width:220px">
<label id="ID_LABEL_LOGIN_DESC">Please enter the username and password to login.</label></p>
</td>
</tr>
<tr>
<td class="cell1"><label id="ID_LABEL_LOGIN_USERNAME">Username</label></td>
<td class="cell2">
<input type="text" name="loginUsername" value="" class="invoer">
</td>
</tr>
<tr>
<td class="cell1">
<span class="txt">
<label id="ID_LABEL_LOGIN_PASSWORD">Password</label>
</span>
</td>
<td class="cell2">
<input type="password" name="loginPassword" value="" class="invoer">
</td>
</tr>
<tr>
<td class="cell1">
</td>
<td class="cell2">
<!--<div class="zp-button">--><input type="submit" value="Login" id="ID_BUTTON_LOGIN"><!--</div>-->
</td>
</tr>
<tr>
<td class="cellbottomleft" height="5"><div style="height:5px;width:100%;overflow:hidden;">
</div></td>
<td class="cellbottomright">
</td>
</tr>
</tbody></table>
</form>`
Logging out
http://192.168.0.1/logout.asp
Check if we are logged in
http://192.168.0.1/RgDhcp.asp
show "This site can’t be reached"
But page http://192.168.0.1/UbeeAdvConnectedDevicesList.asp
redirect to login form and link is the same in address bar http://192.168.0.1/UbeeAdvConnectedDevicesList.asp
.
Inspect of the page is following:
<input type="text" name="loginUsername" value="" class="invoer">
Get the connected devices via LAN
`
MAC Address | IP Address | Duration | Expires | |
xx:xx:xx:xx:xx:xx | 192.168.0.xx | D:00 H:01 M:00 S:00 | Wed Apr 01 09:31:53 2020 | |
xx:xx:xx:xx:xx:xx | 192.168.0.xx | D:00 H:01 M:00 S:00 | Wed Apr 01 09:52:21 2020 |
Get the connected devices via WiFi 2.4GHz
`
MAC Address | Age(s) | RSSI(dBm) | IP Addr | Host Name | Mode | Speed (kbps) |
xx:xx:xx:xx:xx:xx | 3177 | -46 | 192.168.0.xx | HP20522408e7fd2749 | n | 144444 |
xx:xx:xx:xx:xx:xx | 4115 | -69 | 192.168.0.xx | GJ-x | n | 24000 |
xx:xx:xx:xx:xx:xx | 8825 | -49 | 192.168.0.xx | Bn | n | 144444 |
xx:xx:xx:xx:xx:xx | 265971 | -43 | 192.168.0.xx | Static IP | n | 6000 |
Get the connected devices via WiFi 5GHz
`
MAC Address | Age(s) | RSSI(dBm) | IP Addr | Host Name | Mode | Speed (kbps) |
xx:xx:xx:xx:xx:xx | 1931 | -49 | 192.168.0.xx | NB | AC | 400000 |
xx:xx:xx:xx:xx:xx | 2344 | -63 | 192.168.0.xx | HP30P51f4187e57 | AC | 6000 |
xx:xx:xx:xx:xx:xx | 132338 | -41 | 192.168.0.xx | Ph | AC | 135000 |
I hope that it is enough? If not please let me know I can update you
Here is the submitted information to try and get support added for one more Ubee device. Thank you!
pyubee -m DVW32CB 192.168.0.1 admin "XXXXXXXXXX"
No connected devices found
Auto-detect the model
1 0 http://192.168.0.1:80 urn:schemas-upnp-org:device:InternetGatewayDevice:1 Ubee DDW36C Ubee http://www.ubeeinteractive.com DDW36C DDW36C DDW36C http://www.ubeeinteractive.com (unimplemented) uuid:upnp-InternetGatewayDevice-1_0-XXXXXXXXXXXX (unimplemented) urn:schemas-upnp-org:service:Layer3Forwarding:1 urn:upnp-org:serviceId:L3Forwarding1 /Layer3Forwarding.xml /Layer3Forwarding /Layer3Forwarding urn:schemas-upnp-org:device:WANDevice:1 Ubee DDW36C Ubee http://www.ubeeinteractive.com DDW36C DDW36C DDW36C http://www.ubeeinteractive.com (unimplemented) uuid:upnp-WANDevice-1_0-XXXXXXXXXXXX (unimplemented) urn:schemas-upnp-org:service:WANCommonInterfaceConfig:1 urn:upnp-org:serviceId:WANCommonIFC1 /WANCommonInterfaceConfig.xml /WANCommonInterfaceConfig /WANCommonInterfaceConfig urn:schemas-upnp-org:device:WANConnectionDevice:1 Ubee DDW36C Ubee http://www.ubeeinteractive.com DDW36C DDW36C DDW36C http://www.ubeeinteractive.com (unimplemented) uuid:upnp-WANConnectionDevice-1_0-XXXXXXXXXXXX (unimplemented) urn:schemas-upnp-org:service:WANIPConnection:1 urn:upnp-org:serviceId:WANIPConn1 /WANIPConnection.xml /WANIPConnection /WANIPConnection /
Logging in
http://192.168.0.1/RgSwInfo.asp
<tr>
<td colspan="3">DHCP Clients</td>
</tr>
<tr>
<td>
<table style="font-family: Helvetica;font-size:14"><tr bgcolor=#9900FF><td>MAC Address</td><td>IP Address</td><td>Subnet Mask</td><td>Duration</td><td>Expires</td><td>Select</td></tr>
<tr bgcolor=#99CCFF><td>XX:XX:XX:XX:XX:XX</td><td>192.168.0.2</td><td>255.255.255.0</td><td>D:00 H:01 M:00 S:00</td><td>Wed Mar 04 11:21:17 2020
</td><td align=center><input type="radio" name="lease" onClick="selectedLease(1);"></td></tr>
<tr bgcolor=#9999CC><td>XX:XX:XX:XX:XX:XX</td><td>192.168.0.3</td><td>255.255.255.0</td><td>D:00 H:01 M:00 S:00</td><td>Wed Mar 04 11:29:58 2020
</td><td align=center><input type="radio" name="lease" onClick="selectedLease(2);"></td></tr>
<tr bgcolor=#99CCFF><td>XX:XX:XX:XX:XX:XX</td><td>192.168.0.5</td><td>255.255.255.0</td><td>D:00 H:01 M:00 S:00</td><td>Wed Mar 04 11:14:25 2020
</td><td align=center><input type="radio" name="lease" onClick="selectedLease(3);"></td></tr>
<tr bgcolor=#9999CC><td>XX:XX:XX:XX:XX:XX</td><td>192.168.0.6</td><td>255.255.255.0</td><td>D:00 H:01 M:00 S:00</td><td>Wed Mar 04 11:16:19 2020
</td><td align=center><input type="radio" name="lease" onClick="selectedLease(4);"></td></tr>
<tr bgcolor=#99CCFF><td>XX:XX:XX:XX:XX:XX</td><td>192.168.0.8</td><td>255.255.255.0</td><td>D:00 H:01 M:00 S:00</td><td>Wed Mar 04 11:28:04 2020
</td><td align=center><input type="radio" name="lease" onClick="selectedLease(5);"></td></tr>
<tr bgcolor=#9999CC><td>XX:XX:XX:XX:XX:XX</td><td>192.168.0.9</td><td>255.255.255.0</td><td>D:00 H:01 M:00 S:00</td><td>Wed Mar 04 10:54:34 2020
</td><td align=center><input type="radio" name="lease" onClick="selectedLease(6);"></td></tr>
<tr bgcolor=#99CCFF><td>XX:XX:XX:XX:XX:XX</td><td>192.168.0.12</td><td>255.255.255.0</td><td>D:00 H:01 M:00 S:00</td><td>Wed Mar 04 11:21:33 2020
</td><td align=center><input type="radio" name="lease" onClick="selectedLease(7);"></td></tr>
<tr bgcolor=#9999CC><td>XX:XX:XX:XX:XX:XX</td><td>192.168.0.29</td><td>255.255.255.0</td><td>D:-- H:-- M:-- S:--</td><td>*** STATIC IP ADDRESS **</td><td></td></tr>
</table>
<br>
<b>Current System Time:</b> Wed Mar 04 10:33:43 2020
</td>
</tr>
Going to that URL prompts me for the login. Cannot see source to the ASP link, unless I hit cancel and get unauthorized access message.
Logging out
http://192.168.0.1/logout.asp
Check if we are logged in
Invokes http://192.168.0.1/logout.asp
and I cannot see page source of dialog box.
Get the connected devices via LAN
<tr>
<td colspan="3">DHCP Clients</td>
</tr>
<tr>
<td>
<table style="font-family: Helvetica;font-size:14"><tr bgcolor=#9900FF><td>MAC Address</td><td>IP Address</td><td>Subnet Mask</td><td>Duration</td><td>Expires</td><td>Select</td></tr>
<tr bgcolor=#99CCFF><td>XX:XX:XX:XX:XX:XX</td><td>192.168.0.2</td><td>255.255.255.0</td><td>D:00 H:01 M:00 S:00</td><td>Wed Mar 04 11:51:18 2020
</td><td align=center><input type="radio" name="lease" onClick="selectedLease(1);"></td></tr>
<tr bgcolor=#9999CC><td>XX:XX:XX:XX:XX:XX</td><td>192.168.0.5</td><td>255.255.255.0</td><td>D:00 H:01 M:00 S:00</td><td>Wed Mar 04 11:44:27 2020
</td><td align=center><input type="radio" name="lease" onClick="selectedLease(2);"></td></tr>
<tr bgcolor=#99CCFF><td>XX:XX:XX:XX:XX:XX</td><td>192.168.0.6</td><td>255.255.255.0</td><td>D:00 H:01 M:00 S:00</td><td>Wed Mar 04 11:46:21 2020
</td><td align=center><input type="radio" name="lease" onClick="selectedLease(3);"></td></tr>
<tr bgcolor=#9999CC><td>XX:XX:XX:XX:XX:XX</td><td>192.168.0.8</td><td>255.255.255.0</td><td>D:00 H:01 M:00 S:00</td><td>Wed Mar 04 11:28:04 2020
</td><td align=center><input type="radio" name="lease" onClick="selectedLease(4);"></td></tr>
<tr bgcolor=#99CCFF><td>XX:XX:XX:XX:XX:XX</td><td>192.168.0.9</td><td>255.255.255.0</td><td>D:00 H:01 M:00 S:00</td><td>Wed Mar 04 11:35:07 2020
</td><td align=center><input type="radio" name="lease" onClick="selectedLease(5);"></td></tr>
<tr bgcolor=#9999CC><td>XX:XX:XX:XX:XX:XX</td><td>192.168.0.12</td><td>255.255.255.0</td><td>D:00 H:01 M:00 S:00</td><td>Wed Mar 04 11:51:34 2020
</td><td align=center><input type="radio" name="lease" onClick="selectedLease(6);"></td></tr>
<tr bgcolor=#99CCFF><td>XX:XX:XX:XX:XX:XX</td><td>192.168.0.29</td><td>255.255.255.0</td><td>D:-- H:-- M:-- S:--</td><td>*** STATIC IP ADDRESS **</td><td></td></tr>
</table>
<br>
<b>Current System Time:</b> Wed Mar 04 10:53:18 2020
</td>
</tr>
Get the connected devices via WiFi
<table>
<tr valign="top">
<td align="right">Connected Clients</td>
<td>
<table>
<tr bgcolor=#fda506><td> MAC Address </td><td> Age(s) </td><td> RSSI(dBm) </td><td> IP Addr </td><td> Host Name </td><td>Mode</td><td>Speed (kbps)</td></tr><tr bgcolor=#99CCFF><td>XX:XX:XX:XX:XX:XX</td><td>11455</td><td>-57</td><td>192.168.0.8</td><td>IPhone</td><td>AC</td><td>27000</td></tr>
<tr bgcolor=#9999CC><td>XX:XX:XX:XX:XX:XX</td><td>27949</td><td>-57</td><td>192.168.0.6</td><td>Google-Home-Mini</td><td>AC</td><td>6500</td></tr>
</table>
</td>
</tr>
</table>
Ubee EVW321B is not working with device_tracker
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/homeassistant/components/device_tracker/__init__.py", line 170, in async_setup_platform
platform.get_scanner, hass, {DOMAIN: p_config})
File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/local/lib/python3.7/site-packages/homeassistant/components/ubee/device_tracker.py", line 34, in get_scanner
ubee = Ubee(host, username, password, model)
File "/usr/local/lib/python3.7/site-packages/pyubee/__init__.py", line 91, in __init__
raise LookupError('Unknown model')
LookupError: Unknown model
Would be great if we could support the DVW32CB model!
Is there a way to auto-detect the model? Perhaps there is a default URL which will always give something from which the model can be read, or there is a URL unique for each model which can be checked?
Hi All,
I have a UBC1318 modem and i like to use it with HA (device tracker) but the model is not yet supported. Could you please make it available.
Regards,
Pim
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.