Don't have a runout sensor? Can't install one? Then RunoutAnywhere is for you! Simply print the case, solder a microswitch to a microcontroller and you're done. See the video here on how this works.
The RunoutAnywhere project is a Universal Wifi Filament Runout Sensor that works with OctroPrint. When it detects filament runout it sends an API call to OctoPrint to pause your printer. It costs about $5 to build one.
This project was designed to be very simple to build, low cost and an easy beginner project. Once you solder the switch directly to the board you will need to configure the software with your OctoPrint URL and API Key. After it is configured simply burn it to the board and you are ready to go. Can easily be completed in an hour or less (once the model is printed).
The case was designed so you can zip tie it. The nice advantage to that is if you have multiple printers you can swap the runout sensor as needed without having one for each printer.
WeMos style ESP8266 Board I used
https://amzn.to/2Icmmuf
Limit Switches Used
https://amzn.to/2JP54H1
Source Code For WeMos
https://bitbucket.org/rwmech/runoutanywhere/
Filament I used to print this in
https://amzn.to/311fQzk
The author marked this model as their own original creation. Imported from Thingiverse.