Skip to content
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

Next loadshedding - Time ending? #2

Open
ari-za opened this issue Mar 11, 2022 · 1 comment
Open

Next loadshedding - Time ending? #2

ari-za opened this issue Mar 11, 2022 · 1 comment

Comments

@ari-za
Copy link

ari-za commented Mar 11, 2022

Hi there

Firstly fantastic work on the Node Red flow. Works great.

I was wondering if you would be able to easily add the time that the scheduled load shedding is ending? Instead of just the time it is starting.

I had a quick play around with the code, but thought I would rather leave it to someone who knows best.

I see the time the loadshedding is scheduled to end is at characters 15-19 of the string that is returned from the Eskom site.

Thanks!

@ari-za
Copy link
Author

ari-za commented Mar 12, 2022

Also I have been using this Node-Red node in another flow, might be of use to convert the UNIX date to a more HA friendly format.

[{"id":"17064c5b.95395c","type":"moment","z":"91f8e48bb87b115a","name":"","topic":"","input":"","inputType":"msg","inTz":"Etc/GMT","adjAmount":"0","adjType":"hours","adjDir":"add","format":"dddd, MMMM Do YYYY, h:mm:ss a","locale":"LLLL","output":"","outputType":"msg","outTz":"Africa/Johannesburg","x":2060,"y":220,"wires":[["8d271e0ef2a16334","b69d12c69cb8fc12"]]}]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant