Просмотр исходного кода

added a setup.py to install stdd with the distutils method and renamed the sample.conf to the final name

Helmut Pozimski 11 лет назад
Родитель
Сommit
eee62b503b
2 измененных файлов с 24 добавлено и 2 удалено
  1. 2 2
      config/stdd.conf
  2. 22 0
      setup.py

+ 2 - 2
config/sample.conf → config/stdd.conf

@@ -12,10 +12,10 @@ BRIGHTNESS_HIGH=15
 BRIGHTNESS_LOW=2
 
 # time of the day to change the brightness from high to low                               
-SET_BRIGHTNESS_LOW=00:00
+SET_BRIGHTNESS_LOW=23:00
 
 # time of the day to change the brightness from low to high
-SET_BRIGHTNESS_HIGH=00:00
+SET_BRIGHTNESS_HIGH=06:00
 
 # maximum syslog level to log, stdd uses debug, info and error                                
 SYSLOG_LEVEL=info

+ 22 - 0
setup.py

@@ -0,0 +1,22 @@
+# -*- coding: utf-8-*-
+#
+# This file is part of stdd, the simple time display daemon,
+# written by Helmut Pozimski <helmut@pozimski.eu>,
+# licensed under the 3-clause BSD license
+
+# -*- coding: utf8 -*-
+
+from distutils.core import setup
+
+setup(
+	name="stdd",
+	version="0.9",
+	author_email="helmut@pozimski.eu",
+	description="stdd, simple time display daemon",
+	long_description=("stdd is a small daemon written in python which displays"
+			"the current time on a 7 segment display from Adafruit attached via i2c"),
+	license="3-clause BSD license",
+	packages=["adafruit_7segment", "stddlib"],
+	scripts=["stdd"],
+	data_files=[('/etc', ['config/stdd.conf'])]
+)