Contributors mailing list archives

contributors@odoo-community.org

Browse archives

Avatar

Re: Connecting weight scales to Odoo

by
simon
- 30/01/2025 12:17:55

Hello Daniel,

We have made a small pilot to connect a mettler toledo precision scale to odoo via direct ethernet connection to a debian machine/raspberry pi. https://github.com/auneor/scale_pilot It's not very well documented, but it launch a daemon listening on port 5000

On Odoo side, there is a module used to do some automatic quality measures, but unfortunately, I can't share it for the moment. But it does some calls like:

  async get_weight_before() {
    let after = false;
    fetch("http://127.0.0.1:5000/get_weight")
      .then((response) => {
        if (response.ok) {
          return response.json();
        } else {
          throw new Error("Network response was not ok.");
        }
      })
      .then((data) => {
        this.props.scaleCell(this.props.id, data.weight.toString(), after);
      })
      .catch((error) => {
        console.log("Error fetching weight:", error);
        this.props.scaleCell(this.props.id, false, after, true);
      });
  }

Regards

Le 30/01/2025 à 10:17, Daniel Reis a écrit :
Thank you Ignacio and Frederick.

This is an EE customer and I'm aware that the Odoo IoT box supports Mettler-Toledo scales.
But it is kind of a black box solution.

The OCA and open source has spoiled me, and I feel uncomfortable with anything I can't peek inside and hack in case of need :-)
I was hoping PyWebDriver could provide a drop in replacement for this kind of use case.
I know it already does for the POS (I used it for an EE customer, because the RaspberryPy did not do well in their work conditions).

/Daniel

On 30/01/2025 08:42, Ignacio (Acysos S.L.) wrote:

Hello,

The mettler Toledo can be connected, is in the core o Odoo. You only has to use a iotbox. Some function of iotbox are enterprise, but connect a scale to POS is open source. You can download the raspberry pi image in the Odoo website: https://nightly.odoo.com/master/iotbox/

Greetings,
Ignacio
https://www.acysos.com

El 30/1/25 a las 9:17, Daniel Reis escribió:
Hello,

I'm looking into connecting weight scales to Odoo, wither for warehouse operations or for quality controls.
For example, the Mettler-Toledo brand.

I wonder if we have something under the OCA for this?
Would PyWebDriver (https://github.com/pywebdriver/pywebdriver) be helpful here?

Thank you for sharing!

--
DANIEL REIS
MANAGING PARTNER

>> Schedule time on my calendar.
M: +351 919 991 307
E: dreis@OpenSourceIntegrators.com
A: Avenida da República 3000, Estoril Office Center, 2649-517 Cascais

[Logo OpenSourceIntegrators.com]

_______________________________________________
Mailing-List: https://odoo-community.org/groups/contributors-15
Post to: mailto:contributors@odoo-community.org
Unsubscribe: https://odoo-community.org/groups?unsubscribe

--
Ignacio - Consultor
Acysos S.L. (www.acysos.com)
Odoo Partner (https://www.odoo.com/es_ES/partners/acysos-s-l-80090)
Asociado Asociación Española de Odoo (https://www.aeodoo.org/members/acysos-s-l-24)
Odoo Community Association (https://odoo-community.org/members/acysos-s-l-ignacio-ibeas-760)
Github (http://www.github.com/acysos)
Odoo Apps (https://www.odoo.com/apps/modules/browse?author=Acysos S.L.)
C/ Miguel Astrain 18, 1º Oficina A
31006 Pamplona, Navarra.
ignacio@acysos.com
Tel. 948238905
---------------------- // -------------------
La información contenida en este mensaje de correo electrónico es confidencial, para ser leída por la(s) persona(s) a quién se dirige. El acceso a este mensaje por otras personas no está autorizado. Si Ud. no es la persona a la que va dirigido, cualquier divulgación, copia o distribución de la información queda prohibida y puede ser ilegal. Asimismo, cualquier acción tomada o dejada de tomar basada en la información contenida en este mensaje queda prohibida y puede ser ilegal.
The information in this e-mail is confidential and may be legally privileged. It is intended solely for the addressee. Access to this e-mail by anyone is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omited to be taken in reliance on it, is prohibited and may be unlawful.

_______________________________________________
Mailing-List: https://odoo-community.org/groups/contributors-15
Post to: mailto:contributors@odoo-community.org
Unsubscribe: https://odoo-community.org/groups?unsubscribe


--
DANIEL REIS
MANAGING PARTNER

>> Schedule time on my calendar.
M: +351 919 991 307
E: dreis@OpenSourceIntegrators.com
A: Avenida da República 3000, Estoril Office Center, 2649-517 Cascais

[Logo OpenSourceIntegrators.com]

_______________________________________________
Mailing-List: https://odoo-community.org/groups/contributors-15
Post to: mailto:contributors@odoo-community.org
Unsubscribe: https://odoo-community.org/groups?unsubscribe

--
 

Cordialement,

 
photo

Simon PESSEMESSE
Aunéor Conseil

Responsable technique

09.72.63.50.88  |   04.84.51.21.44

www.auneor-conseil.fr | simon@auneor-conseil.fr

youtube

linkedin

twitter

facebook

 

Venez (re) découvrir Odoo 18 et nous rencontrer à Marseille le 11 février 2025

 

App Banner Image

 

Img Une question d'utilisation ? Contactez le support

 

Découvrez nos applications Odoo apps store en cliquant ci-dessous :

 

App Banner Image

 
 

__tpx__

Reference