-
Notifications
You must be signed in to change notification settings - Fork 105
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Scroll text feature #210
Scroll text feature #210
Conversation
GUI implemented Text repeat still to be implemented.
Ready for beta-testing
Fix for a last minute change....
Fix for last minute change......
Thanks a lot for your contribution, @FrankX0! This is a really cool feature! ... I see already tons of opportunities to use it.. :) However, I ran into the following issue: Apart from that, I plan to merge develop by end of November, releasing some cool new features. ... and this feature should definitely be part of it ;) Thumbs up 👍 Best, |
@@ -82,6 +82,128 @@ | |||
single-line menu-props="bottom"> | |||
</v-select> | |||
</v-card-text> | |||
|
|||
<v-divider></v-divider> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When I saw the new web interface, I was wondering to maybe even move it to a new tab: Besides "Control" and "Colors" maybe something like "Text", "Message" or similar. How do you think about that, @FrankX0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That was my first idea. But I think it would take too much space.
With the collapsible approach in "Control", I think it fits in nicely.
@@ -137,7 +149,7 @@ class Color(Resource): | |||
def get(self): | |||
default_plugin = web_interface.app.wclk.plugins[web_interface.app.wclk.default_plugin] | |||
channel_wise = lambda x: {'red': x.r, 'green': x.g, 'blue': x.b} | |||
channel_wise = lambda x: {'blue': x & 255, 'green': (x >> 8) & 255, 'red': (x >> 16) & 255} | |||
#channel_wise = lambda x: {'blue': x & 255, 'green': (x >> 8) & 255, 'red': (x >> 16) & 255} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed by mistake?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I had to comment it out otherwise I get following error:
File "/home/pi/rpi_wordclock/wordclock_interfaces/web_interface.py", line 152, in <lambda>
channel_wise = lambda x: {'blue': x & 255, 'green': (x >> 8) & 255, 'red': (x >> 16) & 255}
TypeError: unsupported operand type(s) for &: 'Color' and 'int'
Really nice patch, @FrankX0 👍 |
The "crashing" issue is also fixed: this was due to enabling the feature without setting date and/or time. |
@@ -51,7 +51,7 @@ Instead of *flask-restplus* which is no longer maintained we are using now *flas | |||
For the great *rpi-ws281x* Library there is no need to compile it yourself. It is just installed via pip now. | |||
|
|||
``` | |||
sudo pip3 install pytz astral feedparser pillow svgwrite freetype-py netifaces monotonic flask-restx rpi-ws281x | |||
sudo pip3 install pytz astral feedparser pillow svgwrite freetype-py netifaces monotonic flask-restx rpi-ws281x coloredlogs |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
I plan to test + merge on Sunday, Nov 21st. Ideally, it'll make it right to master/main afterwards. |
...leaving you all > 20 days time for a git pull before Dec, 24th ;) |
Added `copyfile` to copy initial config file.
Normally via Pull request in @bk1285 Are there any changes in my |
As far as I can find out, at least following fail and I think fixed in your branch. The weather-forecast plugin is broken. Edit: now I remember. The main reason why the weather-forecast plugin doesn't work is that pywapi no longer works.
|
Pywapi replaced by OpenWeatherMap. Fixes #163
Allows text to be displayed when showing the time (feature request #190).
The (configurable) text is shown from a configurable date and time, and is repeated after a configurable amount of time.
When enabled, the text will be shown once for verification.
All configurations are done through the web-interface.
Please let me know when bugs are found or when changes are required.