Added support for Toledo scale reader MT SICS command set - #156
Conversation
updated readme
There was a problem hiding this comment.
what is the objective of this file ?
There was a problem hiding this comment.
The file is a python simulator for Toledo scales that supports the MT-SICS
command set. For users who do not have the physical device, they can run
this to simulate it
There was a problem hiding this comment.
very interesting ! could you a little text in the file (or in the readme to explain that point, and how to use it ? thanks ! )
There was a problem hiding this comment.
You can use a virtual serial com port program like com0com or VSPD to generate two virtual COM port pair and use one in the pywebdriver config and the other in the program by running "python toledo_sics_simulator.py --port COM5" or use socat on linux then run the simulator.
| #jcconv | ||
| simplejson | ||
| Flask<2.3 | ||
| Flask==2.2.5 |
There was a problem hiding this comment.
any reason for that change ?
There was a problem hiding this comment.
@app.before_first_request is deprecated in higher versions of flask. I used this particular file to generate the toledo_sics protocol and i had to use a version of flask that supports the decorator.
There was a problem hiding this comment.
but Flask<2.3 does'nt work ?
|
Why I first did: I downloaded the windows binary of the latest release and
after trying for Toledo protocol, the service keeps stopping. I stopped the
service and run the raw exe in program x86 folder and got the error of
deprecation of that decorator. I cloned the repository and tried to build
the binary myself and I used pip install requirements.txt, after generation
of. exe with the innosetup file, I still got same error message. I had to
set that particular version before it worked. You may want leave the <2.3
but I used that version explicitly because I was running out of time for
the project I wanted using it for. We used that version and it worked but
you can remove it.
…On Mon, Jul 28, 2025, 8:50 PM Sylvain LE GAL ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
In windows/requirements.txt
<#156 (comment)>
:
> @@ -1,6 +1,6 @@
#jcconv
simplejson
-Flask<2.3
+Flask==2.2.5
but Flask<2.3 does'nt work ?
—
Reply to this email directly, view it on GitHub
<#156 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BJRQVKEZ3H5JKYJ46QIMQVD3KZ5HPAVCNFSM6AAAAACCPDXLUOVHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMZTANRUGQZDANRUGY>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
We have written a protocol toledo_sics to allow sending read command "SI" to scale reader and correctly interpret the scale reader response S S weight unit