![]() |
rasProject_01 / weSweetHome
R. 146 2026-09-26
process control / RasPi software by weinert-automation
|
Localisation and geographical values for the smart home project. More...
Macros | |
| #define | BOCHUM_01 |
| Location code for Bochum. | |
| #define | DAWN_UTC(x) |
| Get dawn in s from UTC midnight. | |
| #define | DUSK_UTC(x) |
| Get dawn in s from UTC midnight. | |
| #define | HALF_RISE_DELTA |
| The difference from mean to minimum or maximum sunrise in minutes. | |
| #define | HALF_SET_DELTA |
| The difference from mean to minimum or maximum sunset in minutes. | |
| #define | LOCATION |
| The current location. | |
| #define | MEAN_DAWN |
| Mean dawn time over the year. | |
| #define | MEAN_DUSK |
| Mean dusk time over the year. | |
| #define | MEAN_SUN_RISE |
| Mean sunrise time over the year. | |
| #define | MEAN_SUN_SET |
| Mean sunset time over the year. | |
| #define | SUNRISE_UTC(x) |
| Get sunrise in s from UTC midnight. | |
Localisation and geographical values for the smart home project.
Revision history
This file contains some localisation, geographical and individual technical data for the current smart home project as well as for co-responding experimental / demonstrator set-up started 2018.
When porting to other locations etc. do change the values in question or, better, define a new LOCATION macro. Currently we've got BOCHUM_01, only.
| #define LOCATION |
The current location.
The value is set to ::Bochum_01 (default,44801).
| #define BOCHUM_01 |
Location code for Bochum.
Bochum resp. 51.4818deg N, 7.2162deg E gets the code 44801.
The value is Bochum Querenburg's German postal code.
The macro LOCATION has to be set with the code of an implemented location; 448701 rep. BOCHUM_01 is the default.
| #define MEAN_SUN_RISE |
Mean sunrise time over the year.
The unit is s in day UTC. The value 6:24 CET = 5:24 UTC = 324 min.
| #define MEAN_SUN_SET |
Mean sunset time over the year.
The unit is s in day UTC. The value 18:37 CET = 17:37 UTC = 1057 min UTC
| #define MEAN_DAWN |
Mean dawn time over the year.
The unit is s in day UTC. This dawn is the civil twilight defined as 31 min before rise.
| #define MEAN_DUSK |
Mean dusk time over the year.
The unit is s in day UTC. This dawn is the civil twilight defines as 33 min after sunset.
| #define HALF_RISE_DELTA |
The difference from mean to minimum or maximum sunrise in minutes.
minutes to min. resp. max. sunrise
The value is 131 minutes.
| #define HALF_SET_DELTA |
The difference from mean to minimum or maximum sunset in minutes.
minutes to min. resp. max. sunset
The value is 135 minutes.
| #define SUNRISE_UTC | ( | x | ) |
Get sunrise in s from UTC midnight.
Get sunset in s from UTC midnight.
The value will be approximately (but very fast) calculated on base of the the location's (and optimally year's) sunset data.
Caveat: Consider the units and bases of the parameters. See getDaySunrise and getDaySunrise
| x | day in the year (0 is January 1st) |
| #define DAWN_UTC | ( | x | ) |
Get dawn in s from UTC midnight.
| #define DUSK_UTC | ( | x | ) |
Get dawn in s from UTC midnight.