Skip to content

Timeswitch reporting bizarre timestamp for next sunrise event #944

@jdmallen

Description

@jdmallen

Which node are you reporting an issue on?

node-red-node-timeswitch

What are the steps to reproduce?

  1. Insert into flow
  2. Set Lat & Long for your location
  3. Configure to turn ON at SUNSET and OFF at SUNRISE
  4. Deploy and observe scheduled time to next execution

What happens?

The timeswitch node says it won't execute "until 24:10." The next event (sunrise, in my case) is actually more like 8.5 hours from now. Considering this is not a standard format for any timestamp, I suspect this is more of a presentation bug than an operational one, but I have no idea.

What do you expect to happen?

I expect it to report that it'll send "off" either in the appropriate timespan for when sunrise will actually occur for my lat/long, or "until" an actual timestamp in my local time.

BigTimer, the node-contrib that this one references in its overview page, reflects the correct time. Please see these comparison pictures:

image
image
image
Note the "off until 24:10" under the timeswitch.

Please tell us about your environment:

  • Node-RED version: v3.0.2
  • node.js version: Whatever it is in the latest nodered/node-red Docker image.
  • npm version: "
  • Platform/OS: "
  • Browser: "

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions