Hey guys, so I've got an Arduino measuring water flow though a tap and sending the data via RF Transmission to a Raspberry Pi 3 Model B. I've got the data being received and displayed but now i am trying to implement a GUI to display the data on. I've written the Transmission code and the GUI code separately and run them through from the terminal. They both work.
Here's my problem, I need to try to get the transmission code to send the integer value to the GUI. The integer value of updating every three seconds. I have tried numerous ways to get the value into the GUI with no luck. The most promising way Iv'e found is to write the value to a text file every time it updates. How can i get the GUI to read this file. It seems to me that i cant read and write text files from to different programs at the same time? When i put the read code in the GUI is a loop, it never exits the loop hence not letting the GUI open.
Any ideas on this will be much appreciated!