martianmellow12 / piabetes Goto Github PK
View Code? Open in Web Editor NEWA project to make getting carb and dietary fiber information easier for diabetics
License: Other
A project to make getting carb and dietary fiber information easier for diabetics
License: Other
An error is thrown occasionally talking about regex errors. The error is as follows:
Traceback (most recent call last): File "main.py", line 627, in <module> response = parse_carbs(query_carbs(request))+parse_fiber(query_fiber(request)) File "main.py", line 412, in parse_carbs main = 'Qty: '+amount.group(0)+'\nCarbs: '+carbs.group(0)+'\n' AttributeError: 'NoneType' object has no attribute 'group'
It has been noted that Dietary Fiber
is misspelled as Diatery Fiber
when responses are sent. Don't worry, the information sent is as accurate as it would be without the typo. This will be fixed in v1.5, though the library entries will be misspelled until the library updates itself (which occurs on the first of every month at 3:00 AM).
As TextMagic can be somewhat annoying to set up, I've decided that I'm going to implement multiple APIs and allow the user to pick which one they want to use. An alternative to TextMagic would be Twilio, for example, which is better suited for individuals, but possibly a bit more expensive. I plan to implement modules for each API that can simply be installed and used.
For some reason, some requests will crash Piabetes. I've not been able to find a pattern, and this occurs in both standard and developer mode. If you ever send a normal request and it gives an error, please notify me so that I can add it to the table and hopefully find a pattern.
I should've implemented this since v1.0, but in light of the current bug that is plaguing the system, I figure that now is as good as any other time to implemented actual log files. v1.51 only prints out the log to the monitor if it's plugged in, and without a monitor it's impossible to view previous logs. This will create a "Logs" folder, and save said logs here. This will be released in v1.52 as soon as it's implemented, so hopefully this will help isolate and fix the bug causing occasional crashes.
I noticed when updating my system to 1.52 that my api keys, whitelist, and config file were all deleted. This doesn't occur on mac, so I'm assuming the issue is related to the filesystem. This will be fixed ASAP, but the updater will have to be manually downloaded, which means you will have to re-install Piabetes on whatever host device you're using.
I'm trying to decide which update system would be better to use for Piabetes. I could have it update itself automatically whenever one is available, which would make maintenance easier for users, but manual updates allow users to decide when they would like to update, as if they're happy with the current version, they may not want to update. Any suggestions would be greatly appreciated.
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.