-
Notifications
You must be signed in to change notification settings - Fork 382
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
'Input:inject' of type 'Repeat - at a specific time' not working #16
Comments
The inject node does not use the external cron command. Does the 'inject at specific time' option not work for you then? What have you tried? |
Note that Docker on some systems is prone to clock drift. Two instances of people seeing this: machyve/xhyve#46 |
Hello @rajr0, Are you still having issues with this? If so, can you help us by answering Nick's questions. |
Hi! I have the same issue with repeat at a specific time not working on my Raspberry Pi (not running the Docker image)! |
@albertskog does it run at all or just at a later or earlier time? |
From what I can tell so far it never runs automatically, just when I press the button on the node. I also tried setting it up to run every minute, it also does nothing.. |
Just having inject node and inject at specific time does not generate any injection : (crontab setting seems to be correct) |
does the docker container even have a cron process daemon ? |
@dceejay I refer you to my previous comment - the Inject node doesn't have any dependency on the cron system command. |
ah yes - though the node-cron issue list does have some interesting issues that may be relevant |
I had this problem too. I fixed it by changing the timezone on my host and then rebooting. |
@NodeGuy, Thank you for the info got exactly the same problem. NodeRed showed me the correct time but the system time was not correct. Ubuntu/Debian Distros
And reboot. |
Node-RED 1.0.0 is now available on docker hub - https://hub.docker.com/r/nodered/node-red. This closes this issue. There are a few changes to the new release, please read the README for further details. |
Are we sure this is closed with 1.0? I'm having issues with inject in the official 1.0 docker. |
@ryanrdetzel, can you provide the flow (json) so I can test it? |
I don't even see node-cron in the node_modules.
Simple inject with a time and then a debug node
|
the node-cron package is in the core of node-red so will have been minified by the build step. It installs as node_modules/cron |
I just tested your flow and it works as expected. The steps I took:
docker run -it -e TZ=Europe/Amsterdam -p 1880:1880 nodered/node-red:latest
note clicking in the debug node on the timestamp changes the way the time shows. |
Thanks, I tried that command and it did work so I pulled down the images again and it seems to be fixed. Not sure what happened as I was on 1.0.0 and I'm still on 1.0.0 now but it's working. 🤷♂ |
Glad i could help :-) Version of NR did not change, the code of NR did not change only a permission issues was solved. Did you use |
I just ran into this issue and needed somewhat more time to get it fixed, and barely anywhere a working answer was provided. Someone mentioned somewhere that you either need to set the variable TZ or you need to link the timezone folders, but not both. In no way could I get the TZ variable to work, but the folder linking did it. For anyone else running into this issue, here is my docker-compose for running mosquitto and node-red with the proper timezone on raspbian buster: version: "3" |
I think, in order for 'Input:inject' of type 'Repeat - at a specific time' (Time-of-Day) to work, 'cron' needed to be installed inside the docker.
I had to add in the Dockerfile the following line
'RUN apt-get install -y cron'
I'm using the Node-RED container to control many switches at specific times; for eg:- turn on/off FishTank light.
$ docker run -it --rm hypriot/rpi-node:4 bash
root@44b3c8a909c0:/# cron
bash: cron: command not found
root@44b3c8a909c0:/#
The text was updated successfully, but these errors were encountered: