]>
git.aero2k.de Git - sirius.git/log
summary |
shortlog | log |
commit |
commitdiff |
tree
first ⋅ prev ⋅ next
Tom Hunger [Mon, 26 Jan 2015 15:54:15 +0000 (15:54 +0000)]
Test printing and fix a few bugs found by testing.
Tom Hunger [Mon, 26 Jan 2015 15:31:15 +0000 (15:31 +0000)]
Move testing base into a separate testing directory.
Tom Hunger [Mon, 26 Jan 2015 12:38:51 +0000 (12:38 +0000)]
Correct global command id and send error handling.
We previously had a next_command_id per bridge which works for communicating
with a single bridge, but we decided to use the command id for message
print_ids as well where they have to be unique. If we wrap around at
4 billion we need to add an extra filter with a date-cutoff.
Tom Hunger [Mon, 26 Jan 2015 10:44:41 +0000 (10:44 +0000)]
Implement twitter friends storing and refreshing.
Tom Hunger [Sun, 25 Jan 2015 20:17:28 +0000 (20:17 +0000)]
Update documentation.
Tom Hunger [Sun, 25 Jan 2015 19:48:11 +0000 (19:48 +0000)]
Merge remote-tracking branch 'origin/message_ui'
teh [Sun, 25 Jan 2015 19:35:08 +0000 (19:35 +0000)]
Merge pull request #3 from genmon/toms_implementation
Toms implementation, see notes
Tom Hunger [Fri, 23 Jan 2015 18:42:21 +0000 (18:42 +0000)]
Correctly handle two different users claiming the same XOR.
Tom Hunger [Fri, 23 Jan 2015 12:53:21 +0000 (12:53 +0000)]
Move next-command-id generation into Message model.
The next command id is somewhat subtle because we're using it
to ack messages. Having it in its own class method is easier.
Tom Hunger [Fri, 23 Jan 2015 12:40:43 +0000 (12:40 +0000)]
Implement ack'ing of messages.
Tom Hunger [Fri, 23 Jan 2015 11:44:58 +0000 (11:44 +0000)]
Implement twitter friend lookup.
Tom Hunger [Fri, 23 Jan 2015 10:31:09 +0000 (10:31 +0000)]
Make submit buttons actual buttons.
Tom Hunger [Fri, 23 Jan 2015 10:30:02 +0000 (10:30 +0000)]
Implement adding a fake twitter friend and claiming a printer for another user.
Tom Hunger [Fri, 23 Jan 2015 08:45:32 +0000 (08:45 +0000)]
Implement a trivial preview.
Tom Hunger [Thu, 22 Jan 2015 17:41:49 +0000 (17:41 +0000)]
Bugfix: add forgotten "format" for error message.
Tom Hunger [Thu, 22 Jan 2015 17:39:38 +0000 (17:39 +0000)]
Only show messages for the selected printer.
Also make that the default printer when going to the print page.
Tom Hunger [Thu, 22 Jan 2015 17:34:26 +0000 (17:34 +0000)]
Bootstrapify claim form.
Tom Hunger [Thu, 22 Jan 2015 17:34:13 +0000 (17:34 +0000)]
Boostrappify print form.
Tom Hunger [Thu, 22 Jan 2015 17:12:04 +0000 (17:12 +0000)]
Disable every and all security when rendering HTML via phantomjs.
We're not protecting a user's logged in session or private information,
we're using phantomjs to render publicly available content so we don't
really care whether a website's certificate checks out, or whether the
SSL version is older than the cambrian explosion.
Tom Hunger [Thu, 22 Jan 2015 17:09:38 +0000 (17:09 +0000)]
Make twitter a 1:1 relationship on the model.
Tom Hunger [Tue, 20 Jan 2015 14:25:48 +0000 (14:25 +0000)]
Remember sent messages in a database model and show them on overview.
Tom Hunger [Tue, 20 Jan 2015 12:49:46 +0000 (12:49 +0000)]
Pass around pixel data instead of a PIL image object.
We want to store the pixel data in the database, so we pass around the
lowest common representation.
Tom Hunger [Fri, 16 Jan 2015 10:49:40 +0000 (10:49 +0000)]
Fold twitter-oauth / user DB relationship back into class.
Tom Hunger [Fri, 16 Jan 2015 10:37:08 +0000 (10:37 +0000)]
Fix a fair amount of flake8 complaining.
Ignoring certain cases where readability > consistency.
Tom Hunger [Fri, 16 Jan 2015 10:12:20 +0000 (10:12 +0000)]
Use 4 spaces of indent for config.py for consistency.
Tom Hunger [Thu, 15 Jan 2015 17:12:01 +0000 (17:12 +0000)]
Remove more unused code, unused imports and fix formatting.
Tom Hunger [Thu, 15 Jan 2015 17:02:46 +0000 (17:02 +0000)]
Remove obsolete code and docs.
Tom Hunger [Thu, 15 Jan 2015 16:50:19 +0000 (16:50 +0000)]
Add and handle DeviceCommandResponse.
Tom Hunger [Thu, 15 Jan 2015 16:44:05 +0000 (16:44 +0000)]
Remove previous version of sirius. It's been a good guide, so long.
Tom Hunger [Thu, 15 Jan 2015 16:34:31 +0000 (16:34 +0000)]
Start printer command_id at 10, not 0.
0 is an invalid value. It took me a while to debug this
so please don't change.
Tom Hunger [Thu, 15 Jan 2015 15:49:04 +0000 (15:49 +0000)]
Implement the skeleton functionality for printing.
The actual print encoding still has a bug (the messages are rejected
by the printer with return status 0x90).
Tom Hunger [Thu, 15 Jan 2015 15:47:32 +0000 (15:47 +0000)]
base-64 encode device messages.
Note that there's still a bug that prevents image printing from working.
To be investigated.
Tom Hunger [Thu, 15 Jan 2015 15:37:41 +0000 (15:37 +0000)]
Connect real database to real protocol loop and fix a few minor bugs.
The most interesting bit here is the with app.app_context() for the
websocket code. It's required because the websocket loop needs to access
the database occasionally.
Tom Hunger [Thu, 15 Jan 2015 15:13:02 +0000 (15:13 +0000)]
Test and fix image coding.
Tom Hunger [Thu, 15 Jan 2015 11:38:24 +0000 (11:38 +0000)]
Allow printers to have a name.
Tom Hunger [Wed, 14 Jan 2015 18:47:42 +0000 (18:47 +0000)]
Organise README into usage and architecture section.
Tom Hunger [Wed, 14 Jan 2015 18:31:44 +0000 (18:31 +0000)]
Implement and test the claiming web form.
Tom Hunger [Wed, 14 Jan 2015 15:47:48 +0000 (15:47 +0000)]
Move claim web handler to landing.py
This makes more sense structurally.
Tom Hunger [Wed, 14 Jan 2015 15:42:37 +0000 (15:42 +0000)]
Add management command to fake a newly reset little printer calling home.
Tom Hunger [Wed, 14 Jan 2015 15:39:13 +0000 (15:39 +0000)]
.git-ignore local test database
Tom Hunger [Wed, 14 Jan 2015 15:38:52 +0000 (15:38 +0000)]
Add and test encode function for claiming-codes.
Tom Hunger [Mon, 12 Jan 2015 21:00:15 +0000 (21:00 +0000)]
Create logged-in site structure.
Tom Hunger [Mon, 12 Jan 2015 20:03:20 +0000 (20:03 +0000)]
Match migrations to latest database table layout.
Tom Hunger [Mon, 12 Jan 2015 19:56:19 +0000 (19:56 +0000)]
Dispatch landing page depending on logged-in state.
Tom Hunger [Mon, 12 Jan 2015 19:33:15 +0000 (19:33 +0000)]
Add is_authenticated method to User model.
Tom Hunger [Mon, 12 Jan 2015 18:40:33 +0000 (18:40 +0000)]
Add flask-login.
Tom Hunger [Mon, 12 Jan 2015 18:21:13 +0000 (18:21 +0000)]
Clean up comments for claim code model.
Tom Hunger [Mon, 12 Jan 2015 17:46:11 +0000 (17:46 +0000)]
Add owner-relationship from Printer to User model.
Tom Hunger [Mon, 12 Jan 2015 17:44:58 +0000 (17:44 +0000)]
Remove __tablename__. Not necessary when it matches the classname.
Tom Hunger [Mon, 12 Jan 2015 17:40:00 +0000 (17:40 +0000)]
Add creation timestamps everywhere that default to utcnow.
These are often super useful for debugging.
Tom Hunger [Mon, 12 Jan 2015 17:39:14 +0000 (17:39 +0000)]
Test and implement claiming.
Claiming can happen before or after a printer calls home
for the first time so we have to test both orders.
Tom Hunger [Mon, 12 Jan 2015 15:40:43 +0000 (15:40 +0000)]
Add flask-testing.
Tom Hunger [Wed, 7 Jan 2015 22:41:04 +0000 (22:41 +0000)]
Match README.md to reality.
Tom Hunger [Wed, 7 Jan 2015 17:11:24 +0000 (17:11 +0000)]
Add temporary hack to work around gevent bug.
Tom Hunger [Wed, 7 Jan 2015 16:25:37 +0000 (16:25 +0000)]
Commit basic new structure of sirius.
This is a fairly big commit because it took some fiddling to get the
structure right.
Note also that we're deleting the database and clearing out the
migrations while the models still change a lot like this:
rm sirius/data.sqlite
rm migrations/versions/*
./manage.py db revision --autogenerate -m "Sirius models."
./manage.py db upgrade
The web frontend lives in sirius.web.
Tom Hunger [Tue, 6 Jan 2015 09:59:37 +0000 (09:59 +0000)]
In ./manage.py run webbapp from sirius directory instead of old app.
Tom Hunger [Mon, 5 Jan 2015 17:43:14 +0000 (17:43 +0000)]
Add documentation for how to set up a digitial-ocean instance.
Tom Hunger [Mon, 5 Jan 2015 16:24:05 +0000 (16:24 +0000)]
Log gunicorn output to stdout.
This is where dokku/heroku read their logs so it is necessary
to make dokku log work.
Tom Hunger [Mon, 22 Dec 2014 18:58:30 +0000 (18:58 +0000)]
Correctly classify messages with missing fields / broken base64 as Malformed.
Tom Hunger [Mon, 22 Dec 2014 18:05:05 +0000 (18:05 +0000)]
Initial protocol sketch for maintaining the bridge/device state.
This version is dealing just with state initiated by bridges and
devices. The only "user-initiated" state is a fake claims database.
The next step is specifying a database schema that allows modifying
the little printer world, e.g. claiming one, queuing messages etc.
The last step is making sure that these intentions are communicated
down-stream + dealing with any errors that can arise (timeout, printer
out of paper etc.).
Matt Webb [Wed, 1 Oct 2014 12:56:39 +0000 (13:56 +0100)]
adding a claim code
Matt Webb [Sun, 28 Sep 2014 08:03:18 +0000 (09:03 +0100)]
tweak to remove whitespace from html
Matt Webb [Sun, 28 Sep 2014 07:58:41 +0000 (08:58 +0100)]
wording on the template
Matt Webb [Sun, 28 Sep 2014 07:55:23 +0000 (08:55 +0100)]
simple message status
Matt Webb [Sat, 27 Sep 2014 14:26:54 +0000 (15:26 +0100)]
adding a little logging
Matt Webb [Sat, 27 Sep 2014 14:15:20 +0000 (15:15 +0100)]
tweaking to see logs on heroku
Matt Webb [Sat, 27 Sep 2014 13:19:32 +0000 (14:19 +0100)]
testing stdout log on heroku
Matt Webb [Sat, 27 Sep 2014 12:53:21 +0000 (13:53 +0100)]
add phantomjs for heroku
Matt Webb [Sat, 27 Sep 2014 12:49:53 +0000 (13:49 +0100)]
changing column types to agree with postgres
Matt Webb [Sat, 27 Sep 2014 12:38:45 +0000 (13:38 +0100)]
fix to allow migrations tool to detect models
Matt Webb [Sat, 27 Sep 2014 12:29:17 +0000 (13:29 +0100)]
adding db migrations
Matt Webb [Sat, 27 Sep 2014 12:24:41 +0000 (13:24 +0100)]
preparing to do a test deploy to heroku
Matt Webb [Sat, 27 Sep 2014 12:04:19 +0000 (13:04 +0100)]
updating requirements, giving time for renders to take place
Matt Webb [Sat, 27 Sep 2014 09:10:58 +0000 (10:10 +0100)]
ability to type HTML on the front-end
Matt Webb [Sat, 27 Sep 2014 08:59:29 +0000 (09:59 +0100)]
milestone -- now printing arbitrary html loaded from a string. the image rendering isn't so great because it's the wrong width, and it's slow because it's sychronous, but it works
Matt Webb [Fri, 26 Sep 2014 21:55:44 +0000 (22:55 +0100)]
feels super kludgy to stick the command sender into the app object like this... but it works, and I can click to send commands from the device page
Matt Webb [Fri, 26 Sep 2014 21:30:04 +0000 (22:30 +0100)]
adding some forms
Matt Webb [Fri, 26 Sep 2014 19:19:14 +0000 (20:19 +0100)]
adding a basic page to navigate devices
Matt Webb [Fri, 26 Sep 2014 18:57:02 +0000 (19:57 +0100)]
fixed bug in making the hardware_xor, and made the add_device_encryption_key look up by device_address
Matt Webb [Fri, 26 Sep 2014 14:43:25 +0000 (15:43 +0100)]
admin pages blueprint
Matt Webb [Fri, 26 Sep 2014 08:46:16 +0000 (09:46 +0100)]
bug fix in handling device command response
Matt Webb [Thu, 25 Sep 2014 21:11:28 +0000 (22:11 +0100)]
the most appalling shitshower of shoddy code that i'm only committing now because it barely works and i mean BARELY and i'd better commit it before it collapses under its own shitness. in other news, i have an async command sender - not quite redis but soon - and an event handler than works in the right app context. plus mostly things work through models. and i can print images. the core messaging system is functional, even if it is made out of tictacs and string
Matt Webb [Thu, 25 Sep 2014 09:52:36 +0000 (10:52 +0100)]
minor tidy
Matt Webb [Wed, 24 Sep 2014 17:56:18 +0000 (18:56 +0100)]
reorganisation of the messaging core into its own place
Matt Webb [Wed, 24 Sep 2014 17:20:44 +0000 (18:20 +0100)]
reorganising to show what the core is
Matt Webb [Wed, 24 Sep 2014 17:09:22 +0000 (18:09 +0100)]
final, probably broken, commit before starting a bit of code organisation
Matt Webb [Tue, 23 Sep 2014 17:54:22 +0000 (18:54 +0100)]
moving the websockets logic around to start processing events in a sane way, and making a start on a proper command sender
Matt Webb [Mon, 22 Sep 2014 20:10:04 +0000 (21:10 +0100)]
add hardware_address_xor
Matt Webb [Mon, 22 Sep 2014 18:41:03 +0000 (19:41 +0100)]
this is the first version that prints properly - although upside-down - to my test printergit add .
Matt Webb [Mon, 22 Sep 2014 11:20:31 +0000 (12:20 +0100)]
fixing some misunderstandings about endianness, and adding some test code to unwrap binary payloads in commands so I can see if things match up
Matt Webb [Mon, 22 Sep 2014 10:20:40 +0000 (11:20 +0100)]
some possible fixes to device command encoding
Matt Webb [Sun, 21 Sep 2014 17:02:07 +0000 (18:02 +0100)]
base app with websockets and sending an encryption key
Matt Webb [Fri, 12 Sep 2014 09:21:41 +0000 (10:21 +0100)]
core flask website
genmon [Fri, 12 Sep 2014 09:09:58 +0000 (10:09 +0100)]
Initial commit