Anycubic 4MAX - WiFi On/Off Switch - Controller Cover - with Shelly1
thingiverse
Anycubic 4MAX WiFi On/Off Switch Controller Cover This Trigorilla Controller Cover includes a Adapter for the Shelly 1, an Open Source ESP8266 WiFi Based Relay Module. After Installation, you are able to remote Power ON/OFF your 4MAX. You can still switch the 4MAX with the Power Switch on it. #### How the Shelly 1 adapter works: Just put the Shelly into the Adapter and place is whole on the Cover and slide it to left or Right. Be sure that you remove all supports and cleaned the connection areas. Then connect shelly relay between the psu power source. Check the shelly documentation and also the screenshots. #### Installation: Check the Screenshots. If you have any Questions, feel free to ask. #### Printing Settings: Support: 85% Layer: Cover - 0.20 Adapter 0.15 (But your choice!) Infill: Cover - 60% Adpater - 100% Material: Doesn't matter. ------------ ###### Update - 2019-02-23 ### OctoPrint - How to Control with OctoPrint and G-Codes using PSU-Control PlugIn 1. Install the OctoPrint Plugin: [OctoPrint-PSUControl] 2. Install on the RaspberryPI the jq Package: ``` sudo apt install jq ``` 3. OctoPrint Settings - PSU Control Replace the <shelly_ip> with the IP address of your shelly device, e.g. 192.168.33.2. - Switching - On System Command To prevent unnecessary on/off, we will try to get the current switch state, then send the Power On message to Shelly. Copy and Paste this command to "On System Command": ``` if curl -s "http://<shelly_ip>/relay/0" | jq '.ison' | grep -q 'false'; then curl http://<shelly_ip>/relay/0?turn=on; echo "Device is switched ON"; else echo "Device is still ON"; fi ``` Optional: This command includes a additional OctoPrint trigger to connect with a delay of 10 seconds after Power ON. Don't forget to replace/set your OctoPrint API-Key. ``` if curl -s "http://11.11.0.27/relay/0" | jq '.ison' | grep -q 'false'; then curl http://11.11.0.27/relay/0?turn=on; echo "Device is switched ON"; sleep 10; curl -m 5 -k -H "X-Api-Key: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" -H "Content-Type: application/json" -d '{"command":"connect"}' http://localhost/api/connection; else echo "Device is still ON"; fi ``` - Switching - Off System Command To prevent unnecessary on/off, we will try to get the current switch state, then send the Power Off message to Shelly. Copy and Paste this command to "Off System Command": ``` if curl -s "http://<shelly_ip>/relay/0" | jq '.ison' | grep -q 'true'; then curl http://<shelly_ip>/relay/0?turn=off; echo "Device is switched OFF"; else echo "Device is still OFF"; fi ``` - Sensing - System Command The sensing command will detect when you manual switched the device direct with the button switch or over the application/web interface. Copy and Paste this to "Sensing System Command": ``` if curl -s "http://<shelly_ip>/relay/0" | jq '.ison' | grep -q 'true'; then exit 0; else exit 1; fi ``` Done. You are now able detect and Switch the 4MAX with OctoPrint. You can also switch it with G-Code commands. ------------ Big thanks goes to crusty05, who shares his cover mainboard 4max project file with me. [Shelly 1]: https://shelly.cloud/shelly1-open-source/ [id/name]: https://github.com/kantlivelong/OctoPrint-PSUControl [./jq]:https://stedolan.github.io/jq/
With this file you will be able to print Anycubic 4MAX - WiFi On/Off Switch - Controller Cover - with Shelly1 with your 3D printer. Click on the button and save the file on your computer to work, edit or customize your design. You can also find more 3D designs for printers on Anycubic 4MAX - WiFi On/Off Switch - Controller Cover - with Shelly1.