pitop | Raspberry Pi terminal based activity monitor
kandi X-RAY | pitop Summary
kandi X-RAY | pitop Summary
Yes I know there are plenty of solutions already available, but I wanted to build my own terminal based activity monitor in Go, for my Raspberry Pi. This is for RPI 4, it should work on RPI 3 (Update : It works on RPI 3).
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of pitop
pitop Key Features
pitop Examples and Code Snippets
Community Discussions
Trending Discussions on pitop
QUESTION
In fear of asking a silly question, and with the knowledge that I am in over my head, Im hoping that someone will lead me in the right direction.
Im working on an art project where, using a PiTop with a proximity sensor, when people get within a certain distance of the sensor, the text will change using tkinters message system (to be honest any way is doable, as long as I can set a black window with white text, and this is the only way I have found it to (almost) work). I have come to the realization that this is more complicated than I anticipated, so the basic Python skills I have (or apparently dont have) wont suffice for me to pull this off. Either way, here is the basic code I have made. I have been able to print the text (and use the array to get the word to create a sentence I want in Norwegian), but I dont understand how to actually run the measuring of distance code, and then trigger the new word as someone is approaching the sensor at a specific distance. The code as it stands now looks like this:
...ANSWER
Answered 2020-Feb-24 at 14:09You can use master.after(milliseconds, function_name)
to run again function which will check sensor and change text.
I don't have sensor so I use random to change text every 1000ms (1s)
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install pitop
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page