Web Interfaces - deusrex2k/Creality-K2Plus-Extracted-Firmwares GitHub Wiki
Known web interfaces
- Fluid: http://printerip:4408
- Camera: http://printerip:8000
- Websocket: http://printerip:9999
- Web server: http://printerip/downloads/ (See below)
Websocket
The printer communicates with Creality Print over port 9999. This is used to send data like current nozzle position, current file printing, and materials loaded. Basically, you can use this to get all the information you can see when you view your Device in Creality Print. You can also send some data to the printer, such as update the color of any non-RFID filament loaded.
You can use Wireshark to monitor the traffic between Creality Print on your computer to the printer to see what capabilities it has. For example, you can see that when you update the filament color in Creality Print, this command is sent over the Websocket connection:
{"method":"set","params":{"modifyMaterial":{"id":0,"boxId":0,"rfid":"","type":"PLA","vendor":"Creality","name":"Ender-PLA","color":"#06c84ff","minTemp":190.0,"maxTemp":240.0,"pressure":0.04}}}
This command will return the materials currently loaded into the CFS:
{"method":"get","params":{"boxsInfo":1,"boxConfig":{}}}
Webserver
The printer has a basic webserver that it uses to supply some images and json files to Creality Print that wouldn't make sense to send over the Websocket connection.
The files are linked in: /usr/share/frontend/downloads/
- downloads/defData
- Location on disk: /etc/sysConfig/defData/
- Files:
- Auto_Em.gcode
- file_preview.png
- Auto_pressure_advance_multi.gcode
- file_print_photo.png
- Auto_pressure_advance_testpadvance.gcode
- folder_icon.png
- Auto_pressure_advance_testpadvance_product_test.gcode
- laser_offset_correction.gcode
- SourceHanSansCN-Normal.otf
- laser_offset_correction_0.2mm.gcode
- auto_laser_test.gcode
- laser_test_line.gcode
- error_code_map.json
- line_width_height.gcode
- file_icon.png
- material_database.json
- downloads/humbnail (Yes, it's missing the T in Thumbnail)
- Location on disk: /tmp/creality/local_gcode/humbnail/
- Files: Contains [t]humbnail images of all gcode files loaded on the printer
- downloads/original
- Location on disk: /tmp/creality/original/
- Files: current_print_image.png
- Full size image of current (or last) item printing
- downloads/video
- Location on disk: /mnt/UDISK/creality/userdata/delay_image/video/
- Files: Contains all the timelapse videos