Programming - First steps
P.
89 of 349
Examples:
Good:
$http://wetter.tagesschau.de/import/wetter-cms/vorhersagen/img/de-vs-tt_webL.jpg$
Bad:
$http://www.wetteronline.de/?
daytime=day&diagram=true&fcdatstr=
20140916
&iid=DL&pid=p_city_local&sid=Pictogram$
After selecting the two links, we must also integrate our picture functions in the section [
WebServer
].
In order to achieve the framing of the logo on the sides, two
none
elements must be used between
the picture functions. These are used as placeholders in the web server and are not displayed in any
way
[
WebServer
]
//Web elements for the weather page in the category General:
page(GeneralWeatherPageID)[$General$,$WeatherPage$]
design $black$[$/upload/EnertexLogoSilber2.jpg$]
header(0)
footer(0)
// First Line
button(WINDID)[WIND]$Wind in km/h$ \\
pbutton(31)[TEMPERATURE]$Outdoor temperature$\\
pshifter(17)[TEMPERATURE,TEMPERATURE]$Outer temp.: Min and Max in °C$\\
pbutton(5)[OKCIRCLE]$Status HG$
// Second Line
pbutton(15)[WEATHER]$Light in Lux$ \\
button(WolkenID)[WEATHER]$current weather$\\
pshifter(14)[WEATHER,NIGHT]$Sunrise- and Sunset$\\
pbutton(6)[OKCIRCLE]$Status NG$
// Third Line
picture(7)[DOUBLE,CENTERGRAF]($Average daily temperatures$,
$http://wetter.tagesschau.de/import/wetter-cms/vorhersagen/img/de-vs-tt_webL.jpg$) \\
none \\
none \\
picture(8)[DOUBLE,CENTERGRAF]($3 – Day prediction$,$http://wetter.tagesschau.de/import/wetter-
cms/vorhersagen/img/de-vs-3t_webL.jpg$)
// Fourth Line
shifter(ClockID)[CLOCK] $Time$\\
pshifter(9)[INFO]$Online$\\
shifter(DateID)[DATE]$Date$
Figure 44:The configuration of the buttons
The layout of our Advertisement Button is now complete and we can devote ourselves to the
functionality. To do this, we have to go to the [
Macros
] section of the code. With the help of the
macro library (InternEnertexWebV3)
the appropriate functionality can be found for each button /
shifter.
Example date display global:
HandbuchEibPC_USA-30.odt, 2017-05-11
Enertex
®
Bayern GmbH - Erlachstraße 13 - 91301 Forchheim - [email protected]