Printrun/dot.pronsolerc.example
Markus Hitter 24e2fa936c Remove the "loud" macro from the .pronsolerc example.
As this is now part of the standard interface, it's pointless
to list it as possible extension code.
2012-08-13 16:36:43 +02:00

16 lines
569 B
Text

# Sample .pronsolerc file - copy this into your home directory and rename it to .pronsolerc
!print "Loaded " + self.rc_filename
macro fan
!global _fan
!if '_fan' in globals() and _fan:
!_fan = 0
M107
!if hasattr(self,"cur_button") and self.cur_button is not None:
!self.onecmd('button %d "fan (off)" /c green fan' % self.cur_button)
!else:
!_fan = 1
M106
!if hasattr(self,"cur_button") and self.cur_button is not None:
!self.onecmd('button %d "fan (on)" /c yellow fan' % self.cur_button)
button 0 "fan (off)" /c "green" fan