mirror of
https://github.com/Manuel83/craftbeerpi3
synced 2026-08-10 02:55:27 +02:00
- Login Added. Default Password is „beer“
- Several UI Adjustments - still work in progress - New API Method to add custom JavaScript to CraftBeerPi - Global Action Buttons added - Register new Web Modules for complete custom UI
This commit is contained in:
@@ -26,7 +26,6 @@ class Dummy(Actor):
|
||||
@cbpi.addon.kettle.controller()
|
||||
class MyController(KettleController):
|
||||
|
||||
|
||||
def run(self):
|
||||
while self.is_running():
|
||||
print "HALLO"
|
||||
|
||||
@@ -1,4 +1,8 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
import os
|
||||
|
||||
from os.path import join
|
||||
|
||||
from modules.core.basetypes import Actor, Sensor
|
||||
from modules.core.core import cbpi
|
||||
from modules.core.proptypes import Property
|
||||
@@ -33,4 +37,11 @@ class Dummy(Sensor):
|
||||
@cbpi.addon.core.action(key="clear", label="Clear all Logs")
|
||||
def woohoo(cbpi):
|
||||
print "COOL"
|
||||
cbpi.notify(headline="HELLO WORLD",message="")
|
||||
dir = "./logs"
|
||||
test = os.listdir(dir)
|
||||
|
||||
for item in test:
|
||||
|
||||
if item.endswith(".log"):
|
||||
os.remove(join(dir, item))
|
||||
cbpi.notify(headline="Logs Deleted",message="All Logs Cleared")
|
||||
|
||||
@@ -7,6 +7,10 @@ from modules.core.proptypes import Property
|
||||
class Dummy(Step):
|
||||
|
||||
|
||||
@cbpi.addon.step.action("WOHOO")
|
||||
def myaction(self):
|
||||
print "HALLO"
|
||||
|
||||
text = Property.Text(label="Text", configurable=True, description="WOHOOO")
|
||||
|
||||
def execute(self):
|
||||
|
||||
Reference in New Issue
Block a user