Yes , this was my problem - didn't know how to associate data with ID
it's seem to be working - great !
Thank!
another small visual issue
it there a way to know what is the differnet and then paint it in color?
for eample
this is the reading (after the change you told me to do )
is there any command that can comapre old to new - and point out only the differnet in color?
*** in the end I need a simple user to be able to see it right away ****
***
1. I need it to take only the "+" ot the "-" - it's doesn't metter to me . then I will know where is the change
2. find the index if the cahnge in the new_data
3. color the index - and then print the new_data while the chagne is marked.
Thanks (again),
it's seem to be working - great !
Thank!
another small visual issue
it there a way to know what is the differnet and then paint it in color?
for eample
this is the reading (after the change you told me to do )
18FF20EF: 00 7d 00 00 7d ef 00 7d 0CD22F27: 40 00 00 00 00 00 00 00 18FEF117: 04 00 00 00 00 00 00 00 104C1A23: f7 0c f8 0c f8 0c f8 0c 0CFF104A: 80 00 00 00 00 00 00 08 104C1A23: f8 0c f8 0c f8 0c f8 0c 104C1A23: f7 0c f8 0c f8 0c f8 0c 104C1A23: f8 0c f8 0c f8 0c f9 0c 104C1A23: f7 0c f8 0c f8 0c f9 0c 104C1A23: f8 0c f8 0c f8 0c f9 0cas you can see in massage "104C1A23" byte1 is "playing" f7-f8-f7....
is there any command that can comapre old to new - and point out only the differnet in color?
*** in the end I need a simple user to be able to see it right away ****
***
I have found this mport difflib differences = difflib.ndiff('f8 0c f8 0c f8 0c f8 0c', 'f7 0c f8 0c f8 0c f8 0c') for difference in differences: print(difference)the output is
f - 8 + 7 0 c f 8 0 c f 8 0 c f 8 0 cthis is what I thought I can do:
1. I need it to take only the "+" ot the "-" - it's doesn't metter to me . then I will know where is the change
2. find the index if the cahnge in the new_data
3. color the index - and then print the new_data while the chagne is marked.
Thanks (again),