Commit graph

8 commits

Author SHA1 Message Date
Paul van Tilburg 00aeed1803 Use thirtyfour (async); spawn the update loop 2020-10-09 17:40:48 +02:00
Paul van Tilburg ac5b853a27 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 e579d62e7f Reorder code for consistency 2020-10-09 17:09:25 +02:00
Paul van Tilburg 063b8c5fe6 Use a lazy static to store the last status 2020-10-09 17:07:18 +02:00
Paul van Tilburg 390e31d51c Print errors during retrieval loop 2020-10-09 16:54:02 +02:00
Paul van Tilburg dc8808bf5e Split off the login/element value code; create a status struct 2020-10-09 16:50:11 +02:00
Paul van Tilburg 0754e580bd 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 2294383e6e Initial import into Git 2020-10-09 16:33:25 +02:00