Giter VIP home page Giter VIP logo

pyubee's People

Contributors

carbolymer avatar jussihi avatar karrukola avatar mzdrale avatar sasa-buklijas avatar seanvictory avatar stevenlooman avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

pyubee's Issues

requests package needed but not added as dependency

$ 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.

Support for Ubee Interactive Corp. EVW327N

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">
										&nbsp;
									</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 AddressIP AddressDurationExpires
xx:xx:xx:xx:xx:xx192.168.0.xxD:00 H:01 M:00 S:00Wed Apr 01 09:31:53 2020
xx:xx:xx:xx:xx:xx192.168.0.xxD:00 H:01 M:00 S:00Wed Apr 01 09:52:21 2020
`

I have two bands 2.4 and 5 GHz so I am posting results for both

Get the connected devices via WiFi 2.4GHz

`


 MAC Address  Age(s)  RSSI(dBm)  IP Addr  Host Name ModeSpeed (kbps)
xx:xx:xx:xx:xx:xx3177-46192.168.0.xxHP20522408e7fd2749n144444
xx:xx:xx:xx:xx:xx4115-69192.168.0.xxGJ-xn24000
xx:xx:xx:xx:xx:xx8825-49192.168.0.xxBnn144444
xx:xx:xx:xx:xx:xx265971-43192.168.0.xxStatic IPn6000
`

Get the connected devices via WiFi 5GHz

`


 MAC Address  Age(s)  RSSI(dBm)  IP Addr  Host Name ModeSpeed (kbps)
xx:xx:xx:xx:xx:xx1931-49192.168.0.xxNBAC400000
xx:xx:xx:xx:xx:xx2344-63192.168.0.xxHP30P51f4187e57AC6000
xx:xx:xx:xx:xx:xx132338-41192.168.0.xxPhAC135000
`

I hope that it is enough? If not please let me know I can update you

DDW36C Not supported

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

ubee

 

						<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>&nbsp;MAC Address&nbsp;</td><td>&nbsp;Age(s)&nbsp;</td><td>&nbsp;RSSI(dBm)&nbsp;</td><td>&nbsp;IP Addr&nbsp;</td><td>&nbsp;Host Name&nbsp;</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>

Not working Ubee EVW321B (Ziggo NL)

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

Auto-detect the 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?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.