You can use Django REST framework to get data into Django and a separate Python (or other) program to feed it in. Have the Python program connect to the scale and use whatever mechanisms are required there to get your data.
If the scale has a browser interface, then use urllib to read a page and then use BeautifulSoup to rummage through it and pick out the weight etc. Then push it using json into your REST endpoint. hth - Tom > On Jul 11, 2018, at 11:26 PM, ERICK OMONDI AYARA <ayaraer...@gmail.com> wrote: > > Hello, I would like to capture weight from a weighing scale using > TCP/Ethernet cable into a django app. If anyone can advice on how to use > sockets or any other means to make this work, will be appreciated. Regards > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to django-users+unsubscr...@googlegroups.com > <mailto:django-users+unsubscr...@googlegroups.com>. > To post to this group, send email to django-users@googlegroups.com > <mailto:django-users@googlegroups.com>. > Visit this group at https://groups.google.com/group/django-users > <https://groups.google.com/group/django-users>. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/ee33e49e-67d5-491a-a113-09fbd5290d56%40googlegroups.com > > <https://groups.google.com/d/msgid/django-users/ee33e49e-67d5-491a-a113-09fbd5290d56%40googlegroups.com?utm_medium=email&utm_source=footer>. > For more options, visit https://groups.google.com/d/optout > <https://groups.google.com/d/optout>. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/FEBBB7C6-7CF7-4E11-9372-ED957E4AD0DF%40gmail.com. For more options, visit https://groups.google.com/d/optout.