dmtzs / SmartTerrariumR

A project that is used for creating a smart terrarium for your reptile pets. This project is for managing all parameters that the reptile needs in order to have a great life. This is the raspberry version.
https://dmtzs.github.io/SmartTerrariumR/
Other
2 stars 0 forks source link

Make automatic the turning on of the night or day spotlight #24

Closed dmtzs closed 2 years ago

dmtzs commented 2 years ago

Objective

Use datetime to make the program know which spotlight should be turning on acording to the hour prestablished by the same user and also implement in the appData json file that you can configure if you dont want the program take in consideration the temperature of the sensor, this means that the spotlight is always turned on but only changing the configuration in the configuration part.

dmtzs commented 2 years ago

We need to use the json flag modo-dia-noche in the file appData.json in order to know if the bulb in the automatic mode should be turned on all the time only changing between night and day or if we need to take in consideration the temperatures.

The 0 is for taking in consideration the temperatures and the 1 is for not taking in consideration that.

dmtzs commented 2 years ago

This link could be useful to know time in an interval of time, click here

dmtzs commented 2 years ago

Already implemented by @MemoOR