dy-sh / MyNodes.NET

Home automation controller (new version available at https://github.com/dy-sh/singlehub)
GNU General Public License v3.0
75 stars 24 forks source link

Add DayOfWeek output to the TimeClockNode #20

Closed gildorwang closed 7 years ago

gildorwang commented 7 years ago

When setting up automatic tasks we often need day of week information. This PR adds a new setting to the TimeClockNode to enable the output of DayOfWeek, which is a number from 0-6 (mapping Sunday - Saturday), same way as .NET's DayOfWeek property.

This PR also adds a helper method in Node base class to make it easier to set output values by output name.

gildorwang commented 7 years ago

Thanks @derwish-pro!

dy-sh commented 7 years ago

Thank you, too)