giuseppeg88 / node-red-contrib-thermostat-scheduler

The Ultimate Node-RED Thermostat for Home Assistant - A NEST style thermostat with: temperature week scheduler, countdown and manual mode
GNU General Public License v3.0
66 stars 28 forks source link

Missing file #4

Open Edo78 opened 3 years ago

Edo78 commented 3 years ago

The first time I tried to run your flow I got Error: ENOENT: no such file or directory, open '/share/thermo_scheduler.save' from the Resotre node because there is no such file.

It works fine but you should check fi the file exists before trying to read it.

kizio1000 commented 3 years ago

I got same error but in my present knowledge level I'm stuck. Where this directory should be created ? How to proceed from this point ?

Edo78 commented 3 years ago

I'm thinking about modify it to use a "on file" context to save the schedule instead of a file. This way it only requires a specific context to be defined and then it should works everywhere