- 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:
Manuel83
2017-09-24 15:10:45 +02:00
parent 42ed9f02af
commit 813b2f0035
22 changed files with 354 additions and 139 deletions
-1
View File
@@ -26,7 +26,6 @@ class Dummy(Actor):
@cbpi.addon.kettle.controller()
class MyController(KettleController):
def run(self):
while self.is_running():
print "HALLO"
+12 -1
View File
@@ -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")
+4
View File
@@ -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):