Commit Graph

32 Commits

Author SHA1 Message Date
Starbeamrainbowlabs bd08aae1da Asyncify everything so that we can do dependency injection 2019-07-10 14:11:46 +01:00
Starbeamrainbowlabs 121cfc2418 Write some glue code to insert the measurement info into the database
....but it's untested.
2019-07-10 12:21:38 +01:00
Starbeamrainbowlabs 855cbc0c1b Insert into ReadingRepo, but it's not tested yet 2019-07-09 17:31:08 +01:00
Starbeamrainbowlabs 3123215f11 Make sure SQLite repos reflect the database template 2019-07-09 14:07:23 +01:00
Starbeamrainbowlabs 489aac2263 Update SQLite repositories to use awilix container 2019-07-09 14:05:42 +01:00
Starbeamrainbowlabs d65f512003 Pass message on to message handler 2019-07-09 13:14:25 +01:00
Starbeamrainbowlabs 380f984253 Bugfix: Correct payload decoder 2019-07-09 13:14:12 +01:00
Starbeamrainbowlabs 46bb1d9047 Add a decode-test action to the Node.js server. 2019-07-09 13:12:54 +01:00
Starbeamrainbowlabs 321b154105 Decode incoming messages as JSON 2019-07-09 11:46:35 +01:00
Starbeamrainbowlabs 5aa990b421 Use mqtt directly instead of simple-mqtt-client 2019-07-08 16:06:06 +01:00
Starbeamrainbowlabs 42841d07e8 Finish switching over to simple-mqtt-client, but it's still broken 2019-07-08 15:42:05 +01:00
Starbeamrainbowlabs 1a39c5902e Start switching over to simple-mqtt-client, but it's not finished yet 2019-07-04 20:53:00 +01:00
Starbeamrainbowlabs e3a667cb69 Implement the ttn client connection, but it throws a syntax error. 2019-07-04 17:18:38 +01:00
Starbeamrainbowlabs 88d8a14154 Bugfix the container 2019-06-04 18:53:38 +01:00
Starbeamrainbowlabs 1aac3e9432 Start working on the architectural diagrams, but they aren't finished yet. 2019-06-03 14:14:23 +01:00
Starbeamrainbowlabs 009d6335a0 Setup basic logging framework.
In the future, we might be able to use a proxy object here or some other 
wizadry? I'm not sure.
2019-05-29 11:59:40 +01:00
Starbeamrainbowlabs 31a75b5589 Bugfix: Fix repository default exports 2019-05-29 11:36:36 +01:00
Starbeamrainbowlabs 26c82ac7e6 Create the rest of the repositories, but it isn't tested yet. 2019-05-29 11:35:10 +01:00
Starbeamrainbowlabs 0cba7297d4 I'm not quite sure where this is going now.
DI definitely helps, but we're going to have to figure out a pattern for 
this.

It's either going to have to be repository or active record I think
2019-05-23 22:48:51 +01:00
Starbeamrainbowlabs ed256c1e76 Update TTNAppServer to use awilix DI container 2019-05-23 22:39:10 +01:00
Starbeamrainbowlabs 0d3edd0a93 Get dependency injection (basically) working. Hooray! 2019-05-23 22:26:31 +01:00
Starbeamrainbowlabs 15a5bf9d03 Autoload repositories as required 2019-05-23 21:01:32 +01:00
Starbeamrainbowlabs afec88082b Start working on dependency injection, but it's complex & not finished yet. 2019-05-23 20:10:06 +01:00
Starbeamrainbowlabs 5b4ffba112 Add comment 2019-05-22 19:58:46 +01:00
Starbeamrainbowlabs 087c7e23c1 Add missing column 2019-05-22 19:58:06 +01:00
Starbeamrainbowlabs aaee7880fb db template: fix syntax 2019-05-22 18:05:40 +01:00
Starbeamrainbowlabs 99bbb34843 Start creating the database structure, but it's unfinished. 2019-05-22 18:04:46 +01:00
Starbeamrainbowlabs d2a6170864 Create initial better-sqlite3 db wrapper module 2019-05-22 12:28:57 +01:00
Starbeamrainbowlabs 391f066521 Add an id generator helper 2019-05-20 17:06:20 +01:00
Starbeamrainbowlabs 0a05e00c11 Create initial model classes 2019-05-20 14:48:41 +01:00
Starbeamrainbowlabs fcceb7de46 Refactor ansi to be a global instance. 2019-05-20 14:38:20 +01:00
Starbeamrainbowlabs d6e65ca294 Move node serve stuff to subdirectory 2019-05-20 12:21:14 +01:00