- Order by phone: 0800 033 8006
- Blog
- Coverage checker
- Store locator
11-08-2025 04:30 PM - edited 11-08-2025 04:52 PM
Solved! Go to Solution.
14-09-2025 09:23 PM - edited 14-09-2025 09:32 PM
I have posted V2 of Inquire Hub on GitHub
Changes include:
Updated samples for V2
Display Hub Status
python ./inquirehub.py -p password -f
Selected data query_count=11 runtime=0.7654827999940608
{'QueryTime': '2025-09-14 15:00:23',
'SignalScore': '75',
'Signal5G': '75',
'Signal4G': '36',
'WAN_Address': '188.29.246.174',
'WAN_Gateway': '188.29.246.172',
'WAN_Uptime': '4days 19hours 5mins',
'LastClearTime': '00:00:00',
'CurrentVolume': '43.860GB',
'CurrentVolumeDuration': '4 days 19 hours 6 mins',
'MonthlyDataUsage': '46.744GB',
'MonthlyDataUsageDuration': '5 days 4 hours 37 mins',
'TotalDataUsage': '46.744GB',
'TotalDataUsageDuration': '5 days 4 hours 37 mins',
'RunningTime': '4days 19hours 6mins',
'SoftwareVersion': '130.00100.113.024',
'PortMode': 'IP Passthrough',
'Status': 'Connected',
'Operator': '3 UK',
'WorkMode': 'NSA',
'Band': '78',
'CellId': '00',
'ECellId': '000CC5800',
'RSRP': '-102',
'RSRQ': '-11',
'SINR': '20',
'TR069ServiceEnable': 'Disable',
'PeriodicInformEnable': 'Disable',
'PeriodicInformTime': '2025-09-09T19:54:45Z',
'PeriodicInformInterval': 3600,
'ConnectionRequestUsername': '',
'SMS_In': 0,
'Unread_SMS': 0,
'SMS_Out': 0,
'Unsent_SMS': 0,
'Ipv4': '188.29.246.174',
'Ipv6': '',
'LeaseTime': '09-15-2025 09:21:58'}Command Help
python ./inquirehub.py -h
usage: inquirehub.py [-h] (-f [CSVFILE] | -nof | -l [LOGPATH] | -c [CONFIGPATH] | -pi [PINGURL] | -rs | --reboot) [-u USERID]
[-p PASSWORD] [-url URL] [-hdr | -nohdr] [-v | -q]
Retrieve data from Y5-210MU 5G Hub, VERSION='2.0'
options:
-h, --help show this help message and exit
Functions:
-f, --CSVfile [CSVFILE]
Inquire and write CSV file, default=./InquireHub.csv
-nof, --noCSVfile Inquire and Don't write CSV file
-l, --log [LOGPATH] Save logs to logpath, default= ./
-c, --config [CONFIGPATH]
Save Configuration to configpath, default=./
-pi, -ping, --ping [PINGURL]
Ping URL from hub, default=www.google.com
-rs, --resetStats Reset traffic interval statistics
--reboot Reboot hub
Options:
-u, --userid USERID Hub userid, default=admin
-p, --password PASSWORD
Hub user password
-url URL Router URL, default=https://192.168.0.1
-hdr, --header Write CSV header line, Default= header if file preexists, noHeader if it doesnt
-nohdr, --noHeader Don't write CSV header line
-v, --verbose Show full hub query output
-q, --quiet Hide query outputPing Website
Using the hub to ping a website eliminates any overheads or problems introduced by your local network
python ./inquirehub.py -p password -pi microsoft.com
Ping to microsoft.com at 2025-09-14 15:11:46
PING microsoft.com (13.107.246.64): 56 data bytes
64 bytes from 13.107.246.64: seq=0 ttl=48 time=12.150 ms
64 bytes from 13.107.246.64: seq=1 ttl=48 time=16.444 ms
64 bytes from 13.107.246.64: seq=2 ttl=48 time=21.602 ms
--- microsoft.com ping statistics ---
3 packets transmitted, 3 packets received, 0% packet loss
round-trip min/avg/max = 12.150/16.732/21.602 ms
on 03-09-2025 06:26 PM
By doing this manually I found that "The ampersand (&) character is not allowed. The & operator is reserved for future use; wrap an ampersand in double
quotation marks ("&") to pass it as part of a string"
By removing the ampersand from my password the scrip work beautifully thanks Bob.
One question though, My WAN_Uptime time correctly shows 5 minutes as I've just carried out a reboot wanting to prove precisely what is stopping the issues for me at least, but my 'CurrentVolumeDuration': shows '3 days 4 hours 31 mins', which corresponds to system information running time - why is this not reset with a reboot?
on 03-09-2025 06:39 PM
Forget the question on the Current Volume Duration - The hub has rebooted correctly and is now showing the correct time
on 03-09-2025 05:32 PM
Just to add I'm very grateful for your assistance
on 11-08-2025 04:41 PM
Display Hub status
python InquireHub.py -p password
Selected data query_count=8 runtime=0.9514778999146074
{'QueryTime': '2025-08-07 20:26:43.698527',
'SignalScore': '75',
'Signal5G': '75',
'Signal4G': '24',
'WAN_Address': '92.41.161.92',
'WAN_Gateway': '92.41.161.94',
'WAN_Uptime': '22hours 48mins',
'CurrentVolume': '16.091GB',
'CurrentVolumeDuration': '22 hours 49 mins',
'MonthlyDataUsage': '16.091GB',
'MonthlyDataUsageDuration': '22 hours 49 mins',
'TotalDataUsage': '16.091GB',
'TotalDataUsageDuration': '22 hours 49 mins',
'RunningTime': '22hours 49mins',
'SoftwareVersion': '130.00100.113.024',
'PortMode': 'IP Passthrough',
'SMS_In': 2,
'Unread_SMS': 1,
'SMS_Out': 1,
'Unsent_SMS': 0,
'Ipv4': '92.41.161.92',
'Ipv6': '',
'LeaseTime': '08-08-2025 18:16:06'}Display command help text
python InquireHub.py -h
usage: InquireHub.py [-h] [-u USERID] [-p PASSWORD] [-url URL] [-f CSVFILE | -nof | --reboot | -l [LOGPATH] |
-c [CONFIGPATH]] [-hdr | -nohdr] [-v | -q]
Retrieve data from Y5-210MU 5G Hub, VERSION='1.0'
options:
-h, --help show this help message and exit
-u, --userid USERID Hub userid, default=admin
-p, --password PASSWORD
Hub user password
-url URL Router URL, default=https://192.168.0.1
-f, --CSVfile CSVFILE
File for csv output, default=./InquireHub.csv
-nof, --noCSVfile Don't write CSV output file
--reboot Reboot hub
-l, --log [LOGPATH] Save logs to logpath, default= ./
-c, --config [CONFIGPATH]
Save Configuration to configpath, default=./
-hdr, --header Write CSV header line, Default= header if file preexists, noHeader if it doesnt
-nohdr, --noHeader Don't write CSV header line
-v, --verbose Show full hub query output
-q, --quiet Hide query output