Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
56 commits
Select commit Hold shift + click to select a range
3122fc8
initial
Hypnos3 Nov 10, 2021
d2ddc52
dev
Hypnos3 Nov 11, 2021
d71247d
dev
Hypnos3 Nov 11, 2021
94e209a
dev
Hypnos3 Nov 13, 2021
0bf3307
fixed within-time
Hypnos3 Nov 27, 2021
c8ab81b
Merge branch 'dev' into alternate_rule
Hypnos3 Jan 23, 2022
6067b27
dev
Hypnos3 Jan 23, 2022
5eef75f
development intermediate state
Hypnos3 Jan 30, 2022
2f84b32
reworked topicReplace to textReplace
Hypnos3 Jan 31, 2022
bacc447
Merge branch 'dev' into alternate_rule
Hypnos3 Jan 31, 2022
0e0a937
Merge branch 'dev' into alternate_rule
Hypnos3 Jan 31, 2022
70c5995
first develpment release
Hypnos3 Feb 6, 2022
31c0607
Merge branch 'dev' into dev_delay
Hypnos3 Feb 12, 2022
4ef6ecf
Merge branch 'dev' into dev_delay
Hypnos3 Feb 19, 2022
6467b8d
cleanup
Hypnos3 Feb 21, 2022
859c5ca
Merge branch 'dev' into dev_delay
Hypnos3 Feb 21, 2022
cad083c
rename missing
Hypnos3 Feb 21, 2022
a73dc84
rename missing
Hypnos3 Feb 21, 2022
5e52926
fixed errors
Hypnos3 Feb 21, 2022
1142998
added test for time inject node (first implementation)
Hypnos3 Feb 22, 2022
a5d9b1f
fixed type names
Hypnos3 Feb 22, 2022
00e0f09
added test for inject node
Hypnos3 Feb 22, 2022
c5bad52
smaller changes in preparation for tests
Hypnos3 Feb 22, 2022
63a9596
Merge branch 'dev_delay' into dev
Hypnos3 Feb 22, 2022
4f2d0fa
added cron to time-inject; minor revisions
Hypnos3 Feb 28, 2022
d8be073
rename
Hypnos3 Feb 28, 2022
215ba0e
added new delay-until node
Hypnos3 Mar 1, 2022
2373368
fix missing map marker
Hypnos3 Mar 1, 2022
1017a10
changed state output in case time span is over midnight, because the …
Hypnos3 Mar 2, 2022
ea0db14
Merge branch 'alternate_rule' into dev
Hypnos3 Mar 2, 2022
3386b3c
added type definition, enabled type checking
Hypnos3 Mar 4, 2022
646c1ac
cleanup and fixed new rule execution; type changes
Hypnos3 Mar 5, 2022
a1d37f0
dev ongoing for blind control
Hypnos3 Mar 6, 2022
8e60778
small typo fixed
Hypnos3 Mar 7, 2022
f12f1cd
typecheck changes
Hypnos3 Mar 10, 2022
b39d39a
for #431 second backward compatibility check added
Hypnos3 Mar 29, 2022
05f5dbb
removed Radiant angle; added alternate coordinate system
Hypnos3 Apr 3, 2022
a7eb34d
constants defined; time-span added test + rework;
Hypnos3 Apr 3, 2022
35c0479
implemented autocomplete, enhancedvalidation for custom angles
Hypnos3 Apr 4, 2022
e40ba26
Update 10-position-config.js
Hypnos3 Apr 5, 2022
d99864c
Merge branch 'dev_fixes' into dev
Hypnos3 Apr 5, 2022
adfa4ad
merged dev_fixes
Hypnos3 Apr 5, 2022
79f258c
fixed imports
Hypnos3 Apr 5, 2022
b89f678
added test for custom suntime; fixed validation for custom values in …
Hypnos3 Apr 5, 2022
c858252
implemented test for sun-position and moon-position
Hypnos3 Apr 5, 2022
cae328b
reworked error handling; enhanced sun and moon angles
Hypnos3 Apr 5, 2022
e0d708c
fixed #434, usage of callback in Blind control gives no value back
Hypnos3 Apr 11, 2022
adaa40f
removed missing types
Hypnos3 Apr 11, 2022
cd388c3
bump version
Hypnos3 Apr 11, 2022
0515777
smaller cleanup
Hypnos3 Apr 11, 2022
6751aab
3.0.0-beta1 release
Hypnos3 Apr 12, 2022
92bab02
Merge branch 'master' into dev
Hypnos3 Apr 12, 2022
6df72bd
bump versions
Hypnos3 Apr 12, 2022
a7653c3
Merge branch 'dev' of https://github.com/HM-RedMatic/node-red-contrib…
Hypnos3 Apr 12, 2022
6d23fda
merge master
Hypnos3 Nov 27, 2022
c0b8114
indev
Mar 30, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@ Backup/*
backup/
backup/*
temp/
temp/*
temp/*
*.bak
64 changes: 49 additions & 15 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,34 +2,58 @@

## Installation

### Install of a specific Version in Node-Red:
- change to the installation directory of Node-Red
- enter the command `npm install node-red-contrib-sun-position@2.0.0`
### Install of a specific Version in Node-Red

- change to the installation directory of Node-Red
- enter the command `npm install node-red-contrib-sun-position@2.0.0`

### Install of a specific Version in Redmatic (on a Homematic)

### Install of a specific Version in Redmatic (on a Homematic):
- logon per ssh
- enter the commands in the order:
- `source /usr/local/addons/redmatic/home/.profile`
- `cd /usr/local/addons/redmatic/var`
- `npm install --save --no-package-lock --global-style --save-prefix="~" --production node-red-contrib-sun-position@2.0.0`

### Install of a specific Version in HomeAssistant:
- go to the Supervisor
- go to the Node-Red AddOn
- add unter the `Configuration` in the Node-Red options as `npm_packages`:
### Install of a specific Version in HomeAssistant

- go to the Supervisor
- go to the Node-Red AddOn
- stop the Node-Red AddOn
- edit `config/node-red/package.json` and remove the line with `node-red-contrib-sun-position`
- add unter the `Configuration` in the Node-Red options as `npm_packages`:

```yaml
npm_packages:
- node-red-contrib-sun-position@2.0.0
```

This can be also used to go back to an older Version.

### 2.2.0-beta: enhancement
### 3.0.0-alpha: enhancement

Breaking changes:

- removed all "Radiant" angle selection from typed input. The standard selection (which was previous the decimal degree output) gives now an angle based on the type selection (degree or radiant) of the configuration node. Version number is changed to 3 to reflect these API changes.


This is still a non stable development version!!

Changes:

- general
- first implementation of tests with `mocha` and some changes due to the test implementation (inject enhance and delay-until)
- revised error handling and output messages if the configuration of nodes is not correct (missing config node, missing latitude/longitude).
- added type checking
- allow of custom sun position set and rise angles in the configuration node
- allow of custom angles in the configuration node
- removed the following angle selections (replaced by existing ones without rad):
- time by azimuth (rad)
- time by elevation (set or rise in rad)
- next time by elevation (set or rise in rad)
- next rise time by elevation (rad)
- next set time by elevation (rad)
- sun-times and moon-times have now every angle in Radians and Degree

- inject enhance (time-inject)
- added repletely inject with CRON expression
Expand All @@ -43,14 +67,23 @@ This can be also used to go back to an older Version.
- basic test for configuration
- test for message passing is for later

- sun-position + moon-position
- smaller rework

- new Node `delay-until` which allows to delay messages until defined time

- blind-control and clock-timer
- implement start and end time for rules #357
- show rule edit dialog no longer modal to allow usage of JSON and JSONATA editor #432
- separated renamed earliest/latest naming to make it clearer #441
- reworked value caching mechanism; fixed bug #434

- blind-control
- fix #421
- added for oversteer blind position the possibility to select msg property, flow or global context #423
- This has some limitations. Changes would only have effect if the oversteer are evaluated.
- fix not working oversteer mode limitation #431
- show rule edit dialog no longer modal to allow usage of JSON and JSONATA editor #432
- implemented optional alternative azimuth input like node-red-contrib-blindcontroller #430

- time-comp
- better adjustable of next time, fixes #420
Expand All @@ -77,11 +110,12 @@ This can be also used to go back to an older Version.

- general
- Fixed bug with wrong default values for Input type in blind-control and within-time-switch node, added console error in case it occurs again.
- additional check for missing position configuration
- additional check for missing position configuration

### 2.0.10: maintenance release

- rerelease, no changed

### 2.0.9: maintenance release

- general
Expand Down Expand Up @@ -159,7 +193,7 @@ This can be also used to go back to an older Version.

- blind-control
- allow to setup a rule which will only overwrite slat #345 or topic
- enhanced overwrite possibilities for slat. Additional `msg.blindSlat` as message property allowed or if the topic contains __slatOverwrite __ the payload as slat position will be used - partly #346
- enhanced overwrite possibilities for slat. Additional `msg.blindSlat` as message property allowed or if the topic contains __slatOverwrite__ the payload as slat position will be used - partly #346
- for slat value make a deep clone as this could be any object and an object comparison

- clock-time
Expand All @@ -173,7 +207,7 @@ This can be also used to go back to an older Version.

⚠ Warning: This Version could break existing flows. Please check your configuration!

🛑 Nodes (especially blind, time-control nodes) that were created or saved with this version do not work in older versions of the package. This affects the export / import of flows and when switching to an older version. It is therefore **essential** to create a **backup** before upgrading to this version!
🛑 Nodes (especially blind, time-control nodes) that were created or saved with this version do not work in older versions of the package. This affects the export / import of flows and when switching to an older version. It is therefore __essential__ to create a __backup__ before upgrading to this version!

- general
- added only even and only odd weeks
Expand Down Expand Up @@ -371,7 +405,7 @@ This can be also used to go back to an older Version.

- moon-position
- moon-times now available #161
- has now a `isUp` _Boolean_ property which gives the state if the moon is Up #162
- has now a `isUp` *Boolean* property which gives the state if the moon is Up #162
- additional properties are `positionAtRise` and `positionAtSet` with position information on rise and set

- clock-time
Expand Down Expand Up @@ -678,7 +712,7 @@ With this for example the time-inject could distinguish between using standard o
- implemented #52 as height of the sun in the sky in percent (0~100 with 100% being at solarnoon and 0% being completely down) - altithudePercent
- fixed bug for #53, no longer send blind position in override mode
- updated dependencies
- more changes for node-red 1.0 (https://nodered.org/blog/2019/09/20/node-done)
- more changes for node-red 1.0 <https://nodered.org/blog/2019/09/20/node-done>
- added node-red 0.19.0 as required version

### 0.4.8: Maintenance Release
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ This is not an error, it hides only that the node needs to be opened, saved and

## Preconditions

These nodes need at least NodeJS Version __8.0__ and Node-Red with Version __1.0__! Any early Version of Node-Red will not work!
These nodes need at least NodeJS Version __12.0__ and Node-Red with Version __1.2.9__! Any early Version of Node-Red will not work!

## Installation

Expand Down
11 changes: 8 additions & 3 deletions jsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,24 @@
"compilerOptions": {
"baseUrl": "./",
"checkJs": true,
"allowJs": true,
"module": "commonJS",
"target": "es6",
"lib": [
"es2019"
],
"paths": {
"@types": ["nodes/types"],
"@nodes": ["nodes"]
"@nodes": ["nodes"],
"@static": ["nodes/static"]
},
"sourceMap": true,
"alwaysStrict": true,
"resolveJsonModule": true
},
"include": ["./nodes/types/typedefs.js"],
"exclude": ["node_modules", "**/node_modules/*", "temp", "**/temp/*", "backup", "**/backup/*", "examples", "**/examples/*"]
"include": ["./nodes/types/typedefs.js", "./nodes/static/htmlglobal.js"],
"exclude": ["node_modules", "**/node_modules/*", "temp", "**/temp/*", "backup", "**/backup/*", "examples", "**/examples/*"],
"typeAcquisition": {
"include": ["jquery", "jqueryui", "node-red"]
}
}
Loading