# Path: wordclock_plugins/time_in_seconds/time_seconds.py
# class time_seconds:
#     """
#     This class returns a given time as a range of LED-indices.
#     Illuminating these LEDs represents the current time on a german WCA
#     """
# 
#     def __init__(self):
#         self.rightDigit = []
#         self.leftDigit = [list(range(23, 26)) + list(range(33, 34)) + list(range(37, 38)) + list(range(44, 45)) + list(
#             range(47, 49)) + list(range(55, 56)) + list(range(57, 58)) + list(range(59, 60)) + list(
#             range(66, 68)) + list(range(70, 71)) + list(range(77, 78)) + list(range(81, 82)) + list(range(89, 92)), \
#                           list(range(24, 25)) + list(range(34, 36)) + list(range(46, 47)) + list(range(57, 58)) + list(
#                               range(68, 69)) + list(range(79, 80)) + list(range(89, 92)), \
#                           list(range(23, 26)) + list(range(33, 34)) + list(range(37, 38)) + list(range(48, 49)) + list(
#                               range(58, 59)) + list(range(68, 69)) + list(range(78, 79)) + list(range(88, 93)), \
#                           list(range(22, 27)) + list(range(36, 37)) + list(range(46, 47)) + list(range(58, 59)) + list(
#                               range(70, 71)) + list(range(77, 78)) + list(range(81, 82)) + list(range(89, 92)), \
#                           list(range(25, 26)) + list(range(35, 37)) + list(range(45, 46)) + list(range(47, 48)) + list(
#                               range(55, 56)) + list(range(58, 59)) + list(range(66, 71)) + list(range(80, 81)) + list(
#                               range(91, 92)), \
#                           list(range(22, 27)) + list(range(33, 34)) + list(range(44, 48)) + list(range(59, 60)) + list(
#                               range(70, 71)) + list(range(77, 78)) + list(range(81, 82)) + list(range(89, 92)), \
#                           list(range(24, 26)) + list(range(34, 35)) + list(range(44, 45)) + list(range(55, 59)) + list(
#                               range(66, 67)) + list(range(70, 71)) + list(range(77, 78)) + list(range(81, 82)) + list(
#                               range(89, 92)), \
#                           list(range(22, 27)) + list(range(37, 38)) + list(range(47, 48)) + list(range(57, 58)) + list(
#                               range(67, 68)) + list(range(78, 79)) + list(range(89, 90)), \
#                           list(range(23, 26)) + list(range(33, 34)) + list(range(37, 38)) + list(range(44, 45)) + list(
#                               range(48, 49)) + list(range(56, 59)) + list(range(66, 67)) + list(range(70, 71)) + list(
#                               range(77, 78)) + list(range(81, 82)) + list(range(89, 92)), \
#                           list(range(23, 26)) + list(range(33, 34)) + list(range(37, 38)) + list(range(44, 45)) + list(
#                               range(48, 49)) + list(range(56, 60)) + list(range(70, 71)) + list(range(80, 81)) + list(
#                               range(89, 91))]
# 
#     def get_time(self, seconds):
#         decimal = seconds / 10
#         ones = seconds % 10
#         self.rightDigit = []
#         for i in self.leftDigit[ones]:
#             self.rightDigit.insert(i, i + 6)
#         # Assemble indices
#         return \
#             (self.leftDigit[int(decimal)] + \
#              self.rightDigit)


import datetime
import os
import time
import wordclock_tools.wordclock_colors as wcc
from .time_seconds import time_seconds


class plugin:
    """
    Drink mate and do some yoga while watching the time being over and over the same again.
    'The definition of insanity is doing the same thing over and over and expecting different results.' - Albert Einstein
    Credits: plotaBot
    """

    def __init__(self, config):
        """
        Initializations for the startup of the current wordclock plugin
        """
        # Get plugin name (according to the folder, it is contained in)
        self.name = os.path.dirname(__file__).split('/')[-1]
        self.pretty_name = "Seconds"
        self.description = "Shows the current seconds. The fool thinks no time flies;)"


# Path: wordclock_plugins/time_in_seconds/time_seconds.py
# class time_seconds:
#     """
#     This class returns a given time as a range of LED-indices.
#     Illuminating these LEDs represents the current time on a german WCA
#     """
# 
#     def __init__(self):
#         self.rightDigit = []
#         self.leftDigit = [list(range(23, 26)) + list(range(33, 34)) + list(range(37, 38)) + list(range(44, 45)) + list(
#             range(47, 49)) + list(range(55, 56)) + list(range(57, 58)) + list(range(59, 60)) + list(
#             range(66, 68)) + list(range(70, 71)) + list(range(77, 78)) + list(range(81, 82)) + list(range(89, 92)), \
#                           list(range(24, 25)) + list(range(34, 36)) + list(range(46, 47)) + list(range(57, 58)) + list(
#                               range(68, 69)) + list(range(79, 80)) + list(range(89, 92)), \
#                           list(range(23, 26)) + list(range(33, 34)) + list(range(37, 38)) + list(range(48, 49)) + list(
#                               range(58, 59)) + list(range(68, 69)) + list(range(78, 79)) + list(range(88, 93)), \
#                           list(range(22, 27)) + list(range(36, 37)) + list(range(46, 47)) + list(range(58, 59)) + list(
#                               range(70, 71)) + list(range(77, 78)) + list(range(81, 82)) + list(range(89, 92)), \
#                           list(range(25, 26)) + list(range(35, 37)) + list(range(45, 46)) + list(range(47, 48)) + list(
#                               range(55, 56)) + list(range(58, 59)) + list(range(66, 71)) + list(range(80, 81)) + list(
#                               range(91, 92)), \
#                           list(range(22, 27)) + list(range(33, 34)) + list(range(44, 48)) + list(range(59, 60)) + list(
#                               range(70, 71)) + list(range(77, 78)) + list(range(81, 82)) + list(range(89, 92)), \
#                           list(range(24, 26)) + list(range(34, 35)) + list(range(44, 45)) + list(range(55, 59)) + list(
#                               range(66, 67)) + list(range(70, 71)) + list(range(77, 78)) + list(range(81, 82)) + list(
#                               range(89, 92)), \
#                           list(range(22, 27)) + list(range(37, 38)) + list(range(47, 48)) + list(range(57, 58)) + list(
#                               range(67, 68)) + list(range(78, 79)) + list(range(89, 90)), \
#                           list(range(23, 26)) + list(range(33, 34)) + list(range(37, 38)) + list(range(44, 45)) + list(
#                               range(48, 49)) + list(range(56, 59)) + list(range(66, 67)) + list(range(70, 71)) + list(
#                               range(77, 78)) + list(range(81, 82)) + list(range(89, 92)), \
#                           list(range(23, 26)) + list(range(33, 34)) + list(range(37, 38)) + list(range(44, 45)) + list(
#                               range(48, 49)) + list(range(56, 60)) + list(range(70, 71)) + list(range(80, 81)) + list(
#                               range(89, 91))]
# 
#     def get_time(self, seconds):
#         decimal = seconds / 10
#         ones = seconds % 10
#         self.rightDigit = []
#         for i in self.leftDigit[ones]:
#             self.rightDigit.insert(i, i + 6)
#         # Assemble indices
#         return \
#             (self.leftDigit[int(decimal)] + \
#              self.rightDigit)


# Path: wordclock_plugins/time_in_seconds/plugin.py
import datetime
import os
import time
import wordclock_tools.wordclock_colors as wcc
from .time_seconds import time_seconds



class plugin:
    """
    Drink mate and do some yoga while watching the time being over and over the same again.
    'The definition of insanity is doing the same thing over and over and expecting different results.' - Albert Einstein
    Credits: plotaBot
    """

    def __init__(self, config):
        """
        Initializations for the startup of the current wordclock plugin
        """
        # Get plugin name (according to the folder, it is contained in)
        self.name = os.path.dirname(__file__).split('/')[-1]
        self.pretty_name = "Seconds"
        self.description = "Shows the current seconds. The fool thinks no time flies;)"


        self.taw = time_seconds()