Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Averaging sensor results
Post: RE: Averaging sensor results

How about a loop inside your while loop to sum the sensor values received for each of 60 seconds, then divide all by 60 and write to file?
topfox General Coding Help 1 1,645 Jun-17-2021, 04:08 PM
    Thread: [Solved] Please, help me find a simple mistake
Post: RE: Please, help me find a simple mistake

Is your error that controller is defined as a positional argument, but you are calling it as a keyword argument?
topfox General Coding Help 2 1,755 Jun-17-2021, 12:08 PM
    Thread: Calculator code issue using list
Post: RE: Calculator code issue using list

I believe that i is not defined at line 21, and I'm not quite sure what you are trying to do. i could be used instead of 0, if a value had been assigned to it, like this: i = 0 if i in numlistthe ex...
topfox General Coding Help 4 2,291 Jun-11-2021, 10:13 PM
    Thread: Calculator code issue using list
Post: RE: Calculator code issue using list

I think you need line 21 to be: if 0 in numlist:
topfox General Coding Help 4 2,291 Jun-11-2021, 10:01 PM
    Thread: No module named theapp
Post: RE: No module named theapp

If you are installing modules using pip, then they will be automatically put in the site-packages folder. If theapp is your own module, then it needs to be located in one of the searched locations so ...
topfox Web Scraping & Web Development 10 5,875 Jun-09-2021, 07:38 PM
    Thread: Acces atributes from a button defined in a class inside the .kv
Post: RE: Acces atributes from a button defined in a cla...

Hi Tomli I don't have a full answer for you, but a couple of suggestions. I have written some very complicated assemblies of Kivy widgets, and have become frustrated with trying to control complicated...
topfox GUI 2 2,111 Jun-09-2021, 04:22 PM
    Thread: No module named theapp
Post: RE: No module named theapp

It sounds like theapp is in a location that is not being searched. This is a useful guide to checking the path: https://www.dummies.com/programming/pyth...in-python/
topfox Web Scraping & Web Development 10 5,875 Jun-09-2021, 01:27 PM
    Thread: VS Code debugger using wrong Python environment
Post: VS Code debugger using wrong Python environment

I hope you can help me persuade the VS Code debugger to use the right environment. Trying to run this sample file, mintest.py: import numpy import vgI have a settings.json file in the same folder as ...
topfox General Coding Help 0 2,516 Jun-09-2021, 10:01 AM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020