Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Process halting
Post: Process halting

Hey Everyone, I am writing a program that checks various sensors in the background, and controls hardware accordingly. I wrote the program to using Processes in Multiprocessing, so that each sensor ...
JarredAwesome General Coding Help 0 1,550 Dec-24-2020, 11:46 PM
    Thread: Serializable
Post: RE: Serializable

(Nov-19-2020, 11:36 PM)bowlofred Wrote: I think you'll need more information on how it was created. I tried running it though the javaobj-py3 decoder (both with and without the first 4 bytes) and i...
JarredAwesome General Coding Help 4 2,235 Nov-19-2020, 11:50 PM
    Thread: Serializable
Post: RE: Serializable

(Nov-19-2020, 10:32 PM)Larz60+ Wrote: I'm not sure what that timecode is. Standard python timestamp looks more like: 1605825093.330983 I know! its kinda crazy. But I believe the first 4 numbers are...
JarredAwesome General Coding Help 4 2,235 Nov-19-2020, 10:47 PM
    Thread: Serializable
Post: Serializable

Hey everyone, I am working on making a custom controller for a BLE device using a rasp-pi and python. The app that comes with my BLE device is written for an android device. I was able to find the s...
JarredAwesome General Coding Help 4 2,235 Nov-19-2020, 10:24 PM
    Thread: input timer
Post: RE: input timer

You might be trying to reinvent the wheel. you can use the schedule module to set timed events, and it is just a matter of creating functions for it to run.
JarredAwesome General Coding Help 13 4,868 Nov-19-2020, 10:08 PM
    Thread: Using Bleck to write
Post: Using Bleck to write

Hey everyone, does anyone have experience using bleak? I am trying to write to a device using this: async def run(address): async with BleakClient(address) as client: answer = await cl...
JarredAwesome General Coding Help 0 1,259 Nov-14-2020, 08:18 PM
    Thread: lcd script
Post: RE: lcd script

This is what I came up with. Hopefully someone can use this to help themselves out I use replace and getattr. I put the name of the functions I need into square brackets def __value(self, Sess...
JarredAwesome Code sharing 2 2,991 Oct-25-2020, 03:23 AM
    Thread: lcd script
Post: lcd script

Hey everyone, I'm working on a function that helps phrase the values for a 16x2 char lcd. every 5 seconds the screen changes to a different 'page'. at the moment it does what I need, but I feel there...
JarredAwesome Code sharing 2 2,991 Oct-22-2020, 06:38 PM
    Thread: Error Handling
Post: RE: Error Handling

(Oct-17-2020, 12:37 AM)metulburr Wrote: (Oct-16-2020, 11:26 PM)JarredAwesome Wrote: one: as you can see, if an error occurs, but isn't "program ending", it will inform me of the error every time i...
JarredAwesome General Coding Help 5 2,939 Oct-17-2020, 12:41 AM
    Thread: Error Handling
Post: RE: Error Handling

So I looked up the logging module. It looks help full, but is there an advantage of using this over Try-Except"? Also, can this be set to ignore multiples of the same error?
JarredAwesome General Coding Help 5 2,939 Oct-17-2020, 12:04 AM
    Thread: Error Handling
Post: RE: Error Handling

(Oct-16-2020, 11:33 PM)bowlofred Wrote: Are you using the logging module? Calling logging.exception("message") from within the except block should generate the traceback information in the log for ...
JarredAwesome General Coding Help 5 2,939 Oct-16-2020, 11:39 PM
    Thread: Error Handling
Post: Error Handling

Hey Everyone, Does anyone have any good ideas for Error Logging? Obviously, Try-Except will be used. but I am curious how you guys handle the actual logging. Right now, I have all the logging store...
JarredAwesome General Coding Help 5 2,939 Oct-16-2020, 11:26 PM
    Thread: chr codes
Post: RE: chr codes

Sorry, I meant for the car() function
JarredAwesome General Coding Help 3 1,925 Oct-06-2020, 02:08 AM
    Thread: chr codes
Post: chr codes

anyone know where I can find the code to get a superscript 2? Thanks
JarredAwesome General Coding Help 3 1,925 Oct-05-2020, 11:50 PM
    Thread: What IDE do you use?
Post: What IDE do you use?

Hey everyone, I have been programming in python for a few weeks now, and I am starting to get a better handle on it. I am currently using KOMODO IDE because for Php, JavaScript, CSS, HTML and all the...
JarredAwesome News and Discussions 4 2,270 Sep-30-2020, 08:12 PM
    Thread: looking for a custom exception
Post: RE: looking for a custom exception

(Sep-21-2020, 05:53 PM)buran Wrote: I know what's in __init__.py - that's why I show it to you. Sorry about that. I missread what you wrote. That updated code works perfected! thanks.
JarredAwesome General Coding Help 5 3,256 Sep-21-2020, 06:38 PM
    Thread: looking for a custom exception
Post: RE: looking for a custom exception

(Sep-21-2020, 05:25 AM)buran Wrote: Also, show as your imports with respect to w1thermsensor or w1thermsensor.errors Looking at the project __init__.py they import their custom errors at to level, ...
JarredAwesome General Coding Help 5 3,256 Sep-21-2020, 05:48 PM
    Thread: looking for a custom exception
Post: looking for a custom exception

Hey everyone, I am working on a python script that uses a thermometer. I want to put a line of code in that test to make sure the thermometer is hooked up, so I using "try except". I found a library...
JarredAwesome General Coding Help 5 3,256 Sep-21-2020, 02:26 AM
    Thread: chkFile with absolute paths
Post: RE: chkFile with absolute paths

do you have a better suggestion? I tried it when I made it and it worked, but I will check again to make sure it wasn't a fluke. Python is new to me, and the other languages I have used didn't differ...
JarredAwesome General Coding Help 7 2,992 Sep-21-2020, 02:22 AM
    Thread: chkFile with absolute paths
Post: RE: chkFile with absolute paths

You can also add in a list of paths, and it will return False if one is. It good, or True if they are all valid. Compares the runs the __len__ attribute into the hasattr function to see if its a list...
JarredAwesome General Coding Help 7 2,992 Sep-20-2020, 12:55 PM

User Panel Messages

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