Coder Social home page Coder Social logo

bk1285 / rpi_wordclock Goto Github PK

View Code? Open in Web Editor NEW
214.0 214.0 107.0 30.07 MB

Software to create a Raspberry Pi based wordclock

License: GNU General Public License v3.0

Python 10.61% JavaScript 64.35% CSS 2.48% HTML 1.77% Less 9.91% SCSS 10.88%
diy led ledstrip python raspberry raspberry-pi rest-api webinterface wordclock

rpi_wordclock's People

Contributors

bk1285 avatar burgyl avatar cibear avatar dariusbogoslov avatar dependabot[bot] avatar frankx0 avatar ghwc2015 avatar heernmeester avatar momonunu avatar mrksngl avatar oxivanisher avatar plotabot avatar pueppixxxx avatar simongolms avatar svenjacobi avatar tetrikus avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

rpi_wordclock's Issues

Disable the three bouttons

Hi,
For my projet, I dont need the three bouttons. Please could we have the possibility ton disable them to avoid the "Pin 17 pressed." error.

Fragen zur Nutzung der Buttons

Hallo,

meine Wortuhr funktioniert inzwischen dank der Anleitung wunderbar, vielen Dank schonmal dafür. Jedoch habe ich das Problem, dass ich die Buttons nicht ans Laufen bekomme.

Dauerhaft erhalte ich die Meldung: "Pin 17 pressed".

Die Buttons sind anhand der Anleitung verkabelt und angeschlossen. Muss ich sonst noch etwas beachten?

In dem Video ist noch ein kleiner Controller zwischengeschaltet (jedenfalls sieht dies so aus).
Handelt es sich dabei um den Temperatursensor oder was genau ist das?

Vielen Dank für eure Hilfe.

Nhtl.

Ideen / Fragen

Hallo,

ich habe 2 Fragen:

  1. Was habt ihr für einen Kleber für die LED Strips genommen - di sind ja so glatt das Heisskleber null hält :-(

  2. Ich wollte das Projekt noch um 2 Funktionen erweitern:
    a) Temperatursensor/Luftfeuchtigkeitssensor und Anzeige der Werte.
    b) Abschalten der LEDs je nach Zeitplan oder wenn mein Handy nicht im WLAN ist.
    (einfach zum Stromsparen)

Hat schon Jemand was in der Art versucht? Wenn ja würde ich mich über ein kurzes Feedback freuen.

Viele Grüße
Rene

NeoPixel dependency is too old to accept customized brightness values and correct RGB-settings

I did a clean install of the wordclock software as documented in the readme. With the current master of the https://github.com/jgarff/rpi_ws281x library, the wordlock is not working And with the mentioned commit https://github.com/jgarff/rpi_ws281x/tree/2f9e03c45ba0964029204db565ad9d6233b3a1a6, I get the following warning:

Exception AttributeError: "'Adafruit_NeoPixel' object has no attribute '_leds'" in <bound method Adafruit_NeoPixel.__del__ of <neopixel.Adafruit_NeoPixel object at 0xb633f370>> ignored
WARNING: Your NeoPixel dependency is to old to accept customized brightness values and correct RGB-settings.

Do you have another commit with these features available which you know that it is running?

freetype exeption: cannot open resource

My setup: latest jessie on RasPi2

I followed the installation instructions step by step (with std .cfg) and realised that the problem described in issue #12 doesnt exist anymore.
The suggested solution to install richardghrist's version of rpi_ws-281x doesnt work in my setup, because it uses mailboxes which aren't supported anymore.
--Correct me if I'm wrong--
When I'm starting up wordclock.py all seems fine...
...until it tries loading the plugin "time_as_words_german".
Next it is supposed to load these plugins:

  • [plugin_time_default]
  • [plugin_time_matrix]
  • [plugin_weather_forecast]

After that (I think) the fontdemo.py is not compatible to the version of rpi_wordclock (anymore).
This is the output (after Imported plugin 10: "time_as_words_dutch".):

Traceback (most recent call last):
  File "wordclock.py", line 146, in <module>
    word_clock.startup()
  File "wordclock.py", line 86, in startup
    self.wcd.showText(self.config.get('wordclock', 'startup_message'))
  File "/home/pi/rpi_wordclock/wordclock_tools/wordclock_display.py", line 157, in showText
    fnt = fontdemo.Font(font, self.wcl.WCA_HEIGHT)
  File "/home/pi/rpi_wordclock/fontdemo.py", line 153, in __init__
    self.face = freetype.Face(filename)
  File "/usr/local/lib/python2.7/dist-packages/freetype/__init__.py", line 979, in __init__
    if error: raise FT_Exception( error )
freetype.ft_errors.FT_Exception: FT_Exception:  (cannot open resource)

Then it abborts its startup.

Any suggestions??
regards @plotaBot

PS cant wait to see it working

EDIT:

I finally got it working!! My fault:
Due to the reason I always use raspbian jessie LITE for these kind of projects, the fonts in /usr/share/fonts/truetype/freefont/ were missing. 😆

So @bk1285 can you please add ttf-freefont in your package installation...stuff?
Plus: You no longer need the note that the rpi_ws281x library from jgarff isnt compatible with RasPi B+/2/3 or any RasPi newer (for experts: that uses GPIO base addr 0x3F000000 😜).

personal notice: turn on brain before opening an issue on github due to a lack of attention

Pin 17 always pressed

I do not want to use Buttons, but when I set type to gpio_high it does not make a difference.

Easiest Setup: Pi B+, no Buttons, Edimax Wifi and latest Jessie

It seems that the led stripe works fine, cause it is obviously going through all plugins...but all the time...

Any idea?
Thanks

Schaltungsvariante "spiegelverkehrt"

Hallo Bernd,

beim Zusammenlöten meiner Matrix habe ich nicht darauf geachtet, dass deine Bilder unter Concepts und wiring layout von hinten abgebildet waren.
Meine Variante benötigt daher eine spiegelverkehrte wiring.py

Habe diese erstellt und würde mich freuen wenn du die in den Code einbauen kannst - dann kann ich mit git zukünftige Änderungen mitbekommen.


class timos_wiring:
    '''
    A class, holding all information of the wordclock's layout to map given
    timestamps, 2d-coordinates to the corresponding LEDs (corresponding to
    the individual wiring/layout of any wordclock).
    If a different wordclock wiring/layout is chosen, this class needs to be
    adopted.
    '''

    def __init__(self):

        # LED strip configuration:
        self.LED_COUNT   = 114     # Number of LED pixels.
        self.LED_PIN     = 18      # GPIO pin connected to the pixels (must support PWM!).
        self.LED_FREQ_HZ = 800000  # LED signal frequency in hertz (usually 800khz)
        self.LED_DMA     = 5       # DMA channel to use for generating signal (try 5)
        self.LED_INVERT  = False   # True to invert the signal (when using NPN transistor level shift)

        self.WCA_WIDTH   = 11      # Wordclock array width
        self.WCA_HEIGHT  = 10      # Wordclock array height

    def setColorBy1DCoordinates(self, strip, ledCoordinates, color):
        '''
        Linear mapping from top-left to bottom right
        '''
        for i in ledCoordinates:
            self.setColorBy2DCoordinates(strip, i%self.WCA_WIDTH, i/self.WCA_WIDTH, color)

    def setColorBy2DCoordinates(self, strip, x, y, color):
        '''
        Mapping coordinates to the wordclocks display
        Needs hardware/wiring dependent implementation
        Final range:
             (0,0): top-left
             (self.WCA_WIDTH-1, self.WCA_HEIGHT-1): bottom-right
        '''
        if x%2 == 0:                    # even columns 0,2,4...
            pos = (x)*self.WCA_HEIGHT+y+2               # last +2 for the minute LEDs before the WCA
        else:                           # odd columns 1,3,5...
            pos = (self.WCA_HEIGHT)+(self.WCA_HEIGHT*x)-y+1

        strip.setPixelColor(pos, color)

    def mapMinutes(self, min):
        '''
        Access minutes (1,2,3,4)
        Needs hardware/wiring dependent implementation
        This implementation assumes the minutes to be wired as first and last two leds of the led-strip
        '''
        if min == 1:
            return 1
        elif min == 2:
            return 113
        elif min == 3:
            return 112
        elif min == 4:
            return 0
        else:
            print('WARNING: Out of range, when mapping minutes...')
            print(min)
            return 0

    def getMinuteIndices(self):
        '''
        Returns all indices of the led strip, which are representing minutes
        .. todo:: Merge/unify with mapMinutes
        '''
        return [1, 113, 112, 0]

    def getWcaIndices(self):
        '''
        Returns all indices of the led strip, which are part of the word clock array
        '''
        return range(2, self.LED_COUNT-2)

WS2812B mit WS2811 Controller (Nachtrag #11)

Hallo,

ich habe nun noch etwas neues probiert und bin zufällig auf etwas gestoßen.

Der WS2812B mit WS2811 Controller aktualisiert sich bei mir nur, wenn ich ihn kurz vom Strom trenne und erneut anschließe. Hast du eine Idee warum?

Die LED´s werden über den Python Script perfekt angesteuert, wenn ich dann das Netzteil vom WS2812B trenne und nach wenigen Sekunden wieder anschließe, leuchten die LED´s wieder aktuell. Wenn ich das Netzteil aber dauerhaft dran lasse, dann leuchten die LED´s zwar, aktualisieren sich aber nicht. -> Die Uhr bleibt stehen. (Gleiches auch bei dem Rainbow-Test, die LED´s aktualisieren sich nur, wenn der Strom kurz getrennt wird)

Ich habe nun erst einmal meinen alten Pi B+ am laufen. Die neue WS281x Lib für den Pi2 scheint zu funktionieren (zumindestens gab es keine Fehlermeldung), das die LED´s sich aber nicht aktualisieren, passiert auch hier.

p.s. hatte das andere Ticket #11 nicht aufbekommen.

Frage Verkabelung

Hallo,

ich will mal versuchen dein Super Projekt nachzubauen und habe 2 Fragen zur Verkabelung.

  1. An welchem Pin hast du die Datenleitung der LEDs angeschlossen.
  2. Wo schliesst man die Schalter an?

Vielen Dank und Viele Grüße
Rene

Some Points for troubleshooting section

Hi,
i have some things that you could ad to the troubleshooting section.

1.) When the LED's do not light up as expected check if there is a ground connection from the pi to the LED Strip. That is absolutely necessary.

2.) Another problem could be that the LED Strips are connected in the wrong direction. Take care of the little arrow on the strips to connect them properly.

3.) a Wiring Layout from these pull up buttons were nice. Like you i'm also not an expert in electronics. I think a spent about 4 hours until i understood how to connect them. Perhaps anybody could create some pictures for dummies. (especially for the wordclock)

Android App

I copied @euchkatzl s fork and I also installed his Android App. Whenever I look for the host in the settings by entering the IP, the App does not find the Wordclock.
Is this App working already and does anybody have an idea for solving my problem?

Best, Daniel

Uhrzeit wird angezeigt, zusätzlich jedoch weitere Buchstaben

Hallo,

ich habe gestern meine WordClock fertig gestellt und hatte kurzfristig die korrekte Uhrzeit in weißer Schrift auf meiner Uhr.

Wenige Sekunden später wechselte die Farbe zu blau und seither leuchten zusätzlich noch einige Buchstaben in weiß.

Hat jemand von euch eine Ahnung, woran das liegen könnte?
Die Blaue Farbe ist übrigens auch nicht durchgängig gleich hell/dunkel.

Grüße

Position of holes

I have modified the file bernds wiring to see the position of the holes. Could you check ? I could provide you with the svg file as well if you tell me your email adress. SVG upload is not possible....
position.pdf

stencil/clock face

Hello,
Are you able to provide link(s) to online vendors who can produce customised stencil/clock faces perhaps the online company used for this? -might be useful to add to the hardware list in the documentation.
Thanks :)

Exact Frame Size?

Hi. I'm using a raspbery pi zero w and so far the software is running great but i'm having trouble finding out the exact measurements used for the LED framing. In the config file says the absolute size is listed at 450mm x 450mm with a 20mm margin from the edge of the stencil to the minute LEDs. I traced that out on some paper and noticed that those dimensions don't quite match up to what is shown in the build pictures you have posted. For example the margin in the photos is large enough to box in the Raspberry Pi. Should I just assume outside of the 450x450mm is purely a builder's choice as to the size? Thanks for your help. Looking forward to completing this project!

Raspberry 2 support

Hi,
I started building the wordclock as described in the documentation and used a Raspberry Pi 2.
It did not work. There was no error message, when running the wordclock.py or sandtest.py

After some research, I found out, that the ws281x package is not supporting Raspberry Pi 2 yet.
As I did the installation again on a raspberry pi 1, everything worked fine.

I would like to propose, that you highlight in the documentation, that the software is only running on Raspberry PI 1.

This will reduce the time for others to search for mistakes...

Cheers from Berlin,
Kai

Plugin Sunset failed Import

Hey,
I gave away my World Clock as a gift, but now I got the feedback, that the sunset is missing.
After I SSH'ed me to the pi and watched the startup, I do got the error, that sunset failed to import.
I downloaded the plugin again. renamed the folder and uploaded to the pi, but even the "new" plug in failed to be imported.
Is there any log or anything I should check? Honestly I have no clue where to start my search.
Any help is highly appreciated.

Many thanks in advance
Mathias

Button functions

Hey all,
I've now also added three buttons.
I've figured out that the left button changes the clock colors.
But what do the other buttons do?
How can I enter the other plugins like Matrix, temperature and so on?

Angaben zur Holzplatte

Hallo, erstmal vielen Dank für das coole Projekt. Möchte jetzt auch mein eigenes Projekt starten. Ich habe in der Beschreibung keine Angaben zur verwendeten Holzplatte gefunden. Vermute es könnte eine MDF Platte sein. Welche Abmessungen, welche Stärke ? Und welchen Durchmesser haben die Bohrlöcher bei Eurem verwendeten 30 LED/m LED Strip ?

wiring concept Grafik

Hi Bernd,

beim Zusammenbau bin ich mit der Grafik "wiring concept" nicht so ganz klargekommen.
Nummerierung der x- und y-Achse scheint mir nicht zu passen.

Ich habe für mein wiring Schema deine Grafik angepasst - vielleicht magst du das mit in die Doku aufnehmen.
Ich habe unten noch das Schema für setColorBy1DCoordinates eingefügt - diese Nummerierung ist hilfreich für die unterschiedlichen Fronten.

Gruß
Timo

wiring_concept_timo

Need help

Hi all,

Sorry, if i write down my comment into the wrong directory, but didn´t found a directory for questions.

I´m also want to build a RPi wordclock. I´ve got a rpi a+ model with ws2812 led controller.
Unfortunately, I'm still a little inexperienced in matters of led-controlling with a raspberry pi.
I´ve finished the hardware setup and installed the software like the description.
But when i´m start the wordclock software the leds, do nothing.
I´ve tried to controll the strips with the strandtest.py software, but the leds do also nothing.
Only two leds in the middle of the strips lights up.
I thought i´ve got a misstake in the wiring, but i´ve checked all the solder joints and i think there look good.
I tried to wired up the wordclock with a 74AHCT125 level converter and a 1N4001 diode like the description of (adafruit).

Can you give me an idea, what i also can check.
Sorry about my stupid questions and bad english!
I hope you can help me.

Sprachvariante Schwäbisch/Ossi

Hallo Bernd,

ich habe die Erweiterung um die schwäbische "viertel nach" und "viertel vor" Variante erstellt.
Kannst du das in den Code mit einbauen?

Beispiel
es ist ein uhr
es ist fünf nach eins
es ist zehn nach eins
es ist viertel zwei
es ist zehn vor halb zwei
es ist fünf vor halb zwei
es ist halb zwei
es ist fünf nach halb zwei
es ist zehn nach halb zwei
es ist dreiviertel zwei
es ist zehn vor zwei
es ist fünf vor zwei

wordclock_plugins/time_default/time_swabian.py:

import datetime as dt

class time_swabian():
 '''
 This class returns a given time as a range of LED-indices.
 Illuminating these LEDs represents the current time on a german WCA in swabian
 '''

 def __init__(self):
    self.prefix = range(0,2) +  range(3,6)
    self.minutes=[[], \
        range(7,11) + range(35,39), \
        range(11,15) + range(35,39), \
        range(26,33), \
        range(11,15) + range(39,42) + range (44,48), \
        range(7,11) + range(39,42) + range(44,48), \
        range(44,48), \
        range(7,11) + range(35,39) + range(44,48), \
        range(15,22) + range(39,42), \
        range(22,33), \
        range(11,15) + range(39,42), \
        range(7,11) + range(39,42) ]
    self.hours= [range(49,54), \
        range(57,60), \
        range(55,59), \
        range(67,71), \
        range(84,88), \
        range(73,77), \
        range(100,105), \
        range(60,66), \
        range(89,93), \
        range(80,84), \
        range(93,97), \
        range(77,80), \
        range(49,54)]
    self.full_hour= range(107,110)

def get_time(self, time, withPrefix=True):
    hour=time.hour%12+(1 if time.minute/5 > 2 else 0)
    minute=time.minute/5
    # Assemble indices
    return  \
        (self.prefix if withPrefix else []) + \
        self.minutes[minute] + \
        self.hours[hour] + \
        ([60] if (hour == 1 and minute != 0) else []) + \
        (self.full_hour if (minute == 0) else [])

zusätzlich in wordclock_plugins/time_default/plugin.py

import time_swabian

und im config-file swabian statt german eintragen.

Icons have wrong colors

98e6e2c worked like magic 👍 I now have the correct colors i.e. for the matrix plugin (it was red before, I think it was related to jgarff/rpi_ws281x#122 ).
BUT the icons still are in wrong colors, meaning red and green are again swapped. I am not sure if this problem is only because of my LED strip, or if its a general one. Am I the only one with this problem?

(If it is a bug, I think it lies in https://github.com/bk1285/rpi_wordclock/blob/master/wordclock_tools/wordclock_display.py#L121-L122 )

Error during install of 3rd party dependency

Reporter by @Nthl25

Hallo zusammen,

ich bekomme beim installieren von python-scipy auf meinem Pi0 folgenden Fehler:

Es wurden 25,6 MB in 2 min 55 s geholt (145 kB/s).
E: Fehlschlag beim Holen von http://mirrordirector.raspbian.org/raspbian/pool/main/p/pillow/python-imaging_2.6.1-2+deb8u2_all.deb 404 Not Found [IP: 5.153.225.207 80].
Es existiert jedoch diese Datei mit einer anderen Kennung (?) (deb8u3_all.deb anstelle von deb8u2_all.deb).

Habt ihr eine Idee, was ich da machen kann, um die zu installieren?

Edit: Dieses Problem habe ich sowohl bei meinem Pi0 als auch bei meinem Pi2.

Grüße nthl23

Word clock displaying wrong colour in the plugins

Hello Bernd,

Finally finished the WordClock (English version) and noticed that my colours in various Plugins are the wrong colours compared to your video.

The main visual difference is with the Matrix Plugin, the colour is a bright red instead of green.
I have checked the 'time_matrix/plugin.py' file and it clearly shows green as the HTML code?

I can only guess the hardware or software has the wrong RGB calibration?

Hope you can help?

Kindest regards
Darren

Remote Control Web Interface

As explained here : #18
@bk1285 has implemented a new way to communicate with the wordclock (socket connection)

For the Remote Control to work we need another Web Interface which uses this socket connection

I would do this with node.js since apache will be a little bit oversized. This node.js Server can then by started with the wordclock. I think i will get this working.

@fecub can you please explain how you get your server working ?

@bk1285 : Any other suggestions ?

Raspberry Pi Zero

Hallo,

kann mir jemand von euch sagen, ob die Wordclock auch mit einem Raspberry Pi Zero funktioniert?
Leider gibt's häufig nur noch den Pi 3 zu kaufen, der ist aber in meinen Augen völlig überdimensioniert.

Grüße
nthl25

WS2812B mit WS2811 Controller

Hallo,
ich versuche seit einigen Tagen den WS2812B mit WS2811 Controller an einem Raspberry Pi 2 B laufen zu bekommen. Aktuell klappt es nicht. In Foren lese ich immer wieder das der WS2811 mit einem Pi nicht ansteuerbar ist. Ich habe die Installation gemäß deinem Howto vorgenommen, Fehler gab es keine. Ich habe verschiedene Raspian-Versionen probiert. Die Pythonscripte laufen und geben die Meldung aus das eine Taste gedrückt wurde, weil diese noch nicht vorhanden sind. Die LEDs rühren sich aber nicht. Hast du eine Idee?

Danke für das tolle Projekt.

not functioning correctly

Hello,
I have some troubles getting the clock to work. I connected all the cables to my rpi2b following bernds wiring and with the test function of the rpi_ws281x package i tested all the leds and they work. However when i start the rpi_wordclock all the leds randomly start flashing but it does not show the time. I installed raspbian and all of the packages twice and allso changed the rpi_ws281x library to 'Richards' library but that didnt work so i changed back to the 'original' jgarff library. Any ideas what i can change next? Is there a way to start the plugins from the terminal because i also dont understand what the buttons do. Thank you for your help!

Couple of Questions

Hi Bernd,

I would like to thank you very much for putting this Worclock into the world of living :)
Last couple of months i've made my own clock.
The layout of the stencil i used is from here: https://cdn.instructables.com/F1D/NLCG/HYPNVXKB/F1DNLCGHYPNVXKB.LARGE.jpg
The clock is including the wood etc 65cmx65cm.

There is for now a couple of things i would like to ask you now.

My Leds are beginning from the right-below corner and goes to the left-below corner.
At last it ends at the top row from left to go to the top right. When i would create a layout with the py file, how do i need to edit how the way of these leds are going. Also i dont have 4 LED's in the corner. You have the first 2 Led's also configured as 2 stips in the corner. So how do i get these out, and how do i configure my own stencil?
I could rotate my glass to have it like your way, but the wiring etc would end in the left side for the powering etc, and also in the top i am going to make a brightness controller :)

I saw also that i need a make my own "time_as_words_english" for my own stencil, so thats also a thing in my mind.

Further, in the wordclock.config.cfg i put english also in it, and wrote all of the characters in a matrix.

Do i forget something else now?

EDIT:

wordclock_plugin/time_matrix --> added my own "time_english" in the plugin.py
wordclock_plugin/time_default --> added my own time_english.py , but i need to rerange the text with my own stencil
wordclock_plugins/time_as_words_english --> made this one, according to the Dutch one

I can see the startup message, but it is so weird show... it goes from the below to the top, but you can see that it is not fitting my clock....

EDIT 2:
in the create_layout.py i found out that you add +4 in the led_count on line 126, i took this out, but no luck still with the startup message. Also i made the font size smaller in the wordclock_config.cfg and run the "create_layout -c file" with it.

I seriously am at the place, where i dont know where to look now...

EDIT 3:
f1dnlcghypnvxkb large

I edited the time_english.py in the time_default, to these values.
Example : range 240-242 and range 243-245
range 131-138

Design Frontplatte

Hallo,

ich habe doch noch ein paar Fragen, wie groß war der Abstand zwischen den LEDs auf Deinem LED Strip und woher hattest Du das Layout der Frontplatte ? Ist es das aus dem Github ? Wo hast Du die Glasplatte drucken lassen ?

Vielen Dank.

Liebe Grüße,

T. Ihmann

software Voraussetzungen

Hallo Bernd,

ich bin gerade dabei die Uhr nachzubauen.
Leider bekomme ich die Software noch nicht ans Laufen.

Die Abhängigkeiten scheinen über das hinauszugehen was auf der Anleitungsseite beschrieben ist.
die PIL habe ich noch installiert bekommen, aber jetzt verlangt das Programm "scipy" - und das scheint sehr aufwändig zu installieren zu sein.

Hast du evtl. noch eine genauere Anleitung bzw. Auflistung der Voraussetzungen?

Gruß
Timo

Dimensions of the LED strip

Hi,

Just about to start my adventure into your WordClock and would like to asked, which LED strip I should buy as they are so many on the market.

The options that are available are:
30 LEDs/m
60 LEDs/m
74 LEDs/m
96 LEDs/m

I have found a reasonable eBayer in the UK :

http://www.ebay.co.uk/itm/1-5-30-60-144-leds-m-WS2812B-5050-RGB-IP20-IP67-5V-Addressable-LED-Light-Strip-/112084027623?var=&hash=item1a18ba88e7:m:mjGK79p8uQg7zs-l8orE1hw

Also I have purchased the new Raspberry Pi 3 with the inbuilt WIFI, will the software still work on this model or should I purchase the Pi2?

Thank you for all your instructions, cant wait to get started.

Darren

Ambient Light Sensor

Hi Guys!

Am looking to add an ambient light sensor to the RPI_Wordclock.

I can see a fair bit of brightness-related code in wordclock_plugins/time_default/plugin.py however can't seem to work out the best place to incorporate changes based on readings from a light sensor.

Has anybody thought about this?

Thanks,

Nathan

christians_wiring nutzen

Hallo,

Achtung! Die Uhr basiert anscheint doch nicht auf dem Layout christians_wiring. Ich habe mir nun meinen eigenen Wiring geschrieben. Siehe meinen 3. Post.

nach dem ich nun einen neuen LED Streifen bestellt habe, geht das Projekt auch bei mir weiter. Tatsächlich konnte mein alter LED Streifen mit genau den selben LED´s nicht gesteuert werden. - Defekt am LED Streifen ....

Der neue LED Streifen klappt nun wunderbar und Probelauf mit /root/rpi_ws281x/python/examples/strandtest.py läuft hervorragend.

Ich habe die Uhr nach dem Layout "christians_wiring" angefertigt.
Aktuell stehe ich jedoch vor dem Problem das die Ausgabe aber keine richtigen Wörter anzeigt. Es fehlt zum Beispiel "Es ist" und aus dem Wort "Uhr" wird "Muhr". Dies LED´s leuchten wild durcheinander.

Das Layout, die Sprache und die Maße meiner Uhr habe ich natürlich eingestellt:

/root/rpi_wordclock/wordclock_config/wordclock_config.cfg

`
[wordclock_display]
wiring_layout = christians_wiring

[stancil_parameter]
height=450
width=450
minute_margin=30
minute_diameter=5
wca_height=300
wca_width=295
font_type=Arial
font_size=20
language=german

[plugin_time_default]
activate = True
language = german

[plugin_time_as_words_german]
activate = False
`

In wie weit müssen die Maße der Uhr stimmen? - Muss ich noch zustzlich was beachten, dass das Layout von Christian geladen wird? Zugegeben: Wenn ich den Parameter auf das Layout von Bernd ändere, sieht die Ausgabe der Uhr komplett anders aus, aber immer noch eher Buchstaben-Salat als Uhr.

Wäre klasse, wenn ihr noch eine Idee habt.

Danke vorab.

Modulimport für Temperatursensor verhindert Programmstart

Hallo,

zunächst eine großes Lob für das tolle Projekt. Ich verfolge die Wordclock im Eigenbau Initiativen seit geraumer Zeit und freue mich, dass es jetzt eine Version mit dem Rapi gibt, die die Anzeigevarianten Temp etc. deutlich gegenüber der nur Zeitanzeige erhöht. Mangels eigner Programmierfähigkeiten bin ich für die Vorlage sehr dankbar. Uhr ist (die letzen beiden Tage) gebaut und funktioniert, juhu.Ein humble Pi hat die Vedrahtung bei mir noch etwas vereinfacht. Den Spannungsausgleich, der im youtube video angesprochen wurde, konnte ich so auch leicht verbauen.

Bei der Installation bin ich jedoch auf zwei Hürden gestoßen. Zum einen hat der Programmstart nicht funktioniert, da er versucht hat das modul für am2302 zu laden, was nicht funktioniert hat. Laut Beschreibung ist es optional und bei mir der Sensor (noch nicht) nicht vorhanden. Bei Programmstart war es zumindest bei mir jedoch eine echte Bedingung, ohne die das Programm nicht weiter lädt. Mit der Deaktivierung in der plugin.py in Zeile 1 über ssh (#import am2302_ths) war das Problem (zumindest provisorisch) gelöst.

Ein zweites Problem trat zuvor bei der Installation der Software auf. Zur Installation des Phyton packages mit sudo pip install pytz astral feedparser pillow svgwrite freetype-py muss zuvor noch das ausgeführt werden:

$ sudo apt-get build-dep python-imaging
$ sudo apt-get install libjpeg8 libjpeg62-dev libfreetype6 libfreetype6-dev

Jedenfalls war es bei mir so. Installation erfolgte auf einem alten RPi B Rev.2 mit Raspian Wheezy Stand heute.

Beste Grüße und nochmal Daumen hoch für das tolle Projekt. Die Anleitung auf Youtube war auch sehr Instruktiv.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.