peeler-coding-llc / glucoseviewer Goto Github PK
View Code? Open in Web Editor NEWmacOS toolbar glucose viewer
License: MIT License
macOS toolbar glucose viewer
License: MIT License
Need tests
Determine a way to trigger an API call from outside the main app so that I can do so after a settings change - instead of the current method where it just calls every 15 seconds if the URL isn't set or there is another type of failure
Nightscout URL is correct and Open Nightcout button works correctly.
Error message in Xcode debug window:
typeMismatch(Swift.Int, Swift.DecodingError.Context(codingPath: [CodingKeys(stringValue: "bgs", intValue: nil), _JSONKey(stringValue: "Index 0", intValue: 0), CodingKeys(stringValue: "bgdelta", intValue: nil)], debugDescription: "Expected to decode Int but found a string/data instead.", underlyingError: nil))
If the API shows the last reading as being more than 10 minutes in the past, find a way to indicate that. Perhaps in place of the delta like glance does.
Originally posted by peterlynton January 23, 2023
@chasepeeler Would it be possible to add in the ability to follow more than one data source? Many diabetics have family members who are also diabetic so it would be a useful addition.
Store the API token in the keychain instead of the user defaults
dataCorrupted(Swift.DecodingError.Context(codingPath: [CodingKeys(stringValue: "bgs", intValue: nil), _JSONKey(stringValue: "Index 0", intValue: 0), CodingKeys(stringValue: "datetime", intValue: nil)], debugDescription: "Parsed JSON number <1674000772734.903> does not fit in Int.", underlyingError: nil))
Instead of just running the API call every 5 minutes, use the time of the last reading in the API results to and schedule the next API call for 5 minutes and a few seconds after that
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.