예제 #1
0
파일: models.py 프로젝트: sug4rok/Servus
 def set_command(self):
     cmd = 'ds18d20:%d' % (self.controller_pin,)
     set_command(self, cmd)
예제 #2
0
파일: models.py 프로젝트: sug4rok/Servus
 def set_command(self):
     cmd = "bh1750:\n"
     set_command(self, cmd)
예제 #3
0
 def set_command(self):
     cmd = 'bmp:%d\n' % self.height_sealevel
     set_command(self, cmd)
예제 #4
0
파일: models.py 프로젝트: sug4rok/Servus
 def set_command(self):
     cmd = '%s:%d' % (self.type, self.controller_pin)
     set_command(self, cmd)
예제 #5
0
 def set_command(self):
     cmd = 'sw_state:%d\n' % self.controller_pin
     set_command(self, cmd)
예제 #6
0
파일: models.py 프로젝트: sug4rok/Servus
 def set_command(self):
     cmd = 'bh1750:'
     set_command(self, cmd)
예제 #7
0
 def set_command(self):
     cmd = 'rain:%d\n' % self.controller_pin
     set_command(self, cmd)