User Tools

Site Tools


3dprinter:octoprint

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
3dprinter:octoprint [2023/05/15 02:03] Wulf Rajek3dprinter:octoprint [2023/05/29 11:55] (current) – external edit 127.0.0.1
Line 168: Line 168:
 # Optional: Keep socket open for multiple commands # Optional: Keep socket open for multiple commands
 d.set_socketPersistent(True) d.set_socketPersistent(True)
-d.set_socketNODELAY(True) +#d.set_socketNODELAY(True) 
-d.set_sendWait(0)+#d.set_sendWait(0)
  
 # Get Status as dictionary # Get Status as dictionary
Line 185: Line 185:
 for key, value in olddps.items(): for key, value in olddps.items():
     # print('%s : %s' % (key, value))     # print('%s : %s' % (key, value))
 +    if key == 1:
 +        continue
     d.set_value(key, value)     d.set_value(key, value)
 +d.set_value(1, olddps['1'])
  
 # 'dps': {'1': True, '2': 'colour', '3': 135, '4': 255, '5': '301f000027ff2f', '6': 'cf38000168ffff', '7': 'ffff500100ff00', '8': 'ffff8003ff000000ff000000ff000000000000000000', '9': 'ffff5001ff0000', '10': 'ffff0505ff000000ff00ffff00ff00ff0000ff000000'}} # 'dps': {'1': True, '2': 'colour', '3': 135, '4': 255, '5': '301f000027ff2f', '6': 'cf38000168ffff', '7': 'ffff500100ff00', '8': 'ffff8003ff000000ff000000ff000000000000000000', '9': 'ffff5001ff0000', '10': 'ffff0505ff000000ff00ffff00ff00ff0000ff000000'}}
 # Wulf Default: # Wulf Default:
-d.set_value(1, olddps['1']) 
 d.set_value(2, "colour") d.set_value(2, "colour")
 d.set_value(3, 135) d.set_value(3, 135)
Line 199: Line 201:
 d.set_value(9, 'ffff5001ff0000') d.set_value(9, 'ffff5001ff0000')
 d.set_value(10, 'ffff0505ff000000ff00ffff00ff00ff0000ff000000') d.set_value(10, 'ffff0505ff000000ff00ffff00ff00ff0000ff000000')
 +d.set_mode(mode='colour'      # white, colour, scene, music
 +d.set_value(1, olddps['1'])
  
 time.sleep(10) time.sleep(10)
Line 219: Line 223:
  
 ====== motion webcam ====== ====== motion webcam ======
 +
 +https://motion-project.github.io/motion_config.html
 +https://forums.raspberrypi.com/viewtopic.php?t=324883
  
 <code> <code>
3dprinter/octoprint.1684112632.txt.gz · Last modified: 2023/05/29 11:53 (external edit)