Geekzone: technology news, blogs, forums
Guest
Welcome Guest.
You haven't logged in yet. If you don't have an account you can register now.




60 posts

Master Geek


#222894 2-Sep-2017 14:34
Send private message

I've been finding recently that I've have to routinely reboot my Huawei B315 fixed wireless modem/router, in order to get any reasonable performance out of it. By routinely I mean every 1-2 days.

 

Anyway, I got tired of doing it manually via a web browser, so I wrote a PhantomJS script to automate the reboot. The script logs onto the web UI, and clicks through the reboot process.

 

PhantomJS itself doesn't require much in the way of external dependencies, and runs headless in a CLI. Given that, it can be scheduled to run in a cron job every night, or whatever.

 

 

 

I'm sharing it here in case anyone else wants an example (my JS is pretty rough btw, not my preferred scripting language):

 

https://gist.github.com/jonathanhoskin/0bc11f55d0ec926c0a457d4110b1f46f

 

 

 

PhantomJS:

 

http://phantomjs.org/download.html

 

 

 

Feel free to get in touch if you have any questions :-)

 

 


Create new topic
'That VDSL Cat'
12329 posts

Uber Geek

Trusted
Spark
Subscriber

  #1857243 2-Sep-2017 17:18
Send private message

Simple approach to it, nicely done! 





#include <std_disclaimer>

 

Any comments made are personal opinion and do not reflect directly on the position my current or past employers may have.

 




60 posts

Master Geek


  #1857340 2-Sep-2017 19:56
Send private message

hio77:

 

Simple approach to it, nicely done! 

 

 

Thanks!


 
 
 
 


1 post

Wannabe Geek


  #2285290 29-Jul-2019 16:30
Send private message

Thanks for the code to reboot the router.  Can I ask if you are still having to reboot your router upwards of 2 years later.  I would have hoped there would be an updated firmware to fix this issue by now.




60 posts

Master Geek


  #2285320 29-Jul-2019 18:37
Send private message

mikeifm:

 

Can I ask if you are still having to reboot your router upwards of 2 years later.

 

 

 

 

I abandoned fixed 4G towards the end of last year, Spark's network was so congested that DSL became a better option again. I've reverted back to 10/1 VDSL, which has worse upload speeds than 4G, but gets much more consistent download speeds.

 

 


Create new topic





Twitter and LinkedIn »



Follow us to receive Twitter updates when new discussions are posted in our forums:



Follow us to receive Twitter updates when news items and blogs are posted in our frontpage:



Follow us to receive Twitter updates when tech item prices are listed in our price comparison site:





News »

National Institute for Health Innovation develops treatment app for gambling
Posted 6-Jul-2020 16:25


Nokia 2.3 to be available in New Zealand
Posted 6-Jul-2020 12:30


Menulog change colours as parent company merges with Dutch food delivery service
Posted 2-Jul-2020 07:53


Techweek2020 goes digital to make it easier for Kiwis to connect and learn
Posted 2-Jul-2020 07:48


Catalyst Cloud launches new Solutions Hub to support their kiwi Partners and Customers
Posted 2-Jul-2020 07:44


Microsoft to help New Zealand job seekers acquire new digital skills needed for the COVID-19 economy
Posted 2-Jul-2020 07:41


Hewlett Packard Enterprise introduces new HPE GreenLake cloud services
Posted 24-Jun-2020 08:07


New cloud data protection services from Hewlett Packard Enterprise
Posted 24-Jun-2020 07:58


Hewlett Packard Enterprise unveils HPE Ezmeral, new software portfolio and brand
Posted 24-Jun-2020 07:10


Apple reveals new developer technologies to foster the next generation of apps
Posted 23-Jun-2020 15:30


Poly introduces solutions for Microsoft Teams Rooms
Posted 23-Jun-2020 15:14


Lenovo launches new ThinkPad P Series mobile workstations
Posted 23-Jun-2020 09:17


Lenovo brings Linux certification to ThinkPad and ThinkStation Workstation portfolio
Posted 23-Jun-2020 08:56


Apple introduces new features for iPhone iOS14 and iPadOS 14
Posted 23-Jun-2020 08:28


Apple announces Mac transition to Apple silicon
Posted 23-Jun-2020 08:18



Geekzone Live »

Try automatic live updates from Geekzone directly in your browser, without refreshing the page, with Geekzone Live now.


Support Geekzone »

Our community of supporters help make Geekzone possible. Click the button below to join them.

Support Geezone on PressPatron



Are you subscribed to our RSS feed? You can download the latest headlines and summaries from our stories directly to your computer or smartphone by using a feed reader.

Alternatively, you can receive a daily email with Geekzone updates.