Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Running an action only between certain times
Post: RE: Running an action only between certain times

(Mar-15-2023, 01:32 PM)Gribouillis Wrote: The else part goes with the if, not the while. You need to indent the else part here. Done, it's late here in AU, think might be good to go, will test prope...
alexbca General Coding Help 9 1,802 Mar-15-2023, 01:51 PM
    Thread: Running an action only between certain times
Post: RE: Running an action only between certain times

OK, I feel stupid, I added the line to print the time readout, the function is running, however I am not seeing the print of LightsActivated, but the code proceeds to action the post requests. from ...
alexbca General Coding Help 9 1,802 Mar-15-2023, 12:48 PM
    Thread: Running an action only between certain times
Post: RE: Running an action only between certain times

(Mar-15-2023, 07:13 AM)Gribouillis Wrote: (Mar-15-2023, 06:04 AM)alexbca Wrote: I'm still seeing the function run outside of the hours 2am-7am.Could you replace print("LightsActivated")by print("L...
alexbca General Coding Help 9 1,802 Mar-15-2023, 07:43 AM
    Thread: Running an action only between certain times
Post: RE: Running an action only between certain times

Thank you Gribouillis and deanhystad, I will take a look when I'm back at the computer. What I'm doing with the lights, is only switching them on when someone walks into the garden at night, so I only...
alexbca General Coding Help 9 1,802 Mar-02-2023, 12:21 PM
  Question Thread: Running an action only between certain times
Post: Running an action only between certain times

I'm running a basic python program on a raspberry pi with an input connected to a pair of outdoor infrared beams. When the beams are crossed, a notification is sent via Pushbullet. This component of t...
alexbca General Coding Help 9 1,802 Mar-02-2023, 02:24 AM
    Thread: Running an action only if time condition is met
Post: RE: Running an action only if time condition is me...

Thanks crew, will check these out 😊
alexbca General Coding Help 5 1,369 Oct-27-2022, 02:15 PM
    Thread: Running an action only if time condition is met
Post: RE: Running an action only if time condition is me...

Might look at a PE cell at a later point! I've got it working with this code - but it requires times to be entered manually. from pushbullet import Pushbullet import RPi.GPIO as GPIO import requests...
alexbca General Coding Help 5 1,369 Oct-21-2022, 10:12 AM
  Question Thread: Running an action only if time condition is met
Post: Running an action only if time condition is met

Hi everyone! Newbie here, I am using the below script to generate a push notification when I get a delivery at home / someone walks into my garden, using input from some outdoor infrared beams. This...
alexbca General Coding Help 5 1,369 Oct-21-2022, 05:32 AM

User Panel Messages

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