Skip to content

inject-enhanced: Time by azimuth: internal error time-inject:Cannot read properties of undefined (reading 'latitude') #557

@jf-64

Description

@jf-64

Describe the bug
A clear and concise description of what the bug is.

Steps to reproduce the bug:

  1. (The node has a valid configuration)
  2. Select on the left side Time by direction of the sun, see the screenshot below.
  3. Enter some number (or a pre-defined direction name from the configuration) into the field as azimuth value.
    (whether or not it is deployed, it is the same)

If you now hover the mouse over the number, the error message appears as a tool tip, see the screenshot below:
undefinedError: Cannot read properties of undefined (reading 'latitude')

After deployment, if the node get started, then the error message comes, see the screenshot below:
internal error time-inject:Cannot read properties of undefined (reading 'latitude')

Screenshots
If applicable, add screenshots to help explain your problem.

Image Image Image

Expected behavior
A clear and concise description of what you expected to happen.

The calculation shall be done with the given azimuth value and the resulting date-time shall be given out where it is defined.

System information (please complete the following information):

  • Node Version [e.g. 0.4.7]
    3.0.0-alpha2

  • Node-Red Version
    v4.0.9

Additional context
Add any other context about the problem here.

Other functionalities of inject-enhanced are working fine.
The bug can be reproduced also with the sun-position node.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions