GithubHelp home page GithubHelp logo

openfoodfacts / openfoodfacts-ubuntu Goto Github PK

View Code? Open in Web Editor NEW
7.0 6.0 3.0 2.95 MB

Open Food Facts project for Ubuntu Touch

C++ 5.84% QML 82.78% QMake 2.00% JavaScript 7.70% Python 1.49% Shell 0.08% Dockerfile 0.12%
ubuntu-phone ubuntu-touch foodtracker food-additives food-products food hacktoberfest

openfoodfacts-ubuntu's Introduction

Open Food Facts for Ubuntu Touch

The official native client of the Open Food Facts database for Ubuntu Touch devices.

Developpers and contributors

  • nymerea
  • sy-per

License

This application is released under the term of the GNU GENERAL PUBLIC LICENSE Version 3.
See file gpl-3.0.txt for details.

Dependencies

Don't forget to install dependencies because the barcode detector uses static linkage

clickable.json

    "dependencies": [
        "libjpeg-dev",
        "libzbar0",
        "zbar-tools",
        "libzbar-dev",
        "libv4l-dev",
        "libqrencode-dev"
    ]
}

If you want publish your application on smartphone, create your docker image manually and don't forget to install dependencies on your kit with Dockerfile

Dockerfile

FROM clickable/ubuntu-sdk:16.04-armhf

RUN apt update

RUN apt install -y libglib2.0-dev libgdk-pixbuf2.0-dev libcairo2-dev
RUN apt install -y librsvg2-dev
RUN apt install -y libzbar-dev:armhf

RUN apt install -y libjpeg-dev:armhf
RUN apt install -y libv4l-dev:armhf

Terminal :

docker build ./ -t ut16.04-zbar

clickable.json

    "docker_image":"ut16.04-zbar",
    "dependencies": [
        "libjpeg-dev:armhf",
        "libzbar0:armhf",
        "zbar-tools:armhf",
        "libzbar-dev:armhf",
        "libv4l-dev:armhf",
        "libqrencode-dev:armhf"
    ]
}

Official Documentation of the Open Food Facts API

The official documentation for API : https://en.wiki.openfoodfacts.org/Project:API

Help translate the app

You can help translate Open Food Facts and the app at (no technical knowledge required, takes a minute to signup):

Status

Project Status Average time to resolve an issue Percentage of issues still open

Useful links

openfoodfacts-ubuntu's People

Contributors

co-k-ine avatar crowdin-bot avatar dependabot[bot] avatar guyou avatar kant avatar kazord avatar nymerea avatar sy-per avatar teolemon avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

openfoodfacts-ubuntu's Issues

no focus since few months

Hello, i use openfoodfact for ubuntuphone on bq aquaris 5. Since few months there is no focus so i can use it. Have you any idea to solve this ?
Thanks for this application!

Add support for amino acids, vitamins and minerals

We recently added support for vitamins and minerals in products.
In some cases, you will find what is below in a product:

Added vitamins:
Minerals:
Added amino acids:
Other nutritional substances added:
===== Vitamins and minerals detection =====

====== Vitamins ======

"vitamins_tags":["en:vitamin-a","en:cholecalciferol","en:vitamin-e","en:vitamin-c","en:thiamin","en:riboflavin","en:niacin","en:vitamin-b6","en:folic-acid","en:vitamin-b12","en:biotin","en:phylloquinone"]
====== Minerals ======

"minerals_tags":["en:calcium-citrate","en:potassium-citrate","en:sodium-citrate","en:magnesium-chloride","en:calcium-phosphate","en:potassium-phosphate","en:ferrous-sulphate","en:zinc-sulphate","en:cupric-sulphate","en:manganese-sulphate","en:sodium-carbonate","en:potassium-iodide"]
====== Amino acids ======

"amino_acids_tags":["en:l-tryptophan"]
====== Other nutritional substances =====

"other_nutritional_substances_tags":["en:taurine","en:inositol","en:choline-citrate","en:taurine","en:inositol","en:choline-citrate","en:taurine","en:inositol","en:choline-citrate"]

New deployment with the openfoodfacts spacename

Would it be possible to create an official version of the app within the Open Food Facts space name (something like org.openfoodfacts.scanner) with ownership of the account to [email protected] ?
This is to ensure that we have all accounts (Android, iOS, Windows Phone and Ubuntu) within control the Open Food Facts association).

Crash when scanning a bar code

Context:
Using UBports: Ubuntu 16.04 (OTA-7)
Image 2018121-2287
On a Nexus 5

Current behavior:
When scanning a bar code, the app simply crashes.

Expected behavior:
No crash and display the scanned product informations ;)

Difference if telephone is horizontal or vertical

I use openfoodfact on ubuntuphone bq aquaris 5.
On the same product if I use app horizontaly it doesn't work (focus ok but it doesn't recognize the product.
If phone is vertically, everything is ok, zoom and recognition

It will be great to display bar code, if product was not found

When I'm looking for product via bar code (for example via camera), and product is not found, currently it is displaying message:
"Your product was not found"

it will be great to display bar code in that code, if product was not found:

For example:
"Your product with barcode 123456789 was not found".
Then I could compare if application read barcode correctly.

It will be also nice to generate and display how such barcode should looks like.

[question] number of datasets

The app description states that approximately 65.000 datasets are available for scanning.
The internet page gives over 1 Million registered datasets.

Is the app description outdated? Or can not all datasets be accessed via the app?

Send HTTP header with requests

Send HTTP header with requests: "Official Ubuntu Mobile app version X.Y.Z - Scan" or "Official Ubuntu Mobile app version X.Y.Z - Search"

This helps us separate bots from legitimate queries

[enhancement] make app respect system theme

Although it is nice to have the option to switch between night mode and several colored themes, I would like to see system theme respected.

If system theme is suru-dark -> app is in night mode, otherwise in colored mode. Some other apps do provide this functionality.

=> system theme | ambiance theme | suru-dark theme

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.