Programming - First steps
P.
94 of 349
After everything has been written in the different sections and we successfully compiled the code,
our web server main page is as shown in Figure 41.
The status page of the main building is now being built. It should include switch-off facilities for all the
lights on a floor as well as the entire main building and indicate whether a window is open on the
respective floor.
Status page of the main building:
Figure 46:Status display with jump targets
In order to get back into the individual floors faster, we include plinks again. Now the individual rooms
are listed and can therefore be controlled separately. As soon as a lamp is lit in a room, a lamp
symbol will glow red on the status page of the main building and the corresponding text will appear in
the display. If you now operate the shifter, all lamps on the floor will be switched off. If you want to do
this with several or all floors with just one click, this can be realized by pressing the main switch in
the bottom line, between the time and date display.
The page is now built step by step again and starts as our main page with the integration of the
shifter and plinks. This will give them their functionality and design flare. In order to ensure the
functionality, however, you should
before
build up your various
floor pages
with all the lights and
windows. This leads to a better overview of the group addresses and facilitates the error search, if
something goes wrong with the if statements.
Example floor side:
Figure 47:Detailed displays
Once you have finished, you can go back to the Status page.
As already mentioned, we first create our basic framework with button and shifter. We have
implemented the floor switches as global because we integrate them on the static side and the floor
side. The example deals with only the main switch of the ground floor, the others can be associated
one by one.
HandbuchEibPC_USA-30.odt, 2017-05-11
Enertex
®
Bayern GmbH - Erlachstraße 13 - 91301 Forchheim - [email protected]