Programming for experts
P.
114 of 349
Arguments:
1. Value (her f32)
2. Conversion of F32 in floating-
point represenation: 4
3. Representaion with leading zeros:
4
4. Maximum length: 8
5. Accuracy: 1 point
Picture, Header und Footer
Sunrise and sunset formatted
appropriately as as string
VerbrauchOG_kWh=stringformat(convert("Energie-2/3/5",1f32)/1000f32,4,4,8,1)
VerbrauchEG_kWh=stringformat(convert("Energie-2/3/6",1f32)/1000f32,4,4,8,1)
VerbrauchUG_kWh=stringformat(convert("Energie-2/3/7" ,1f32)/1000f32, 4,4,8,1)
Summe_kWh=stringformat(convert("Energie-2/3/5"+"Energie-2/3/5"+"Energie-
2/3/5",1f32)/1000f32,4,4,8,1)
Abbildung 4: Formatierte Ausgabe
You can use the possibility of uploading own pictures onto the Enertex® EibP for your own creation
of your ad for header, footer, picture graphics. At first you have to upload the graphics (as described
on p. 200) onto the Enertex® EibPC. In the following this has been happened with
untergang.png
and aufgang.png
and
sun.png
.
Picture 5: Use your own graphics
Instead of the external links in header and footer (comp. p 287) you can now have a reference to the
praphics that were saved in the Enertex® EibPC link. Instead of an external link, enter the graphic
stored as a path
/upload/
+ filename in the configuration:
[WebServer]
page (2) [$Haus$,$Sonnenstand$]
header(2) $/upload/untergang.png$
weboutput(Out1)[DOUBLE,NOICON] picture(0)[DOUBLE,CENTERGRAF] ($Mein Bild$,
$/upload/sun.png$)
footer(2) $/upload/aufgang.png$
[EibPC]
Out1=2
Sonnenaufgang=stringformat(sunrisehour(),0,3,2,2)+$:$+stringformat(sunriseminute(),0,3,2,2)
Sonnenuntergang=stringformat(sunsethour(),0,3,2,2)+$:$+stringformat(sunsetminute(),0,3,2,2)
if systemstart() or htime(0,0,0) then weboutput(Out1,$<h4><i>Sonne heute: $
+convert(setdate(),$$)+$ </i></h4> <ul style="list-style-type:disc"> <li> Sonnenaufgang :$
+Sonnen$</li> <li>Sonnenuntergang $+Sonnenun$</li>$ ) endif
Now you can design your own website as shown in the above Picture 5 .
HandbuchEibPC_USA-30.odt, 2017-05-11
Enertex
®
Bayern GmbH - Erlachstraße 13 - 91301 Forchheim - [email protected]