Search Results
|
Post |
Author |
Forum |
Replies |
Views |
Posted
[asc]
|
|
|
Thread: Issues with "connection timed out"
Post: Issues with "connection timed out"
I have a Raspberry Pi running a python code that is expected to do a requests.post when a PIR detects motion. It works for several days in a row, then fails. The PIR is seeing the motion, as every t... |
|
duckredbeard |
General Coding Help |
0 |
1,471 |
Dec-31-2022, 10:46 PM |
|
|
Thread: Does this code need to be so long?
Post: RE: Does this code need to be so long?
That looks like a good idea. Thanks for that.
Shoulda mentioned a few placeholders in my code. Eventually I will have the code power a relay that controls the power to the auger motor. Instead of ... |
|
duckredbeard |
General Coding Help |
4 |
902 |
Sep-26-2022, 10:34 PM |
|
|
Thread: Does this code need to be so long?
Post: RE: Does this code need to be so long?
I totally forgot to demo what lines 21 through 56 do. It basically does a ripple effect with the three LEDs three times. Just for show when the timer gets plugged in. Like a power up confirmation. |
|
duckredbeard |
General Coding Help |
4 |
902 |
Sep-26-2022, 09:56 PM |
|
|
Thread: Does this code need to be so long?
Post: Does this code need to be so long?
Made this timer to go with my son's BattleBots Arena (this one) and intend to build it into the housing of the motorized auger on one side. I got all that hardware figured out, but the code is kinda ... |
|
duckredbeard |
General Coding Help |
4 |
902 |
Sep-26-2022, 09:47 PM |
|
|
Thread: Refresh token for Wyze SDK
Post: Refresh token for Wyze SDK
I have added a few Wyze smart bulbs to my home security system, running them on their own program but using door sensors from the security program. Everything works when I start the program, but afte... |
|
duckredbeard |
General Coding Help |
0 |
1,112 |
May-16-2022, 04:33 AM |
|
|
Thread: Can this run faster?
Post: Can this run faster?
I need help making this run faster. It takes about 7 seconds for the lights to respond when I open or close the door. I'm thinking lines 24-26 and 48-50 should be somewhere else, so that their stat... |
|
duckredbeard |
Code Review |
0 |
1,573 |
Feb-13-2022, 04:15 PM |
|
|
Thread: PIR help
Post: RE: PIR help
Now that I am home and testing, here is what I have. The tablet is set to timeout at 2 minutes (120 seconds). I am running the code that I posted in my second post. The tablet gets the message and ... |
|
duckredbeard |
General Coding Help |
2 |
1,790 |
Jun-12-2021, 06:28 PM |
|
|
Thread: PIR help
Post: RE: PIR help
Really thinned it out and added a sleep step at line 14 for 100 seconds, the tablet would be set to time out at 120 seconds. As long as motion is detected between the end of the 100 seconds and the ... |
|
duckredbeard |
General Coding Help |
2 |
1,790 |
Jun-12-2021, 01:19 PM |
|
|
Thread: PIR help
Post: PIR help
I have a Raspberry Pi that monitors my keg fridge's temperature, pressure, and weight of the three kegs. It sends that information to an Android tablet that displays this data. I also have a PIR mot... |
|
duckredbeard |
General Coding Help |
2 |
1,790 |
Jun-12-2021, 11:15 AM |
|
|
Thread: Make these LEDs stay on
Post: RE: Make these LEDs stay on
I understand that. I have not needed to do the tare because I am processing the raw data on the device that gets the data. I know what a full and empty keg's numbers should be, so I just have Tasker... |
|
duckredbeard |
General Coding Help |
5 |
2,996 |
Apr-08-2021, 10:26 PM |
|
|
Thread: Make these LEDs stay on
Post: RE: Make these LEDs stay on
I added a
time.sleep(580)near the end to see if that will do it. That should keep the light on for all but a few seconds of each time it is run. It accomplishes pretty much the same thing as a loop... |
|
duckredbeard |
General Coding Help |
5 |
2,996 |
Apr-08-2021, 09:26 PM |
|
|
Thread: Make these LEDs stay on
Post: RE: Make these LEDs stay on
I know the program is running because lines 50-53 send the variable to my Android phone and Tasker processes the variables and I see that happening. |
|
duckredbeard |
General Coding Help |
5 |
2,996 |
Apr-08-2021, 01:33 PM |
|
|
Thread: Make these LEDs stay on
Post: Make these LEDs stay on
When I run this in Thonny IDE, the LEDs light up like they are supposed to and the rest of the code works fine. when I run this as a cronjob I get everything except the LEDs. How do I make the LEDs ... |
|
duckredbeard |
General Coding Help |
5 |
2,996 |
Apr-08-2021, 01:01 PM |
|
|
Thread: Convert looping home security to a one time scan of switches and sensors
Post: Convert looping home security to a one time scan o...
I present to you my home security program that monitors several doors and the activity of one PIR sensor. This program runs on boot and monitors GPIOs for button events. The bit.ly links are Tasker/J... |
|
duckredbeard |
General Coding Help |
0 |
1,755 |
Dec-08-2020, 04:31 AM |
|
|
Thread: Pressure monitor for keg fridge
Post: Pressure monitor for keg fridge
I just put this together and it seems to be working well. I don't have the LEDs connected yet, but the "print" function proves they will with correct connections. I may add a few more LEDs for the s... |
|
duckredbeard |
Code Review |
1 |
2,363 |
Dec-02-2020, 05:03 AM |
|
|
Thread: GPIO high if network IP has good ping
Post: RE: GPIO high if network IP has good ping
The LEDs are on the breadboard attached to the raspberry pi. If the pi gets a good ping to the Android phone I want the LEDs to light up |
|
duckredbeard |
General Coding Help |
3 |
2,342 |
Oct-12-2020, 10:16 PM |
|
|
Thread: GPIO high if network IP has good ping
Post: GPIO high if network IP has good ping
I would like to ping an android phone on my network every 30 minutes and light one of two LEDs according to the ping result. Can a python program do this? |
|
duckredbeard |
General Coding Help |
3 |
2,342 |
Oct-12-2020, 09:39 PM |
|
|
Thread: Editing a txt document using python
Post: RE: Editing a txt document using python
I figured it out. I will try to post the code tomorrow after I implement it in my projects. |
|
duckredbeard |
General Coding Help |
3 |
2,461 |
Sep-24-2020, 02:38 AM |
|
|
Thread: Editing a txt document using python
Post: RE: Editing a txt document using python
Actually, I would really like a google sheet to be the log for this. From there, I can use Tasker to get data and/or edit the sheet. I've never used sqlite.
I have no idea HOW to do what you sugges... |
|
duckredbeard |
General Coding Help |
3 |
2,461 |
Sep-23-2020, 03:06 PM |
|
|
Thread: Editing a txt document using python
Post: Editing a txt document using python
I have a program that monitors a DHT11 temperature sensor and logs the data to a txt document. The program loops every 3 minutes, so it gets a new line quite often. I'd like to have it purge out the... |
|
duckredbeard |
General Coding Help |
3 |
2,461 |
Sep-23-2020, 02:25 PM |