Node Permanently Moved

    our-stop-server

    0.2.0 • Public • Published

    stop-server

    Shut down your computer with your phone 📱 (works on OS X, Linux and Windows), and execute .bat file from your path

    Install

    npm install -g our-stop-server
    our-stop-server start # Need to be done only once 

    Usage

    Visit http://your-local-ip:5708 on your phone. You should see this page:

    Important if you're on OS X or Linux, you need to allow commands to be used without sudo:

    # Run 'sudo visudo' and add 
    your-username ALL=NOPASSWD: /sbin/shutdown       # OS X and Linux 
    your-username ALL=NOPASSWD: /usr/sbin/pm-suspend # Linux only 

    Tip for easier access, you can get a QR code by going to http://localhost:5708/qr.html from your computer

    Uninstall

    npm rm -g our-stop-server
    

    How it works?

    our-stop-server is a simple Express server with only 2 routes:

    POST http://your-local-ip:5708/power-off
    POST http://your-local-ip:5708/sleep
    GET  http://your-local-ip:5708/open?path=your-path
    

    License

    MIT

    Install

    npm i our-stop-server

    DownloadsWeekly Downloads

    0

    Version

    0.2.0

    License

    MIT

    Unpacked Size

    11 kB

    Total Files

    10

    Last publish

    Collaborators

    • pisuto