Skinable, rooms for webcam and weather. stream_socket_client
git-svn-id: https://fhem.svn.sourceforge.net/svnroot/fhem/trunk/fhem@540 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
@@ -76,7 +76,10 @@ setlocale (LC_ALL, 'de_DE.utf8');
|
||||
if ($type=="desired-temp:")
|
||||
{$desired_temp=$temp;$desired_date=$date;}
|
||||
if ($type=="actuator:")
|
||||
{
|
||||
if (trim($temp) != 'lime-protection')
|
||||
{$actuator=rtrim($temp);$actuator_date=$date;}
|
||||
}
|
||||
if ((($array[$x][14] != $oldmin) or ($array[$x][12] != $oldhour)) and ($type=="measured-temp:"))
|
||||
{
|
||||
$oldmin=$array[$x][14];
|
||||
@@ -94,8 +97,8 @@ setlocale (LC_ALL, 'de_DE.utf8');
|
||||
|
||||
$im = ImageCreateTrueColor($imgmaxxfht,$imgmaxyfht);
|
||||
$black = ImageColorAllocate($im, 0, 0, 0);
|
||||
$bg1p = ImageColorAllocate($im, 110,148,183);
|
||||
$bg2p = ImageColorAllocate($im, 175,198,219);
|
||||
$bg1p = ImageColorAllocate($im, $bg1_R,$bg1_G,$bg1_B);
|
||||
$bg2p = ImageColorAllocate($im, $buttonBg_R,$buttonBg_G,$buttonBg_B);
|
||||
$bg3p = ImageColorAllocate($im, $fontcol_grap_R,$fontcol_grap_G,$fontcol_grap_B);
|
||||
$white = ImageColorAllocate($im, 255, 255, 255);
|
||||
$gray= ImageColorAllocate($im, 133, 133, 133);
|
||||
@@ -200,7 +203,7 @@ setlocale (LC_ALL, 'de_DE.utf8');
|
||||
|
||||
|
||||
|
||||
if ($actuator=="lime-protection") $actuator="0%";
|
||||
if ($actuator=="lime-protection") $actuator="?";
|
||||
$text="Actuator: $actuator";
|
||||
ImageTTFText ($im, $fontsize, 0, $imgmaxxfht-230-$XcorrectDate, 33, $txtcolor, $fontttf, $text);
|
||||
|
||||
|
||||
@@ -42,8 +42,8 @@ include "../config.php";
|
||||
|
||||
$im = ImageCreateTrueColor($imgmaxxfs20,$imgmaxyfs20);
|
||||
$black = ImageColorAllocate($im, 0, 0, 0);
|
||||
$bg1p = ImageColorAllocate($im, 110,148,183);
|
||||
$bg2p = ImageColorAllocate($im, 175,198,219);
|
||||
$bg1p = ImageColorAllocate($im, $bg1_R,$bg1_G,$bg1_B);
|
||||
$bg2p = ImageColorAllocate($im, $buttonBg_R,$buttonBg_G,$buttonBg_B);
|
||||
$bg3p = ImageColorAllocate($im, $fontcol_grap_R,$fontcol_grap_G,$fontcol_grap_B);
|
||||
$white = ImageColorAllocate($im, 255, 255, 255);
|
||||
$gray= ImageColorAllocate($im, 133, 133, 133);
|
||||
|
||||
@@ -56,8 +56,8 @@ $supported_HMS= array('HMS100T','HMS100TF','HMS100WD','HMS100MG','HMS100TFK','HM
|
||||
|
||||
$im = ImageCreateTrueColor($imgmaxxhms,$imgmaxyhms);
|
||||
$black = ImageColorAllocate($im, 0, 0, 0);
|
||||
$bg1p = ImageColorAllocate($im, 110,148,183);
|
||||
$bg2p = ImageColorAllocate($im, 175,198,219);
|
||||
$bg1p = ImageColorAllocate($im, $bg1_R,$bg1_G,$bg1_B);
|
||||
$bg2p = ImageColorAllocate($im, $buttonBg_R,$buttonBg_G,$buttonBg_B);
|
||||
$bg3p = ImageColorAllocate($im, $fontcol_grap_R,$fontcol_grap_G,$fontcol_grap_B);
|
||||
$white = ImageColorAllocate($im, 255, 255, 255);
|
||||
$gray= ImageColorAllocate($im, 133, 133, 133);
|
||||
|
||||
@@ -47,8 +47,8 @@ $avgmonth=$_GET['avgmonth'];
|
||||
|
||||
$im = ImageCreateTrueColor($imgmaxxks,$imgmaxyks);
|
||||
$black = ImageColorAllocate($im, 0, 0, 0);
|
||||
$bg1p = ImageColorAllocate($im, 110,148,183);
|
||||
$bg2p = ImageColorAllocate($im, 175,198,219);
|
||||
$bg1p = ImageColorAllocate($im, $bg1_R,$bg1_G,$bg1_B);
|
||||
$bg2p = ImageColorAllocate($im, $buttonBg_R,$buttonBg_G,$buttonBg_B);
|
||||
$bg3p = ImageColorAllocate($im, $fontcol_grap_R,$fontcol_grap_G,$fontcol_grap_B);
|
||||
$white = ImageColorAllocate($im, 255, 255, 255);
|
||||
$gray= ImageColorAllocate($im, 133, 133, 133);
|
||||
@@ -141,7 +141,8 @@ $avgmonth=$_GET['avgmonth'];
|
||||
if ($mintemp < 0)
|
||||
{
|
||||
$y = round($imgmaxyks-((0-$mintemp)*$fac));
|
||||
ImageLine($im, $imgmaxxks, $y,0 , $y, $bg1p);
|
||||
#ImageLine($im, $imgmaxxks-$maxcountKS, $y,0 , $y, $bg1p);
|
||||
ImageLine($im, $imgmaxxks, $y,$imgmaxxks-$maxcountKS , $y, $bg1p);
|
||||
}
|
||||
$text="Temperature";
|
||||
$fontsize=7;
|
||||
|
||||
@@ -11,8 +11,8 @@ include "../config.php";
|
||||
|
||||
$im = ImageCreateTrueColor($imgmaxxroom,$imgmaxyroom);
|
||||
$black = ImageColorAllocate($im, 0, 0, 0);
|
||||
$bg1p = ImageColorAllocate($im, 110,148,183);
|
||||
$bg2p = ImageColorAllocate($im, 175,198,219);
|
||||
$bg1p = ImageColorAllocate($im, $bg1_R,$bg1_G,$bg1_B);
|
||||
$bg2p = ImageColorAllocate($im, $buttonBg_R,$buttonBg_G,$buttonBg_B);
|
||||
$bg3p = ImageColorAllocate($im, $fontcol_grap_R,$fontcol_grap_G,$fontcol_grap_B);
|
||||
$white = ImageColorAllocate($im, 255, 255, 255);
|
||||
$gray= ImageColorAllocate($im, 133, 133, 133);
|
||||
|
||||
@@ -111,8 +111,8 @@ include "functions.php";
|
||||
# Start Graphic
|
||||
$im = ImageCreateTrueColor($imgmaxxuserdef,$imgmaxyuserdef);
|
||||
$black = ImageColorAllocate($im, 0, 0, 0);
|
||||
$bg1p = ImageColorAllocate($im, 110,148,183);
|
||||
$bg2p = ImageColorAllocate($im, 175,198,219);
|
||||
$bg1p = ImageColorAllocate($im, $bg1_R,$bg1_G,$bg1_B);
|
||||
$bg2p = ImageColorAllocate($im, $buttonBg_R,$buttonBg_G,$buttonBg_B);
|
||||
$bg3p = ImageColorAllocate($im, $fontcol_grap_R,$fontcol_grap_G,$fontcol_grap_B);
|
||||
$white = ImageColorAllocate($im, 255, 255, 255);
|
||||
$gray= ImageColorAllocate($im, 133, 133, 133);
|
||||
|
||||
@@ -3,6 +3,8 @@
|
||||
|
||||
setlocale (LC_ALL, 'de_DE.utf8');
|
||||
|
||||
#include '../config.php'; #only debug
|
||||
|
||||
|
||||
|
||||
function website_WEATHER($station, $land, $sprache)
|
||||
|
||||
Reference in New Issue
Block a user