rpi_wordclock icon indicating copy to clipboard operation
rpi_wordclock copied to clipboard

Add Swedish as language in rpi wordclock

Open poa0314 opened this issue 2 years ago • 49 comments

Everything here is new to me. I very much like to build a word clock in swedish. I have the electronics and the mechnical build in place but I struggle with the software that I am new to, but do my best to understand. From reading about others having different problems I have managed to ge the clock running in german. I thougt that the easiest way would be to overwrite german parts with the swedish equals. I have a layout for a frontplate in swedish, what else do I have to look in to? I would be very pleased if I could get any help.

poa0314 avatar Nov 30 '21 20:11 poa0314

Do you still need help? I would suggest to create a new swedish.py entry in rpi_wordclock/wordclock_plugins/time_default/ With the help of other languages and the wiring layout and your own front design, you can then convert words to LED positions in swedish.py, And please use the develop branche. And once finished, make a pull request.

Please let me know if you need additional help.

FrankX0 avatar Dec 13 '21 20:12 FrankX0

Yes I still need help, and I am very pleased if you would help me. I have the hardware under control but need support with software. I have a layout for the frontplate and I think that I can look att german.py an make a swedish.py. Could you please explain "use develop branche and make pull request". As you can understand from my comments I have a lot to learn, this is a new world to me. I have read the basics of python to try and understand the scripts, and I have also made some basic scripts to control a ledstrip. I have spent a lot of time on this project and hope that I can finish it if I can get some support.

poa0314 avatar Dec 13 '21 22:12 poa0314

Take a look here to understand how to use the development branch : https://github.com/bk1285/rpi_wordclock/issues/211

For a quick overview how git works: https://rogerdudler.github.io/git-guide/index.de.html

To make a pull request you have to do the following steps:

  • Make a new branch with the development branch as a base
  • commit your changes
  • push the new branch to bernds repo
  • make a pull request (https://github.com/bk1285/rpi_wordclock/pulls)

Can you post a photo of your front layout? maybe i can help you.

phenze avatar Dec 14 '21 06:12 phenze

And of course we need all possible translations

  • Klockan är fem över
  • Klockan är tio över

etc for every 5 minutes steps.

phenze avatar Dec 14 '21 06:12 phenze

I have created a time_swedish.py -file. I have one question regarding this file. In german the time end with "UHR" this is not used in swedish, can i only remove these rows or do I hav to do someting elese also? I have also modified wordclock_config and added swedish in language_options.

time_swedish.txt wordclock_config.txt

I get this result when starting the clock, and it still run i german.

pi@raspberrypi:~ $ sudo python3 rpi_ws281x/python/rpi_wordclock/wordclock.py Parsing /home/pi/rpi_ws281x/python/rpi_wordclock/wordclock_config/wordclock_config.cfg Interface type set to gpio_low Wiring configuration WCA_WIDTH: 11 WCA_HEIGHT: 10 Num of LEDs: 114 Wiring layout: bernds_wiring WARNING: Default brightness value not set in config-file: To do so, add a "brightness" between 1..255 to the [wordclock_display]-section. Setting language to bavarian. Imported plugin 0: "feed_parser". Imported plugin 1: "time_as_words_dutch". INFO: No activate-flag set for plugin pycache within the config-file. Will be imported. No active exception to reraise Failed to import plugin pycache! Imported plugin 2: "test_strip". Imported plugin 3: "matrix". Imported plugin 4: "restart". Imported plugin 5: "leds_off". INFO: No activate-flag set for plugin time_in_seconds within the config-file. Will be imported. Imported plugin 6: "time_in_seconds". Imported plugin 7: "time_as_words_german". No module named 'pywapi' Failed to import plugin weather_forecast! Imported plugin 8: "tetris". Imported plugin 9: "shutdown". Imported plugin 10: "rainbow". Not found brigtness sensor value Using brigtness sensor : False Selected "time_default" as default plugin Imported plugin 11: "time_default". Imported plugin 12: "sunrise". INFO: No activate-flag set for plugin snake within the config-file. Will be imported. Imported plugin 13: "snake". Imported plugin 14: "ip_address". Imported plugin 15: "time_matrix". Running plugin time_default.

  • Serving Flask app "wordclock_interfaces.web_interface" (lazy loading)
  • Environment: production WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.
  • Debug mode: off
  • Running on http://0.0.0.0:80/ (Press CTRL+C to quit) ^CTraceback (most recent call last): File "/home/pi/rpi_ws281x/python/rpi_wordclock/wordclock.py", line 182, in word_clock.run_forever() File "/home/pi/rpi_ws281x/python/rpi_wordclock/wordclock.py", line 172, in run_forever self.run() File "/home/pi/rpi_ws281x/python/rpi_wordclock/wordclock.py", line 144, in run self.runPlugin() File "/home/pi/rpi_ws281x/python/rpi_wordclock/wordclock.py", line 121, in runPlugin self.plugins[self.plugin_index].run(self.wcd, self.wci) File "/home/pi/rpi_ws281x/python/rpi_wordclock/wordclock_plugins/time_default/plugin.py", line 186, in run event = wci.waitForEvent(2) File "/home/pi/rpi_ws281x/python/rpi_wordclock/wordclock_interfaces/event_handler.py", line 38, in waitForEvent self.__wait_for(lambda: self.event != self.EVENT_INVALID, seconds) File "/home/pi/rpi_ws281x/python/rpi_wordclock/wordclock_interfaces/event_handler.py", line 81, in __wait_for self.condition.wait(waittime) File "/usr/lib/python3.9/threading.py", line 316, in wait gotit = waiter.acquire(True, timeout)

poa0314 avatar Dec 14 '21 08:12 poa0314

This is the front layout in swedish

Urtavla.pdf

poa0314 avatar Dec 14 '21 09:12 poa0314

Setting language to bavarian. Are you sure you are on the correct repo ? Look like you are on mine.

What is the output of ? git status

In your time_swedish you can modify what you want to. Removing the lines of code is fine.

To get the swedish language working you have to modify wordclock_tools/wordclock_display.py

Add an import for your language import wordclock_plugins.time_default.time_swedish as time_swedish

Add an else statement for swedish (Line 114)

elif language == 'swedish':
    self.taw = time_swedish.time_swedish()

phenze avatar Dec 14 '21 09:12 phenze

I have nov modified wordclock_display.py as you described.

git status gives the following:

pi@raspberrypi:~/rpi_ws281x $ git status På grenen master Din gren är à jour med "origin/master".

Ospårade filer: (använd "git add ..." för att ta med i det som ska checkas in) python/rpi_wordclock/

inget köat för incheckning, men ospårade filer finns (spåra med "git add")

If I stand in folder rpi_wordclock

pi@raspberrypi:~/rpi_ws281x/python/rpi_wordclock $ git status På grenen master-python3 Din gren är à jour med "origin/master-python3".

Ändringar ej i incheckningskön: (använd "git add ..." för att uppdatera vad som ska checkas in) (använd "git restore ..." för att förkasta ändringar i arbetskatalogen) ändrad: wordclock_tools/wordclock_display.py

Ospårade filer: (använd "git add ..." för att ta med i det som ska checkas in) wordclock_config/wordclock_config_ori.cfg wordclock_plugins/time_default/time_swedish.py wordclock_tools/wordclock_display_ori.py

inga ändringar att checka in (använd "git add" och/eller "git commit -a")

Do you want me to change to english or can you understand what i means?

If I start the clock it still works in german

pi@raspberrypi:~ $ sudo python3 rpi_ws281x/python/rpi_wordclock/wordclock.py Parsing /home/pi/rpi_ws281x/python/rpi_wordclock/wordclock_config/wordclock_config.cfg Interface type set to gpio_low Wiring configuration WCA_WIDTH: 11 WCA_HEIGHT: 10 Num of LEDs: 114 Wiring layout: bernds_wiring WARNING: Default brightness value not set in config-file: To do so, add a "brightness" between 1..255 to the [wordclock_display]-section. Setting language to bavarian. Imported plugin 0: "feed_parser". Imported plugin 1: "time_as_words_dutch". INFO: No activate-flag set for plugin pycache within the config-file. Will be imported. No active exception to reraise Failed to import plugin pycache! Imported plugin 2: "test_strip". Imported plugin 3: "matrix". Imported plugin 4: "restart". Imported plugin 5: "leds_off". INFO: No activate-flag set for plugin time_in_seconds within the config-file. Will be imported. Imported plugin 6: "time_in_seconds". Imported plugin 7: "time_as_words_german". No module named 'pywapi' Failed to import plugin weather_forecast! Imported plugin 8: "tetris". Imported plugin 9: "shutdown". Imported plugin 10: "rainbow". Not found brigtness sensor value Using brigtness sensor : False Selected "time_default" as default plugin Imported plugin 11: "time_default". Imported plugin 12: "sunrise". INFO: No activate-flag set for plugin snake within the config-file. Will be imported. Imported plugin 13: "snake". Imported plugin 14: "ip_address". Imported plugin 15: "time_matrix". Running plugin time_default.

  • Serving Flask app "wordclock_interfaces.web_interface" (lazy loading)
  • Environment: production WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.
  • Debug mode: off
  • Running on http://0.0.0.0:80/ (Press CTRL+C to quit)

poa0314 avatar Dec 14 '21 15:12 poa0314

Okay there are several problems. I will try to explain it step by step.

1. You dont need to checkout and compile the rpi_ws281x library

Did you follow the python3 install instructions here ? https://github.com/bk1285/rpi_wordclock/tree/develop

2. The wordclock repo is in the wrong path (will be fixed in step 3)

  • Currently it is ~/rpi_ws281x/python/rpi_wordclock
  • It should be ~/rpi_wordclock

3. You have checked out the wrong repo as i thought Steps to fix that

cd ~
git clone https://github.com/bk1285/rpi_wordclock.git
cd rpi_wordclock/
git checkout --track origin/develop

4. Before doing any changes

  • Copy config file cp ~/rpi_wordclock/wordclock_config/wordclock_config.reference.cfg ~/rpi_wordclock/wordclock_config/wordclock_config.cfg
  • Try to start the wordclock now without any changes
  • When everything works fine apply your changes again

5. When noting helps

  • i have made the neccessary changes in my repo (except time_swedish changes)
cd ~
git clone https://github.com/phenze/rpi_wordclock rpi_wordclock_phenze
cd rpi_wordclock_phenze/
git checkout --track origin/feature/swedish
  • Change time_swedish for your needs and send me the changes

phenze avatar Dec 14 '21 18:12 phenze

I am very greatful that you take the time to help me.

I think I start from scratch on a new SD-card and follow your instructions.

Is it possible to attach a .py-file here, I had to make it a txt-file to be able to attach it

time_swedish.txt

poa0314 avatar Dec 14 '21 20:12 poa0314

a text file is okay. You can post the code directly instead.

I have commited your time_swedish changes in my branch. Seems to work 👍

When you re install everything you can checkout my swedish branch directly instead of bernds develop branch (Step 5).

Later you can switch to bernds version again when the changes are merged.

phenze avatar Dec 15 '21 06:12 phenze

I feel that the success is coming closer! I installed everything from scratch using https://github.com/bk1285/rpi_wordclock/tree/develop

After switching off audio it all worked fine i german.

Then I: cd ~ git clone https://github.com/phenze/rpi_wordclock rpi_wordclock_phenze cd rpi_wordclock_phenze/ git checkout --track origin/feature/swedish

And I got the following result pi@raspberrypi:~ $ cd ~ pi@raspberrypi:~ $ git clone https://github.com/phenze/rpi_wordclock rpi_wordclock_phenze Klonar till "rpi_wordclock_phenze"... remote: Enumerating objects: 5145, done. remote: Counting objects: 100% (2000/2000), done. remote: Compressing objects: 100% (1638/1638), done. remote: Total 5145 (delta 557), reused 1751 (delta 356), pack-reused 3145 Tar emot objekt: 100% (5145/5145), 15,99 MiB | 2,72 MiB/s, klart. Analyserar delta: 100% (2559/2559), klart. pi@raspberrypi:~ $ cd rpi_wordclock_phenze/ pi@raspberrypi:~/rpi_wordclock_phenze $ git checkout --track origin/feature/swedish Grenen feature/swedish ställdes in att spåra fjärrgrenen "feature/swedish" från "origin". Växlade till en ny gren "feature/swedish" pi@raspberrypi:~/rpi_wordclock_phenze $

I guess I did something wrong since I now have two folders. rpi_worldclock and worldclock_phenze

I understand that it must be frustrating trying to explain to a novice like me, how to perform the installation. My defence is that I am new to this and that I will be 70 in a few months and my brain perhaps works at a lower speed than earlier in life. Thanks again for helping me!

poa0314 avatar Dec 15 '21 09:12 poa0314

70 ?? And you doing that kind of stuff ? Thats amazing.

Stor respekt !

Everything is fine now. When the clock works in german that is exactly what we wanted.

You have two folder because you have used two different versions of the wordclock software.

In the folder rpi_worldclock there is @bk1285's Version which you should use in future. When all the swedish changes are merged back.

But for the moment you can use the software installed in the rpi_wordclock_phenze folder because there are all the needed changes for swedish (hopefully).

So all you have to do for now is:

  • Change the config file for the installation in the folder rpi_wordclock_phenze (rpi_wordclock_phenze/wordclock_config/wordclock.cfg) to use swedish language
  • Run the software in the rpi_wordclock_phenze folder with sudo python3 /home/pi/rpi_wordclock_phenze/wordclock.py

Your cronjob entry should then look like that: @reboot sudo python3 /home/pi/rpi_wordclock_phenze/wordclock.py

phenze avatar Dec 15 '21 10:12 phenze

Thank you for the encouraging comments! These days I do whatever I like from morning to evening and this is one of the things I like to spend my time on doing.

The clock is now working in Swedish!!!

I found some mistakes in time_swedish.py that i have corrected. I add the corrected file at the end.

I try to understand how the plugins can be activated?

Is it trigged by the pushbuttons and if so is this the only way to run them?

Another question is how to connect to wifi if I make a clock to a friend. Can it be done from a PC or even a phone?

time_swedish.txt

poa0314 avatar Dec 15 '21 14:12 poa0314

The plugins can be activated by using the web interface. Just go to the IP address assigned to your clock.

FrankX0 avatar Dec 15 '21 20:12 FrankX0

Okay great. Is now everything working as expected for swedish? Then i will as @bk1285 to merge your changes to the main repo.

The Plugins can be activated in both ways (Buttons and via Web Interface).

1. Buttons

  • You can configure which the gpio pins for the buttons in the config file (wordclock_interface section)
  • You can also define which state will trigger a button push (gpio_low or gpio_high --> that means if there is voltage when pressing the button or not).
  • With the return/middle button you get to the main menu of the clock (white clock should be displayed)
  • You can now select the plugins with the left/right buttons
  • Another push on the return Button will start the selected plugin
  • I don't use the buttons anymore so i hope this is correct

2. Web Interface

  • A better way to control the clock is the web interface
  • For this to work you need a working wifi connection on you raspberry
  • Depending on the Raspberry model you either have a wifi chip onboard (since Raspberry 3) or you need a extra wifi dongle (edimax)
  • Wifi can be configured via raspi-config
  • Take a look here (Method 2: Configure WiFi from Command Line with Raspi-Config) - https://www.seeedstudio.com/blog/2021/01/25/three-methods-to-configure-raspberry-pi-wifi/)

phenze avatar Dec 16 '21 06:12 phenze

I have tried the Web interface and most of the plugins works great.

The only real problem I have now is that the clock suddenly can switch to german layout and then later back again. It can also be flickering between the Swedish and German layouts.

I do not know if this gives you an idea of the problem.

pi@raspberrypi:~ $ sudo python3 rpi_wordclock_phenze/wordclock.py 2021-12-16 09:59:42 raspberrypi root[1256] INFO Software version: v1.0.0-dev-113-ga9b49b6 2021-12-16 09:59:42 raspberrypi root[1256] INFO Parsing /home/pi/rpi_wordclock_phenze/wordclock_config/wordclock_config.cfg 2021-12-16 09:59:42 raspberrypi root[1256] INFO Interface type set to gpio_low 2021-12-16 09:59:42 raspberrypi root[1256] INFO Wiring configuration 2021-12-16 09:59:42 raspberrypi root[1256] INFO WCA_WIDTH: 11 2021-12-16 09:59:42 raspberrypi root[1256] INFO WCA_HEIGHT: 10 2021-12-16 09:59:42 raspberrypi root[1256] INFO Num of LEDs: 114 2021-12-16 09:59:42 raspberrypi root[1256] INFO Wiring layout: bernds_wiring 2021-12-16 09:59:42 raspberrypi root[1256] INFO Setting language to swedish. 2021-12-16 09:59:42 raspberrypi root[1256] INFO Imported plugin 0: "feed_parser". 2021-12-16 09:59:42 raspberrypi root[1256] INFO Skipping plugin time_as_words_dutch since it is set to activate=false in the config-file. 2021-12-16 09:59:42 raspberrypi root[1256] WARNING Defaulting to reference value for [plugin_test_strip] activate 2021-12-16 09:59:42 raspberrypi root[1256] INFO Imported plugin 1: "test_strip". 2021-12-16 09:59:42 raspberrypi root[1256] INFO Imported plugin 2: "matrix". 2021-12-16 09:59:42 raspberrypi root[1256] INFO Imported plugin 3: "restart". 2021-12-16 09:59:42 raspberrypi root[1256] INFO Imported plugin 4: "leds_off". 2021-12-16 09:59:42 raspberrypi root[1256] INFO Imported plugin 5: "time_in_seconds". 2021-12-16 09:59:42 raspberrypi root[1256] INFO Skipping plugin time_as_words_german since it is set to activate=false in the config-file. 2021-12-16 09:59:42 raspberrypi root[1256] WARNING Assumes no temperature sensor to be attached. 2021-12-16 09:59:42 raspberrypi root[1256] INFO Imported plugin 6: "weather_forecast". 2021-12-16 09:59:42 raspberrypi root[1256] INFO Imported plugin 7: "tetris". 2021-12-16 09:59:42 raspberrypi root[1256] INFO Imported plugin 8: "shutdown". 2021-12-16 09:59:42 raspberrypi root[1256] INFO Imported plugin 9: "rainbow". Using brigtness sensor : False 2021-12-16 09:59:42 raspberrypi root[1256] INFO Selected "time_default" as default plugin 2021-12-16 09:59:42 raspberrypi root[1256] INFO Imported plugin 10: "time_default". 2021-12-16 09:59:43 raspberrypi root[1256] INFO Imported plugin 11: "sunrise". 2021-12-16 09:59:43 raspberrypi root[1256] INFO Imported plugin 12: "snake". 2021-12-16 09:59:43 raspberrypi root[1256] INFO Imported plugin 13: "ip_address". 2021-12-16 09:59:43 raspberrypi root[1256] INFO Imported plugin 14: "time_matrix".

  • Serving Flask app "wordclock_interfaces.web_interface" (lazy loading)
  • Environment: production WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.
  • Debug mode: off Exception ignored in thread started by: <bound method web_interface.threaded_app of <wordclock_interfaces.web_interface.web_interface object at 0x75478568>> Traceback (most recent call last): File "/home/pi/rpi_wordclock_phenze/wordclock_interfaces/web_interface.py", line 71, in threaded_app self.app.run(host='0.0.0.0', port=port) File "/usr/lib/python3/dist-packages/flask/app.py", line 990, in run run_simple(host, port, self, **options) File "/usr/lib/python3/dist-packages/werkzeug/serving.py", line 1052, in run_simple inner() File "/usr/lib/python3/dist-packages/werkzeug/serving.py", line 996, in inner srv = make_server( File "/usr/lib/python3/dist-packages/werkzeug/serving.py", line 847, in make_server return ThreadedWSGIServer( File "/usr/lib/python3/dist-packages/werkzeug/serving.py", line 740, in init HTTPServer.init(self, server_address, handler) File "/usr/lib/python3.9/socketserver.py", line 452, in init self.server_bind() File "/usr/lib/python3.9/http/server.py", line 138, in server_bind socketserver.TCPServer.server_bind(self) File "/usr/lib/python3.9/socketserver.py", line 466, in server_bind self.socket.bind(self.server_address) OSError: [Errno 98] Address already in use 2021-12-16 09:59:53 raspberrypi root[1256] INFO Running plugin time_default.

poa0314 avatar Dec 16 '21 09:12 poa0314

Yes. There a running another instance of the wordclock.

Remember that you have to versions installed. Did you add anything to the crontab yet (sudo crontab -e)?

Remember in your case you have to change the line: @reboot sudo python3 /home/pi/rpi_wordclock/wordclock.py to @reboot sudo python3 /home/pi/rpi_wordclock_phenze/wordclock.py

Change it and then after a restart everything should run fine.

When adding anything to the crontab you dont have to manually start the wordclock. This will get startet automatically

phenze avatar Dec 16 '21 09:12 phenze

The plugins and the clock now works fine, but I found an error in time_swedish. In german number ZWÖLF is on the first and last row of list(range). I guess that it has to do with how the time is presented in german, and perhaps the use of "UHR" in the end. Do you have enough information to guide me how to do.

Is there a better way to check that all times are correct than look at the clock for twelve hours?

self.hours= [list(range(49,54)),
list(range(57,60)),
list(range(55,59)),
list(range(67,71)),
list(range(84,88)),
list(range(73,77)),
list(range(100,105)),
list(range(60,66)),
list(range(89,93)),
list(range(80,84)),
list(range(93,97)),
list(range(77,80)),
list(range(49,54))] self.full_hour= list(range(107,110)) a

poa0314 avatar Dec 16 '21 11:12 poa0314

You can use the simulator and set a time manually. But i think that will be a little bit to hard to explain.

You can send be a full list of possible time values an i will check it for you. In the meantime there is no better way than looking at it for twelve hours :D

All is need is what should be displayed in every 5 minute step. And a list of all possible hour values.

phenze avatar Dec 16 '21 12:12 phenze

Hope that this is what you are looking for. I have typed it in next to the german equals.

I have seen that hour "TOLV" is missing the "T" and that pixel 60 is on at some times and should never be on.

Urtavla.pdf

This class returns a given time as words (string):: """

def __init__(self):
    self.prefix = "ES IST "     KLOCKAN ÄR
    self.minutes = ["",
        "FUNF NACH ", \         FEM ÖVER
        "ZEHN NACH ", \         TIO ÖVER
        "VIERTEL NACH ", \      KVART ÖVER
        "ZWANZIG NACH ", \      TJUGO ÖVER
        "FUNF VOR HALB ", \     FEM I HALV
        "HALB ", \              HALV
        "FUNF NACH HALB ", \    FEM ÖVER HALV
        "ZWANZIG VOR ", \       TJUGO I
        "VIERTEL VOR ", \       KVART I
        "ZEHN VOR ", \          TIO I
        "FUNF VOR "]            FEM I
    self.hours = ["ZWOLF", \    TOLV
        "EIN", \                ETT
        "ZWEI", \               TVÅ
        "DREI", \               TRE
        "VIER", \               FYRA
        "FUNF", \               FEM
        "SECHS", \              SEX
        "SIEBEN", \             SJU
        "ACHT", \               ÅTTA
        "NEUN", \               NIO
        "ZEHN", \               TIO
        "ELF", \                ELVA
        "ZWOLF"]                TOLV
    self.full_hour_suffix = " UHR" NOT USED

poa0314 avatar Dec 16 '21 12:12 poa0314

I found some cosmetic changes that place the "I" closer to the different minutes. I include the modified file. I guess that the original problems remains and appers round tvelve. I will look att that round midnight or lunchtime.

time_swedish.txt

poa0314 avatar Dec 16 '21 19:12 poa0314

I think that I have solved the problems with "time_swedish", but it is difficult to check everything without spending a whole day in front of the clock.

When I am now almost satisfied how the clock works I am looking for a safe way to copy/clone the SD-card. I have heard that som of these tools are dangerous to use. Do you know anything regarding EaseUS or any other tool?

Uppdaterad fil. time_swedish.py.txt

poa0314 avatar Dec 17 '21 13:12 poa0314

Nice to know the clock also speaks Swedish now! Regarding backup and restore of your SD card: I would suggest Etcher.

FrankX0 avatar Dec 17 '21 18:12 FrankX0

Is it possible to clone an SD-card including OS with Etcher?

I tried using Copy using Raspberry Pi. It works but without OS as I understand it.

I use Raspberry Pi Imager to install OS and language and wifi. It has an option #custom.img", is this a way to create a clone?

poa0314 avatar Dec 18 '21 14:12 poa0314

With Etcher you clone the entire SD card. As far as I know PI imager is to install an online image or a custom image you downloaded yourself.

FrankX0 avatar Dec 18 '21 15:12 FrankX0

Etcher was the perfect tool for me and worked without any problems.

I now have to finalize the mechanical build with a rusty steel frontplate.

The only thing I miss is a light sensor controlling the LEDs. Is this an ongoing job?

I am very greatful for all excellent support!

poa0314 avatar Dec 18 '21 16:12 poa0314

Sorry i don't had a minute this weekend.

I have checked your changes. Everything looks good now 👍 Well done. I will ask Bernd to merge it back in the development branch.

I have a working light sensor. Needed code is already implemented. All you have to do is to install a lux sensor (i have used tsl2561).

Then you can enable using the brightness sensor in the config file (use_brightness_sensor = true)

For more inspiration : https://github.com/bk1285/rpi_wordclock/issues/139 https://github.com/bk1285/rpi_wordclock/issues/27

phenze avatar Dec 20 '21 06:12 phenze

Excellent, du you also have info how to wire it?

Den mån 20 dec. 2021 07:42Pascal Henze @.***> skrev:

Sorry i don't had a minute this weekend.

I have checked your changes. Everything looks good now 👍 Well done. I will ask Bernd to merge it back in the development branch.

I have a working light sensor. Needed code is already implemented. All you have to do is to install a lux sensor (i have used tsl2561).

Then you can enable using the brightness sensor in the config file (use_brightness_sensor = true)

For more inspiration : #139 https://github.com/bk1285/rpi_wordclock/issues/139 #27 https://github.com/bk1285/rpi_wordclock/issues/27

— Reply to this email directly, view it on GitHub https://github.com/bk1285/rpi_wordclock/issues/214#issuecomment-997640810, or unsubscribe https://github.com/notifications/unsubscribe-auth/AWUDHRKRKTRORV6BWTSABLLUR3F7HANCNFSM5JCW7KVA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you authored the thread.Message ID: @.***>

poa0314 avatar Dec 20 '21 17:12 poa0314

wire_tsl2561

phenze avatar Dec 21 '21 06:12 phenze