]> git.aero2k.de Git - sirius.git/log
sirius.git
17 hours agoAdd Chromium renderer, password change and Pi deployment
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>
3 weeks agoApply login checks and redirect to the login
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

3 weeks agoAdd personality upload and compose pages
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

3 weeks agoHide scrollbar in printed output
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>
3 weeks agoAdd optional local login
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>
3 weeks agoFix Docker build on archived Debian buster
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>
3 years agoMerge pull request #16 from KTamas/patch-1
Joe Rickerby [Fri, 7 Jul 2023 15:47:55 +0000 (16:47 +0100)]
Merge pull request #16 from KTamas/patch-1

Update README.md

3 years agofix image in readme
Joe Rickerby [Fri, 7 Jul 2023 15:41:49 +0000 (16:41 +0100)]
fix image in readme

3 years agoMerge pull request #23 from phillipjf/feature/twitter_oauth
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

3 years agoUse requirements.txt as this feels more ideomatic to me
Joe Rickerby [Fri, 7 Jul 2023 14:10:17 +0000 (15:10 +0100)]
Use requirements.txt as this feels more ideomatic to me

3 years agofix(migration): remove constraint migrations
Phillip Ferentinos [Thu, 6 Jul 2023 19:42:59 +0000 (14:42 -0500)]
fix(migration): remove constraint migrations

3 years agobuild: add setup.py for heroku detection
Phillip Ferentinos [Thu, 6 Jul 2023 19:38:49 +0000 (14:38 -0500)]
build: add setup.py for heroku detection

3 years agotest: fix mock in oauth test
Phillip Ferentinos [Thu, 6 Jul 2023 19:18:41 +0000 (14:18 -0500)]
test: fix mock in oauth test

3 years agotest: mock twitter api call
Phillip Ferentinos [Thu, 6 Jul 2023 18:49:02 +0000 (13:49 -0500)]
test: mock twitter api call

3 years agotest(oauth_flow): fix access_token format in test
Phillip Ferentinos [Thu, 6 Jul 2023 17:49:55 +0000 (12:49 -0500)]
test(oauth_flow): fix access_token format in test

3 years agobuild: match docker python base image to heroku buildpack runtime version, update...
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

3 years agoEnsure test deps are installed
Joe Rickerby [Wed, 5 Jul 2023 21:44:21 +0000 (22:44 +0100)]
Ensure test deps are installed

3 years agomodernise circle ci config
Joe Rickerby [Wed, 5 Jul 2023 21:40:01 +0000 (22:40 +0100)]
modernise circle ci config

3 years agoSpecify packages for setuptools
Joe Rickerby [Wed, 5 Jul 2023 21:39:48 +0000 (22:39 +0100)]
Specify packages for setuptools

3 years agoRollback the docker image upgrade
Joe Rickerby [Wed, 5 Jul 2023 21:39:31 +0000 (22:39 +0100)]
Rollback the docker image upgrade

3 years agofeat(friends): remove friends functionality and references
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:

3 years agofeat(twitter): update twitter auth to use oauth2 flow
Phillip Ferentinos [Tue, 4 Jul 2023 23:56:25 +0000 (18:56 -0500)]
feat(twitter): update twitter auth to use oauth2 flow

3 years agobuild: update docker image to bullseye from buster
Phillip Ferentinos [Fri, 30 Jun 2023 13:06:47 +0000 (08:06 -0500)]
build: update docker image to bullseye from buster

3 years agobuild: use pyproject.toml for dependency management over requirements.txt
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

5 years agoUpdate runtime version
Joe Rickerby [Fri, 23 Apr 2021 17:44:17 +0000 (18:44 +0100)]
Update runtime version

6 years agoMerge pull request #17 from nordprojects/limit-to-10
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

6 years agoOnly store the latest 10 messages on the server to avoid the ire of
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

6 years agoUpdate README.md
Tamás Kádár [Sun, 10 May 2020 12:26:42 +0000 (14:26 +0200)]
Update README.md

6 years agoMerge pull request #14 from nordprojects/trim-messages
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

6 years agoTrim 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.

6 years agoMerge pull request #13 from notjosh/chore/image-snapshot-tests
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

7 years agodatetime as default arg is a bad idea, turns out
Joshua May [Mon, 14 Oct 2019 18:07:24 +0000 (11:07 -0700)]
datetime as default arg is a bad idea, turns out

7 years agoEmpty commit to test triggering CI
Joe Rickerby [Mon, 14 Oct 2019 11:39:36 +0000 (12:39 +0100)]
Empty commit to test triggering CI

7 years agoWe got updated templated snapshots goin', wee
Joshua May [Mon, 14 Oct 2019 02:08:37 +0000 (19:08 -0700)]
We got updated templated snapshots goin', wee

7 years agoWe can set the datetime from the outside for default_template
Joshua May [Mon, 14 Oct 2019 02:08:17 +0000 (19:08 -0700)]
We can set the datetime from the outside for default_template

7 years agoMoved snapshot tests to their own file, and added template testing
Joshua May [Mon, 14 Oct 2019 01:57:51 +0000 (18:57 -0700)]
Moved snapshot tests to their own file, and added template testing

7 years agoRegenerated snapshot inside of Docker, so we've got a nice stable base now
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

7 years agoAdded shortcut for bumping snapshot tests inside of Docker, so it's a consistent env
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

7 years agoMounting the code dir in Docker for dev/test, tightens up them feedback loops
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

7 years agoWe got our first snapshot tests for HTML rendering
Joshua May [Mon, 14 Oct 2019 01:20:21 +0000 (18:20 -0700)]
We got our first snapshot tests for HTML rendering

7 years agoAdd CI badge
Joe Rickerby [Fri, 11 Oct 2019 08:10:07 +0000 (09:10 +0100)]
Add CI badge

7 years agoMerge pull request #11 from notjosh/chore/test-test-test
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

7 years agoI guess free CircleCI plans don't like Docker caching
Joshua May [Thu, 10 Oct 2019 06:27:13 +0000 (23:27 -0700)]
I guess free CircleCI plans don't like Docker caching

7 years agoAdded basic CircleCI support
Joshua May [Thu, 10 Oct 2019 06:16:43 +0000 (23:16 -0700)]
Added basic CircleCI support

7 years agoForce a rebuild on CI runs, to make sure latest code is applied in
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

7 years agoSo, that's how you run integration tests via Docker
Joshua May [Thu, 10 Oct 2019 05:49:17 +0000 (22:49 -0700)]
So, that's how you run integration tests via Docker

7 years agoAdded more/enabled existing tests to image encoding
Joshua May [Thu, 10 Oct 2019 05:19:08 +0000 (22:19 -0700)]
Added more/enabled existing tests to image encoding

7 years agoAdded more tests around protocol encoding. They're pretty rigid, but the protocol...
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)

7 years agoMerge pull request #10 from notjosh/bug/double-bas64
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

7 years agoRenamed copied test class to a unique name: EncodersCase
Joshua May [Tue, 8 Oct 2019 16:47:36 +0000 (09:47 -0700)]
Renamed copied test class to a unique name: EncodersCase

7 years agoFix add_device_encryption_key command double base64 encoding, add tests
Joshua May [Tue, 8 Oct 2019 16:43:59 +0000 (09:43 -0700)]
Fix add_device_encryption_key command double base64 encoding, add tests

7 years agoMerge pull request #7 from notjosh/feature/python3
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

7 years agos/threshold/convert_to_1bit/g (because of 3ad0f7fa213b575b8df6c3ff65b2d57ef02ca0ee)
Joshua May [Tue, 17 Sep 2019 17:36:23 +0000 (10:36 -0700)]
s/threshold/convert_to_1bit/g (because of 3ad0f7fa213b575b8df6c3ff65b2d57ef02ca0ee)

7 years agoCan't get enough BYTES??? Have I got the commit for you!
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!

7 years agoMore data, more strings, more bytes, more whyyyy
Joshua May [Sat, 14 Sep 2019 17:47:50 +0000 (10:47 -0700)]
More data, more strings, more bytes, more whyyyy

7 years agoBytes, strings, and the eternal 'wait, which is it here?'
Joshua May [Sat, 14 Sep 2019 04:16:25 +0000 (21:16 -0700)]
Bytes, strings, and the eternal 'wait, which is it here?'

7 years agoPopping image.threshold back, after being commented out for some reason
Joshua May [Sat, 14 Sep 2019 04:02:35 +0000 (21:02 -0700)]
Popping image.threshold back, after being commented out for some reason

7 years agoGenerators in Python 3 have a native `next()`, not a property!
Joshua May [Sat, 14 Sep 2019 01:40:17 +0000 (18:40 -0700)]
Generators in Python 3 have a native `next()`, not a property!

7 years agobytes don't encode as hex with Python 3, with just .hex() 'em
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

7 years agoMigrated over to Flask-Dance
Joshua May [Thu, 12 Sep 2019 23:12:35 +0000 (16:12 -0700)]
Migrated over to Flask-Dance

7 years agoAnd now, Flask
Joshua May [Tue, 10 Sep 2019 20:21:08 +0000 (13:21 -0700)]
And now, Flask

7 years agoBumped versions on everything but Flask
Joshua May [Tue, 10 Sep 2019 20:18:31 +0000 (13:18 -0700)]
Bumped versions on everything but Flask

7 years agoBumped some more minor versions up, now with selenium phantomjs deprecation
Joshua May [Tue, 10 Sep 2019 18:48:25 +0000 (11:48 -0700)]
Bumped some more minor versions up, now with selenium phantomjs deprecation

7 years agoBumped some minor versions up
Joshua May [Tue, 10 Sep 2019 18:40:30 +0000 (11:40 -0700)]
Bumped some minor versions up

7 years agofixed -psycopg2/+psycopg2-binary deprecation notice, now tests run quietly
Joshua May [Tue, 10 Sep 2019 18:30:36 +0000 (11:30 -0700)]
fixed -psycopg2/+psycopg2-binary deprecation notice, now tests run quietly

7 years agoFixin' them ol' flask.ext deprecations
Joshua May [Tue, 10 Sep 2019 18:26:42 +0000 (11:26 -0700)]
Fixin' them ol' flask.ext deprecations

7 years agoTests are green! So many warnings, but progress
Joshua May [Tue, 10 Sep 2019 18:19:22 +0000 (11:19 -0700)]
Tests are green! So many warnings, but progress

7 years agoTrying to get tests running cleanly with docker test instances of databases, under...
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

7 years agoFirst pass at Python 3 support: the server boots up! Who knows what's broken?
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?

7 years agoPhantomJS needs a lil help from time to time
Joshua May [Sun, 1 Sep 2019 05:24:26 +0000 (22:24 -0700)]
PhantomJS needs a lil help from time to time

7 years agoHey, we can actually get the database set up when we launch with Docker now. Whoops.
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.

7 years agoAdded SSL for local development
Joshua May [Sun, 1 Sep 2019 00:30:21 +0000 (17:30 -0700)]
Added SSL for local development

7 years agoAdded Docker set up for local dev, with Postgres dependency
Joshua May [Sat, 31 Aug 2019 23:14:57 +0000 (16:14 -0700)]
Added Docker set up for local dev, with Postgres dependency

7 years agoRevert "Add Scout monitoring
"
Joe Rickerby [Wed, 29 May 2019 13:09:43 +0000 (14:09 +0100)]
Revert "Add Scout monitoring
"

This reverts commit 8df0a08a902ac611ded244f73683f0b7a6c96cce.

7 years agoAdd Scout monitoring

Joe Rickerby [Wed, 29 May 2019 12:54:05 +0000 (13:54 +0100)]
Add Scout monitoring


7 years agoDon't leak a database connection when a bridge disconnects
Joe Rickerby [Wed, 29 May 2019 12:18:13 +0000 (13:18 +0100)]
Don't leak a database connection when a bridge disconnects

7 years agoKeep open database connections down
Joe Rickerby [Wed, 22 May 2019 10:25:35 +0000 (11:25 +0100)]
Keep open database connections down

7 years agoMerge pull request #4 from andrewn/master
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)

7 years agoREADME updates
Joe Rickerby [Thu, 25 Apr 2019 15:21:53 +0000 (16:21 +0100)]
README updates

7 years agoFix bad font-family rule
Joe Rickerby [Wed, 10 Apr 2019 10:20:27 +0000 (11:20 +0100)]
Fix bad font-family rule

7 years agoAdd enough space to not wrap the device key
Joe Rickerby [Wed, 10 Apr 2019 09:29:51 +0000 (10:29 +0100)]
Add enough space to not wrap the device key

7 years agoUse device key domain for references to device keys
Joe Rickerby [Wed, 10 Apr 2019 09:17:11 +0000 (10:17 +0100)]
Use device key domain for references to device keys

7 years agoRestricts CORS access to "print key" API
Andrew Nicolaou [Wed, 10 Apr 2019 08:12:59 +0000 (10:12 +0200)]
Restricts CORS access to "print key" API

7 years agoAdd link to open in Little Printers app
Joe Rickerby [Tue, 9 Apr 2019 18:13:55 +0000 (19:13 +0100)]
Add link to open in Little Printers app

7 years agoRestyle print key page as device key
Joe Rickerby [Tue, 9 Apr 2019 16:50:55 +0000 (17:50 +0100)]
Restyle print key page as device key

7 years agoAdds CORS support to all endpoints
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.

8 years agoAdd 'reprint' button on messages
Joe Rickerby [Sat, 24 Nov 2018 17:05:51 +0000 (17:05 +0000)]
Add 'reprint' button on messages

8 years agoCopy etc.
Joe Rickerby [Sat, 8 Sep 2018 15:45:24 +0000 (16:45 +0100)]
Copy etc.

8 years agoCopy edit
Joe Rickerby [Sat, 8 Sep 2018 15:24:45 +0000 (16:24 +0100)]
Copy edit

8 years agoPrint keys track who's used them
Joe Rickerby [Sat, 8 Sep 2018 15:24:39 +0000 (16:24 +0100)]
Print keys track who's used them

8 years agoRemove info about twitter friends from printer page
Joe Rickerby [Sat, 8 Sep 2018 15:23:39 +0000 (16:23 +0100)]
Remove info about twitter friends from printer page

8 years agoAdd app link
Joe Rickerby [Sat, 8 Sep 2018 11:45:29 +0000 (12:45 +0100)]
Add app link

8 years agoREADME update
Joe Rickerby [Sat, 8 Sep 2018 11:42:27 +0000 (12:42 +0100)]
README update

8 years agoUpdate links
Joe Rickerby [Sat, 8 Sep 2018 11:39:23 +0000 (12:39 +0100)]
Update links

8 years agoTiny bit to styling to differentiate from the other sirius
Joe Rickerby [Sat, 8 Sep 2018 11:26:41 +0000 (12:26 +0100)]
Tiny bit to styling to differentiate from the other sirius

8 years agoChange copy about the project
Joe Rickerby [Sat, 8 Sep 2018 11:26:15 +0000 (12:26 +0100)]
Change copy about the project

8 years agoUpdate psycopg2 to fix build error
Joe Rickerby [Sat, 25 Aug 2018 14:35:23 +0000 (15:35 +0100)]
Update psycopg2 to fix build error

8 years agoFix for dropout errors
Joe Rickerby [Sat, 25 Aug 2018 14:28:52 +0000 (15:28 +0100)]
Fix for dropout errors

8 years agoMerge pull request #1 from tomwagner/dockerize
Joe Rickerby [Mon, 5 Feb 2018 10:03:36 +0000 (02:03 -0800)]
Merge pull request #1 from tomwagner/dockerize

Dockerize

8 years agoDockerize sirius
Tomas Wagner [Sun, 4 Feb 2018 20:21:28 +0000 (21:21 +0100)]
Dockerize sirius