Paul van Tilburg
0e555ce539
Port to rocket 0.5.0-rc1 and Thirtyfour 0.19.0
...
Also switch to using tokio 1.6.1 (this is the version that Rocket uses).
We only need to use the "process" feature from that.
The rocket-contrib crate has been dropped by upstream.
2021-06-13 20:52:23 +02:00
Paul van Tilburg
402b71333b
Gracefully handle subproces errors/shutdowns
2020-10-17 00:41:55 +02:00
Paul van Tilburg
9191b36940
Move color_eyre::install() to main()
2020-10-17 00:41:23 +02:00
Paul van Tilburg
d713637efb
Dropping driver without quiting hangs the process
2020-10-17 00:40:25 +02:00
Paul van Tilburg
b4192a2edc
Just use a single function to spawn Gecko Driver
2020-10-17 00:39:42 +02:00
Paul van Tilburg
619261eb97
Add/tweak just a bit of fancy logging
2020-10-10 21:14:10 +02:00
Paul van Tilburg
561f10e2ab
Panic if the login fails
2020-10-10 21:13:49 +02:00
Paul van Tilburg
0300596d96
Just use port 4444 for Gecko Driver; don't pass the binary
2020-10-10 21:13:23 +02:00
Paul van Tilburg
264518d3d3
Use tokio to spawn the Gecko Driver; shutdown appropriately
2020-10-09 23:07:31 +02:00
Paul van Tilburg
315d9e4bd7
Move the login credentials to a config file
2020-10-09 19:47:43 +02:00
Paul van Tilburg
139b2f0f29
Use println to log status updates (for now)
2020-10-09 18:36:36 +02:00
Paul van Tilburg
0866da3b57
Pass the gecko driver port as spawn argument
2020-10-09 17:44:03 +02:00
Paul van Tilburg
6b60c064ce
Use thirtyfour (async); spawn the update loop
2020-10-09 17:40:48 +02:00
Paul van Tilburg
195c39a6b4
Add Rocket and provide an API endpoint to read the status
...
Use Rocket from Git (master) which is the 0.5 dev release that
builds on stable Rust.
2020-10-09 17:31:08 +02:00
Paul van Tilburg
27a2128b83
Reorder code for consistency
2020-10-09 17:09:25 +02:00
Paul van Tilburg
4c72fdab2e
Use a lazy static to store the last status
2020-10-09 17:07:18 +02:00
Paul van Tilburg
64c95854ea
Print errors during retrieval loop
2020-10-09 16:54:02 +02:00
Paul van Tilburg
b605e82925
Split off the login/element value code; create a status struct
2020-10-09 16:50:11 +02:00
Paul van Tilburg
6cdc8e0929
Switch to the thirtyfour(_sync) crate
...
Also use color_eyre for error handling/reporting.
2020-10-09 16:33:27 +02:00
Paul van Tilburg
9feb8adf79
Initial import into Git
2020-10-09 16:33:25 +02:00