generate interface

see http://www.bracercom.com/tutorial/content/CoherentLCARSInterface/LCARSCoherentInterface.html

fp_LCARSswitch.svg
fp_LCARSswitchClean.svg
fp_LCARSmedia.svg
fp_LCARSheat.svg

Basic Colors

#ff9900 #################
#cb99cc ################
#9999cc ################
#cc6666 ################
#ffcc99 #################
#9999ff #################
#ff9966 #################
#cc6699 ################
#f7c64a ################

generate icons

master.svg
config.svg
WindowBathroomClosed.svg
WindowBathroomOpen.svg

/tmp/genpics.sh:

 #!/bin/bash for i in "17 C" "25 C" fnordlicht balcony boblight ceiling coffee "ikea lamp" lock unlock monitor "xmas star" do echo $i file=$(echo ${i} | tr -d " ").svg sed "s/MASTER/${i^^}/" master.svg > "${file}" done for i in save learn do echo $i file=$(echo ${i} | tr -d " ").svg sed "s/CONFIG/${i^^}/" config.svg > "${file}" done
attr WEB stylesheetPrefix lcars

lcarssvg_style.css

lcarsstyle.css

lcarsfloorplanstyle.css

lcarsCommon.css

lcarssvg_defs.svg

lcars icons

attr Fnordlicht devStateIcon on*:fnordlicht@FFCC9A:off off*:fnordlicht@CC6699:on

define LCARSheatLink weblink htmlCode { '<A ref="/fhem/floorplan/LCARSheat"><img src="/fhem/images/LCARSgeneral/heat_off.svg"></a>'}

weather
MyWeather

define MyWeather Weather 12836622 define MyWeatherWebLink weblink htmlCode { WeatherAsHtmlD("MyWeather") } attr MyWeatherWebLink room Outside,Licht define FL_MyWeather FileLog ./log/wetter-%Y-%m.log MyWeather attr FL_MyWeather logtype text attr FL_MyWeather room System

define SVG_FL_MyWeather_2 SVG FL_MyWeather:SVG_FL_MyWeather_2:CURRENT attr SVG_FL_MyWeather_2 plotsize 600,160

gplot:

Created by FHEM/98_SVG.pm, 2014-11-18 00:56:55 set terminal png transparent size <SIZE> crop set output '<OUT>.png' set xdata time set timefmt "%Y-%m-%d_%H:%M:%S" set xlabel " " set title '' set ytics set y2tics set grid set ylabel "Humidity" set y2label "Temperature" #FileLog 4:MyWeather.temperature\x3a:: #FileLog 4:MyWeather.humidity\x3a:: plot "<IN>" using 1:2 axes x1y2 title 'Temperature' ls l2fill lw 1 lc 2 with lines,\ "<IN>" using 1:2 axes x1y1 title 'Humidity' ls l3fill lw 1 lc 1 with lines
darksvg_defs.svg:

stop-color:#f90

homematic learn

define Learn dummy attr Learn devStateIcon on:learn@FFCC9A off:learn@CC6699:on attr Learn setList off on define LearnOn notify Learn:on set HMLAN1 hmPairForSec 600;;sleep 600;;set Learn off

boblight

define boblight dummy attr boblight devStateIcon on:boblight@FFCC9A off:boblight@CC6699:on attr boblight fp_LCARSmedia 585,390,0, attr boblight setList off on define boblightOn notify boblight:on "/usr/bin/boblight-constant -p 32 -f -s 192.168.1.159 FF3000 >/dev/null 2>&1" define boblightOff notify boblight:off "killall boblight-constant"

doorlocks

attr DoorlockLock devStateIcon on:lock@FFCC9A off:lock@CC6699:on attr DoorlockLock setList off on define DoorlockOpen dummy attr DoorlockOpen devStateIcon on:unlock@FFCC9A off:unlock@CC6699:on attr DoorlockOpen setList off on define DoorlockLockClose notify DoorlockLock:on set Doorlock lock;;sleep 5;;set DoorlockLock off define DoorlockLockOpen notify DoorlockOpen:on set Doorlock open;;sleep 5;;set DoorlockOpen off

screenshots

LCARS1

LCARS2

LCARS3

fhem lcars interface