Installation - cast-web-api

I want a graphical user interface

Download the latest version of cast-web-api-desktop from here. Click on assets and select .exe for windows, .dmg for mac and appimage for linux. If you're on a raspberry pi, select the arm appimage.

Install the application like any other app on your system.

Windows: The application is not code signed, your system might warn you about the application, try to install the app anyway. Also sometimes the api will not start on the first try. Just close the window, right click on the taskbar icon > open and try to start it again.

macOS: Since the application is not code signed, you need to overwrite gatekeeper.


I want to use the command line

Windows

cast-web-api installation - Windows
Please accept cookies by YouTube to play this video. By accepting you will be accessing a service provided by a third party external to cast-web.

Should you encounter any node-gyp errors, try adding --unsafe-perm to command 3! More info

  1. Download and install node.js (Windows Installer)
  2. Open the node.js command prompt
  3. run npm install cast-web-api-cli -g
  4. see command line usage info by running cast-web-api-cli 
  5. start the api by running `cast-web-api-cli start`

After a couple of seconds you should see the api's address in the address column. 

The api is now running and will restart itself on failure, however not on reboot. Do this to start the api on system boot.

  1. Open the node.js command prompt
  2. run cast-web-api-cli upstart
  3. follow the instructions on screen

Done! You can now copy the address and use it. You can now cloase the command line, cast-web-api will keep on running and start on system boot.


Previous Next


macOS

cast-web-api installation - macOS
Please accept cookies by YouTube to play this video. By accepting you will be accessing a service provided by a third party external to cast-web.

Should you encounter any node-gyp errors, try adding --unsafe-perm to command 3! More info

  1. Download and install node.js (macOS installer)
  2. Open the terminal
  3. run npm install cast-web-api-cli -g 
  4. see command line usage info by running cast-web-api-cli 
  5. start the api by running cast-web-api-cli start

After a couple of seconds you should see the api's address in the address column. 

The api will restart itself on failure, however not on reboot. Do this to start the api on reboot.


  1. Open the terminal
  2. run cast-web-api-cli upstart
  3. follow the instructions on screen

Done! You can now copy the address and use it. You can now cloase the command line, cast-web-api will keep on running and start on system boot.

  • Start: forever start `which cast-web-api`
  • Stop: forever stop `which cast-web-api`
  • Check if it's running forever list

Previous Next

Android

cast-web-api installation - Android
Please accept cookies by YouTube to play this video. By accepting you will be accessing a service provided by a third party external to cast-web.
  1. From the Play Store install 'Dory - node.js / javascript' and open it
  2. Three dot menu > git clone 
  3. Paste the repository url in to the repository text file https://github.com/vervallsweg/cast-web-api.git
  4. Select a directory (remember it) and hit ok
  5. Tap '+' > 'Add Directory (package.json's main)' > select your download location > 'Select Directory'
  6. Tap 'open' > Three dot menu > npm install
  7. Scroll down, wait for the install to finish > press the back button
  8. Tap 'START' > 'STD OUT' and wait for the API to tell you it's address.

Done! 'START' for start, 'STOP' for stop and 'STD OUT' to see the API's output.


Previous Next

Linux

Install node.js for the version of Linux you're running. Then just follow the macOS instructions.

Previous Next