osiota-app-suncalc
v1.0.1
Published
The application triggers at sun-related time points
Downloads
1
Readme
osiota application sun position
Osiota is a software platform capable of running distributed IoT applications written in JavaScript to enable any kind of IoT tasks. See osiota.
Configuration: suncalc
The application triggers at sun-related time points. This allows to implement switching functions e.g. at sunrise or sunset.
Properties
|Name|Type|Description|Required|
|----|----|-----------|--------|
|latitude|number
|Choose a location|no|
|longitude|number
||no|
|height|number
|Above see level|no|
|timepoint|string
|The following sun-related times can be selectedDefault: "sunrise"
Enum: "sunrise"
, "sunriseEnd"
, "goldenHourEnd"
, "solarNoon"
, "goldenHour"
, "sunsetStart"
, "sunset"
, "dusk"
, "nauticalDusk"
, "night"
, "nadir"
, "nightEnd"
, "nauticalDawn"
, "dawn"
, "customMorning"
, "customEvening"
|no|
|custom_angle(angle)|number
|Define an angel for custom time points:Dawn: -6
Sunrise: -0.833
Morning golden hour: 6
.Minimum: -90
Maximum: 90
|no|
Additional Properties: not allowed Example
{
"latitude": 52.51872463625155,
"longitude": 13.376219384358473,
"height": 0,
"timepoint": "sunrise"
}
How to setup
Add a configuration object for this application, see osiota configuration:
{
"name": "suncalc",
"config": CONFIG
}
License
Osiota and this application are released under the MIT license.
Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.