Sponsored Links

Advantages of APIs on Huawei lte routers

Lucian

ULTIMATE Member
Just stumbled upon this script:

You can use it to send SMS from bash.

It's awesome Huawei have opened up this API, as you can use it to send yourself messages in various scenarios.

In this case I need to alert someone should something in a server crash, so I'm basically just doing the following in a loop:
ssh $host $command || sendsms.sh

Super frickin handy. Not sure I could live without this from now on. :)
I know there are all sorts of services for SMS with APIs etc, but I don't want to sign up to yet another subscription, doing it like this DIY is great.
 

Attachments

Would be very useful for me... If my PC had wifi or was in the same room as the router but no, my pc is stuck with our good old bt line XD
 
Get a USB WIFI dongle, they're super cheap.
It doesn't have to be fast, you just need to get to the router somehow.
 
Sponsored Links
I'm using python's huawei-lte-api on my server to pull all sorts of statistics from the router (for MRTG graphs), reboot it remotely or turn the internet connection on or off. Very useful library.


Darsh
 
Top
Cheap BIG ISPs for 100Mbps+
Community Fibre UK ISP Logo
150Mbps
Gift: None
Virgin Media UK ISP Logo
Virgin Media £22.99
132Mbps
Gift: None
Vodafone UK ISP Logo
Vodafone £24.00 - 26.00
150Mbps
Gift: None
NOW UK ISP Logo
NOW £24.00
100Mbps
Gift: None
Plusnet UK ISP Logo
Plusnet £25.99
145Mbps
Gift: £50 Reward Card
Large Availability | View All
Cheapest ISPs for 100Mbps+
Gigaclear UK ISP Logo
Gigaclear £17.00
200Mbps
Gift: None
Community Fibre UK ISP Logo
150Mbps
Gift: None
Virgin Media UK ISP Logo
Virgin Media £22.99
132Mbps
Gift: None
Hey! Broadband UK ISP Logo
150Mbps
Gift: None
Youfibre UK ISP Logo
Youfibre £23.99
150Mbps
Gift: None
Large Availability | View All
Sponsored Links
The Top 15 Category Tags
  1. FTTP (6027)
  2. BT (3639)
  3. Politics (2721)
  4. Business (2440)
  5. Openreach (2405)
  6. Building Digital UK (2330)
  7. Mobile Broadband (2146)
  8. FTTC (2083)
  9. Statistics (1901)
  10. 4G (1816)
  11. Virgin Media (1764)
  12. Ofcom Regulation (1582)
  13. Fibre Optic (1467)
  14. Wireless Internet (1462)
  15. 5G (1407)
Sponsored

Copyright © 1999 to Present - ISPreview.co.uk - All Rights Reserved - Terms  ,  Privacy and Cookie Policy  ,  Links  ,  Website Rules