]>
git.aero2k.de Git - sirius.git/log
Thorsten [Fri, 27 Nov 2026 12:51:41 +0000 (13:51 +0100)]
Pi guide: idea for sharing from an iPhone
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Thorsten [Fri, 27 Nov 2026 09:57:09 +0000 (10:57 +0100)]
Share from Android to the printer
sirius is now an installable web app with a share target. Things shared
to it open the compose page filled in: photos as a Dithergram (EXIF
rotation applied, scaled down on the server), xkcd links as the comic,
other text and links as a Poster. Printing still needs a button press,
so a foreign site posting to /share can't print anything.
With several printers the compose page offers a choice.
The tests now dispose of each test's engine, the suite had grown past
Postgres's 100 connections.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Thorsten [Fri, 27 Nov 2026 09:24:13 +0000 (10:24 +0100)]
Pi guide: set the bridge endpoint on its web page
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Thorsten [Fri, 27 Nov 2026 09:23:20 +0000 (10:23 +0100)]
Pi guide: clone the main branch explicitly
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Thorsten [Fri, 27 Nov 2026 09:22:25 +0000 (10:22 +0100)]
Add Chromium renderer, password change and Pi deployment
- renderer/: headless Chromium in its own container replaces PhantomJS
for HTML prints, with network access limited to public addresses
- Local login: change password page, forced change on first login,
reset_password management command
- deploy/pi/: setup script, systemd user units and guide for running
sirius on a Raspberry Pi with rootless podman
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Thorsten [Fri, 6 Nov 2026 23:28:22 +0000 (00:28 +0100)]
Apply login checks and redirect to the login
login_required sat above @route in printer_overview and printer_print,
so it was never applied and signed-out visitors got a server error.
Signed-out visitors now go to the login and back to the page they
wanted. /ext_api/ still answers 401, as programs can't use a login page.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018fP7RjM2W3Sjtdj31Vk2WE
Thorsten [Fri, 6 Nov 2026 23:28:20 +0000 (00:28 +0100)]
Add personality upload and compose pages
Change personality lets you place a face in a preview of the printer's
window. Faces always come out at 620 rows: the face prints last, and
anything shorter leaves the top of every print inside the printer.
Compose has poster text, quick draw and dithergrams after Nord Projects'
iOS app, plus xkcd comics. Everything is drawn on a canvas of 384 pixels
and uploaded from there, so the preview is what gets printed.
The canvases can only be tested in a browser, so tests/browser has
Playwright tests that run the real app with a fake printer.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018fP7RjM2W3Sjtdj31Vk2WE
Thorsten [Fri, 6 Nov 2026 17:48:45 +0000 (18:48 +0100)]
Hide scrollbar in printed output
PhantomJS can draw a scrollbar into the rendered page, which then gets
printed down the right edge. The trigger isn't understood: it was seen
on an image with large text, but not on the image alone or on long text.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Thorsten [Fri, 6 Nov 2026 17:48:44 +0000 (18:48 +0100)]
Add optional local login
Twitter is the only way to sign in, which makes the web UI unusable
without an X developer app. Setting LOCAL_LOGIN_USERNAME and
LOCAL_LOGIN_PASSWORD_HASH enables a single account at /login/local and
replaces the Twitter button on the landing page. Without them the route
returns 404.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Thorsten [Fri, 6 Nov 2026 17:48:42 +0000 (18:48 +0100)]
Fix Docker build on archived Debian buster
buster is EOL and its packages only remain on archive.debian.org, so
apt-get update fails with the default sources.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Joe Rickerby [Fri, 7 Jul 2023 15:47:55 +0000 (16:47 +0100)]
Merge pull request #16 from KTamas/patch-1
Update README.md
Joe Rickerby [Fri, 7 Jul 2023 15:41:49 +0000 (16:41 +0100)]
fix image in readme
Joe Rickerby [Fri, 7 Jul 2023 14:35:39 +0000 (15:35 +0100)]
Merge pull request #23 from phillipjf/feature/twitter_oauth
Feature/twitter oauth
Joe Rickerby [Fri, 7 Jul 2023 14:10:17 +0000 (15:10 +0100)]
Use requirements.txt as this feels more ideomatic to me
Phillip Ferentinos [Thu, 6 Jul 2023 19:42:59 +0000 (14:42 -0500)]
fix(migration): remove constraint migrations
Phillip Ferentinos [Thu, 6 Jul 2023 19:38:49 +0000 (14:38 -0500)]
build: add setup.py for heroku detection
Phillip Ferentinos [Thu, 6 Jul 2023 19:18:41 +0000 (14:18 -0500)]
test: fix mock in oauth test
Phillip Ferentinos [Thu, 6 Jul 2023 18:49:02 +0000 (13:49 -0500)]
test: mock twitter api call
Phillip Ferentinos [Thu, 6 Jul 2023 17:49:55 +0000 (12:49 -0500)]
test(oauth_flow): fix access_token format in test
Phillip Ferentinos [Thu, 6 Jul 2023 17:36:27 +0000 (12:36 -0500)]
build: match docker python base image to heroku buildpack runtime version, update snapshottest url
Joe Rickerby [Wed, 5 Jul 2023 21:44:21 +0000 (22:44 +0100)]
Ensure test deps are installed
Joe Rickerby [Wed, 5 Jul 2023 21:40:01 +0000 (22:40 +0100)]
modernise circle ci config
Joe Rickerby [Wed, 5 Jul 2023 21:39:48 +0000 (22:39 +0100)]
Specify packages for setuptools
Joe Rickerby [Wed, 5 Jul 2023 21:39:31 +0000 (22:39 +0100)]
Rollback the docker image upgrade
Phillip Ferentinos [Wed, 5 Jul 2023 00:02:19 +0000 (19:02 -0500)]
feat(friends): remove friends functionality and references
the twitter api is becoming prohibitive to use so removing friends reduces dependency
BREAKING CHANGE:
Phillip Ferentinos [Tue, 4 Jul 2023 23:56:25 +0000 (18:56 -0500)]
feat(twitter): update twitter auth to use oauth2 flow
Phillip Ferentinos [Fri, 30 Jun 2023 13:06:47 +0000 (08:06 -0500)]
build: update docker image to bullseye from buster
Phillip Ferentinos [Fri, 30 Jun 2023 13:05:28 +0000 (08:05 -0500)]
build: use pyproject.toml for dependency management over requirements.txt
adds the ability to split out testing dependencies from the application runtime dependencies
Joe Rickerby [Fri, 23 Apr 2021 17:44:17 +0000 (18:44 +0100)]
Update runtime version
Joe Rickerby [Fri, 28 Aug 2020 15:39:07 +0000 (16:39 +0100)]
Merge pull request #17 from nordprojects/limit-to-10
Only store the latest 10 messages on the server
Joe Rickerby [Fri, 28 Aug 2020 15:24:30 +0000 (16:24 +0100)]
Only store the latest 10 messages on the server to avoid the ire of
the Heroku hobby-dev plan
Tamás Kádár [Sun, 10 May 2020 12:26:42 +0000 (14:26 +0200)]
Update README.md
Joe Rickerby [Sun, 26 Apr 2020 12:44:52 +0000 (13:44 +0100)]
Merge pull request #14 from nordprojects/trim-messages
Trim stored messages on the server to 100 total per-printer
Joe Rickerby [Sun, 26 Apr 2020 12:21:42 +0000 (13:21 +0100)]
Trim stored messages on the server to 100 total per-printer
Some printers have APIs hooked up to them, so generate a lot of
messages, meaning we hit the Heroku limit for our plan. This should
resolve that.
Joe Rickerby [Sun, 26 Apr 2020 11:01:07 +0000 (12:01 +0100)]
Merge pull request #13 from notjosh/chore/image-snapshot-tests
Image Snapshot Tests
Joshua May [Mon, 14 Oct 2019 18:07:24 +0000 (11:07 -0700)]
datetime as default arg is a bad idea, turns out
Joe Rickerby [Mon, 14 Oct 2019 11:39:36 +0000 (12:39 +0100)]
Empty commit to test triggering CI
Joshua May [Mon, 14 Oct 2019 02:08:37 +0000 (19:08 -0700)]
We got updated templated snapshots goin', wee
Joshua May [Mon, 14 Oct 2019 02:08:17 +0000 (19:08 -0700)]
We can set the datetime from the outside for default_template
Joshua May [Mon, 14 Oct 2019 01:57:51 +0000 (18:57 -0700)]
Moved snapshot tests to their own file, and added template testing
Joshua May [Mon, 14 Oct 2019 01:44:02 +0000 (18:44 -0700)]
Regenerated snapshot inside of Docker, so we've got a nice stable base now
Joshua May [Mon, 14 Oct 2019 01:43:41 +0000 (18:43 -0700)]
Added shortcut for bumping snapshot tests inside of Docker, so it's a consistent env
Joshua May [Mon, 14 Oct 2019 01:43:11 +0000 (18:43 -0700)]
Mounting the code dir in Docker for dev/test, tightens up them feedback loops
Joshua May [Mon, 14 Oct 2019 01:20:21 +0000 (18:20 -0700)]
We got our first snapshot tests for HTML rendering
Joe Rickerby [Fri, 11 Oct 2019 08:10:07 +0000 (09:10 +0100)]
Add CI badge
Joshua May [Thu, 10 Oct 2019 23:18:40 +0000 (16:18 -0700)]
Merge pull request #11 from notjosh/chore/test-test-test
Tests & CI, first cut
Joshua May [Thu, 10 Oct 2019 06:27:13 +0000 (23:27 -0700)]
I guess free CircleCI plans don't like Docker caching
Joshua May [Thu, 10 Oct 2019 06:16:43 +0000 (23:16 -0700)]
Added basic CircleCI support
Joshua May [Thu, 10 Oct 2019 06:00:17 +0000 (23:00 -0700)]
Force a rebuild on CI runs, to make sure latest code is applied in
Joshua May [Thu, 10 Oct 2019 05:49:17 +0000 (22:49 -0700)]
So, that's how you run integration tests via Docker
Joshua May [Thu, 10 Oct 2019 05:19:08 +0000 (22:19 -0700)]
Added more/enabled existing tests to image encoding
Joshua May [Thu, 10 Oct 2019 04:42:08 +0000 (21:42 -0700)]
Added more tests around protocol encoding. They're pretty rigid, but the protocol hopefully (won't really ever change, so I think it's ok for now)
Joshua May [Tue, 8 Oct 2019 16:51:47 +0000 (09:51 -0700)]
Merge pull request #10 from notjosh/bug/double-bas64
Fix add_device_encryption_key command double base64 encoding, add tests
Joshua May [Tue, 8 Oct 2019 16:47:36 +0000 (09:47 -0700)]
Renamed copied test class to a unique name: EncodersCase
Joshua May [Tue, 8 Oct 2019 16:43:59 +0000 (09:43 -0700)]
Fix add_device_encryption_key command double base64 encoding, add tests
Joe Rickerby [Tue, 24 Sep 2019 12:15:44 +0000 (13:15 +0100)]
Merge pull request #7 from notjosh/feature/python3
Update to Python3/modernise project
Joshua May [Tue, 17 Sep 2019 17:36:23 +0000 (10:36 -0700)]
s/threshold/convert_to_1bit/g (because of
3ad0f7fa213b575b8df6c3ff65b2d57ef02ca0ee )
Joshua May [Sat, 14 Sep 2019 17:49:52 +0000 (10:49 -0700)]
Can't get enough BYTES??? Have I got the commit for you!
Joshua May [Sat, 14 Sep 2019 17:47:50 +0000 (10:47 -0700)]
More data, more strings, more bytes, more whyyyy
Joshua May [Sat, 14 Sep 2019 04:16:25 +0000 (21:16 -0700)]
Bytes, strings, and the eternal 'wait, which is it here?'
Joshua May [Sat, 14 Sep 2019 04:02:35 +0000 (21:02 -0700)]
Popping image.threshold back, after being commented out for some reason
Joshua May [Sat, 14 Sep 2019 01:40:17 +0000 (18:40 -0700)]
Generators in Python 3 have a native `next()`, not a property!
Joshua May [Sat, 14 Sep 2019 01:37:17 +0000 (18:37 -0700)]
bytes don't encode as hex with Python 3, with just .hex() 'em
Joshua May [Thu, 12 Sep 2019 23:12:35 +0000 (16:12 -0700)]
Migrated over to Flask-Dance
Joshua May [Tue, 10 Sep 2019 20:21:08 +0000 (13:21 -0700)]
And now, Flask
Joshua May [Tue, 10 Sep 2019 20:18:31 +0000 (13:18 -0700)]
Bumped versions on everything but Flask
Joshua May [Tue, 10 Sep 2019 18:48:25 +0000 (11:48 -0700)]
Bumped some more minor versions up, now with selenium phantomjs deprecation
Joshua May [Tue, 10 Sep 2019 18:40:30 +0000 (11:40 -0700)]
Bumped some minor versions up
Joshua May [Tue, 10 Sep 2019 18:30:36 +0000 (11:30 -0700)]
fixed -psycopg2/+psycopg2-binary deprecation notice, now tests run quietly
Joshua May [Tue, 10 Sep 2019 18:26:42 +0000 (11:26 -0700)]
Fixin' them ol' flask.ext deprecations
Joshua May [Tue, 10 Sep 2019 18:19:22 +0000 (11:19 -0700)]
Tests are green! So many warnings, but progress
Joshua May [Sun, 1 Sep 2019 21:04:02 +0000 (14:04 -0700)]
Trying to get tests running cleanly with docker test instances of databases, under Postgres, etc
Joshua May [Sun, 1 Sep 2019 18:41:18 +0000 (11:41 -0700)]
First pass at Python 3 support: the server boots up! Who knows what's broken?
Joshua May [Sun, 1 Sep 2019 05:24:26 +0000 (22:24 -0700)]
PhantomJS needs a lil help from time to time
Joshua May [Sun, 1 Sep 2019 05:04:58 +0000 (22:04 -0700)]
Hey, we can actually get the database set up when we launch with Docker now. Whoops.
Joshua May [Sun, 1 Sep 2019 00:30:21 +0000 (17:30 -0700)]
Added SSL for local development
Joshua May [Sat, 31 Aug 2019 23:14:57 +0000 (16:14 -0700)]
Added Docker set up for local dev, with Postgres dependency
Joe Rickerby [Wed, 29 May 2019 13:09:43 +0000 (14:09 +0100)]
Revert "Add Scout monitoring
"
This reverts commit
8df0a08a902ac611ded244f73683f0b7a6c96cce .
Joe Rickerby [Wed, 29 May 2019 12:54:05 +0000 (13:54 +0100)]
Add Scout monitoring
Joe Rickerby [Wed, 29 May 2019 12:18:13 +0000 (13:18 +0100)]
Don't leak a database connection when a bridge disconnects
Joe Rickerby [Wed, 22 May 2019 10:25:35 +0000 (11:25 +0100)]
Keep open database connections down
Joe Rickerby [Fri, 26 Apr 2019 16:03:57 +0000 (17:03 +0100)]
Merge pull request #4 from andrewn/master
Adds CORS support to all endpoints (fixes #3)
Joe Rickerby [Thu, 25 Apr 2019 15:21:53 +0000 (16:21 +0100)]
README updates
Joe Rickerby [Wed, 10 Apr 2019 10:20:27 +0000 (11:20 +0100)]
Fix bad font-family rule
Joe Rickerby [Wed, 10 Apr 2019 09:29:51 +0000 (10:29 +0100)]
Add enough space to not wrap the device key
Joe Rickerby [Wed, 10 Apr 2019 09:17:11 +0000 (10:17 +0100)]
Use device key domain for references to device keys
Andrew Nicolaou [Wed, 10 Apr 2019 08:12:59 +0000 (10:12 +0200)]
Restricts CORS access to "print key" API
Joe Rickerby [Tue, 9 Apr 2019 18:13:55 +0000 (19:13 +0100)]
Add link to open in Little Printers app
Joe Rickerby [Tue, 9 Apr 2019 16:50:55 +0000 (17:50 +0100)]
Restyle print key page as device key
Andrew Nicolaou [Sun, 17 Mar 2019 15:44:49 +0000 (16:44 +0100)]
Adds CORS support to all endpoints
Enables Cross-Origin Resource Sharing, allowing browser-based web apps
to communicate directly with the API.
Joe Rickerby [Sat, 24 Nov 2018 17:05:51 +0000 (17:05 +0000)]
Add 'reprint' button on messages
Joe Rickerby [Sat, 8 Sep 2018 15:45:24 +0000 (16:45 +0100)]
Copy etc.
Joe Rickerby [Sat, 8 Sep 2018 15:24:45 +0000 (16:24 +0100)]
Copy edit
Joe Rickerby [Sat, 8 Sep 2018 15:24:39 +0000 (16:24 +0100)]
Print keys track who's used them
Joe Rickerby [Sat, 8 Sep 2018 15:23:39 +0000 (16:23 +0100)]
Remove info about twitter friends from printer page
Joe Rickerby [Sat, 8 Sep 2018 11:45:29 +0000 (12:45 +0100)]
Add app link
Joe Rickerby [Sat, 8 Sep 2018 11:42:27 +0000 (12:42 +0100)]
README update
Joe Rickerby [Sat, 8 Sep 2018 11:39:23 +0000 (12:39 +0100)]
Update links
Joe Rickerby [Sat, 8 Sep 2018 11:26:41 +0000 (12:26 +0100)]
Tiny bit to styling to differentiate from the other sirius
Joe Rickerby [Sat, 8 Sep 2018 11:26:15 +0000 (12:26 +0100)]
Change copy about the project