Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Merge two simple scripts
Post: Merge two simple scripts

This is so out of my league so i really need some help. I want to merge theese two scripts. There is a button function in the first script, wich i dont need in this one. Is there a way to replace th...
Kimzer General Coding Help 1 1,993 Jul-06-2018, 04:12 PM
    Thread: PHP Gallery sorting by newest file
Post: RE: PHP Gallery sorting by newest file

You sir are absolutely right, wrong forum indeed. lol
Kimzer Web Scraping & Web Development 2 2,749 Jun-18-2018, 06:32 PM
    Thread: Sending different color codes in python at certain times
Post: RE: Sending different color codes in python at cer...

Anyone that would be able to help me out here? :)
Kimzer General Coding Help 4 3,377 Jun-18-2018, 06:31 PM
    Thread: PHP Gallery sorting by newest file
Post: PHP Gallery sorting by newest file

Php Gallery Found this neat php gallery, but im trying to get it to display the newest pictures first. The files are already being named by date so i think this should be doable. By newest picture i ...
Kimzer Web Scraping & Web Development 2 2,749 Jun-18-2018, 03:49 AM
    Thread: Sending different color codes in python at certain times
Post: RE: Sending different color codes in python at cer...

Not quite what i was after. This is how i currently do it, but its way too slow and sluggish. import requests import time colors = {'white':'{"on":true,"bri":255,"sat":0,"hue":0}', 'blue'...
Kimzer General Coding Help 4 3,377 Jun-17-2018, 03:22 PM
    Thread: Sending different color codes in python at certain times
Post: Sending different color codes in python at certain...

Hi all.. Looking for some help here. Using below script. Trying to add the following functions: I want the pir sensor to basically do nothing between midnight and 0500. So disabled at certain times,...
Kimzer General Coding Help 4 3,377 Jun-04-2018, 09:05 PM
    Thread: Need some help with merging two scripts
Post: RE: Need some help with merging two scripts

Your example worked somewhat. But it wouldnt continiue after pir had seen movement This is how it looks after ive been tinkering. The error is here on line 17: end time = time.time + (light_...
Kimzer General Coding Help 5 3,313 May-25-2018, 08:32 PM
    Thread: Need some help with merging two scripts
Post: RE: Need some help with merging two scripts

Got some more help on another forum, but this also really helped me along. Currently stuck here, line 50 is causing issues and im not able to see why. import RPi.GPIO as GPIO import time import requ...
Kimzer General Coding Help 5 3,313 May-25-2018, 06:06 PM
    Thread: Need some help with merging two scripts
Post: Need some help with merging two scripts

Would you be able to assist a noobie here with a small python script? Editing my question. As the below code worked for what it was intended. Now what i am trying to achieve is that i also have a se...
Kimzer General Coding Help 5 3,313 May-23-2018, 04:18 PM
    Thread: Phillips hue simple on script
Post: RE: Phillips hue simple on script

No idea what the actual problem here was, but the script does indeed work fine. The solution was actually to delete the lightstrip from the hue app and re-add them. Then it started working. Thanks for...
Kimzer General Coding Help 6 4,528 Jan-16-2018, 07:53 AM
    Thread: Phillips hue simple on script
Post: RE: Phillips hue simple on script

My bad, was missing some of the script. It actually looks like this: import requests import time time.sleep(1) headers = { 'Accept': 'application/json', } data = '{"on":true,"bri":255,"sat":2...
Kimzer General Coding Help 6 4,528 Jan-15-2018, 05:58 PM
    Thread: Phillips hue simple on script
Post: RE: Phillips hue simple on script

No error message at all. That is all the code actually, it is being ran by another script. But ive tested manually running it and thru the other script. Both no good. The IP is the same for both the p...
Kimzer General Coding Help 6 4,528 Jan-15-2018, 05:37 PM
    Thread: Phillips hue simple on script
Post: Phillips hue simple on script

Any reason this shouldnt work anymore?` Updated my raspberry pi and since it has been unable to actually turn my phillips hue lights on with the script below.. Im unsure as to why. import requests im...
Kimzer General Coding Help 6 4,528 Jan-15-2018, 05:10 PM
    Thread: Time based control of phillips hue
Post: RE: Time based control of phillips hue

Aaah bloody perfect! Thank you both so much! :D
Kimzer General Coding Help 3 3,425 Dec-22-2017, 07:35 PM
    Thread: Time based control of phillips hue
Post: Time based control of phillips hue

Hi all, Very new to all of this so bear with me. Below is my script, ive commented out a few colors. What i am trying to do is the following; A second script reads motion from a sensor. Wich trigg...
Kimzer General Coding Help 3 3,425 Dec-22-2017, 04:38 PM
    Thread: Simple python script for pir motion sensor
Post: Simple python script for pir motion sensor

Hey guys, first post here so be gentle. I managed to throw together this bit below by looking at other pir sensor scripts to control a set of hue strips. Its probably a million better ways to do this...
Kimzer General Coding Help 0 4,013 Oct-03-2017, 05:36 PM

User Panel Messages

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