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
3 people support this post
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'
11557 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 »

Vodafone New Zealand starts two year partnership with LetsPlay.Live
Posted 28-Jan-2020 11:24


Ring launches indoor-only security camera
Posted 23-Jan-2020 17:26


New report findings will help schools implement the digital technologies curriculum content
Posted 23-Jan-2020 17:25


N4L to upgrade & support wireless internet inside schools
Posted 23-Jan-2020 17:22


Netflix releases 21 Studio Ghibli works
Posted 22-Jan-2020 11:42


Vodafone integrates eSIM into device and wearable roadmap
Posted 17-Jan-2020 09:45


Do you need this camera app? Group investigates privacy implications
Posted 16-Jan-2020 03:30


JBL launches headphones range designed for gaming
Posted 13-Jan-2020 09:59


Withings introduces ScanWatch wearable combining ECG and sleep apnea detection
Posted 9-Jan-2020 18:34


NZ Police releases public app
Posted 8-Jan-2020 11:43


Suunto 7 combine sports and smart features on new smartwatch generation
Posted 7-Jan-2020 16:06


Intel brings innovation with technology spanning the cloud, network, edge and PC
Posted 7-Jan-2020 15:54


AMD announces high performance desktop and ultrathin laptop processors
Posted 7-Jan-2020 15:42


AMD unveils four new desktop and mobile GPUs including AMD Radeon RX 5600
Posted 7-Jan-2020 15:32


Consolidation in video streaming market with Spark selling Lightbox to Sky
Posted 19-Dec-2019 09:09



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.