Jump to content

LuukvanA

Member
  • Posts

    169
  • Joined

  • Last visited

Awards

This user doesn't have any awards

4 Followers

About LuukvanA

  • Birthday Oct 08, 1994

Profile Information

  • Gender
    Male
  • Member title
    Junior Member

System

  • CPU
    Intel 3770k @ 4.6 gHz
  • Motherboard
    Asrock Pro-4 M
  • RAM
    Corsair Vengeance 2 x 4 GB @ 1600 mHz
  • GPU
    nVidia GTX 670
  • Case
    Zalman Z11
  • Storage
    Samsung 830 128GB SSD & 5TB of HDDs
  • PSU
    XFX PRO 550W
  • Display(s)
    1x LG 21,5 inch 1080p IPS display
  • Cooling
    Scythe Mine 2
  • Keyboard
    Corsair K90
  • Mouse
    Roccat Kova+
  • Sound
    Edifier Studio 6 Plus

Recent Profile Visitors

949 profile views
  1. https://www.humblebundle.com/gift?key=DVbDSthf3MkCrMz7 I hope someone is happy with it
  2. Oh god I want this phone so badly, my favourite thing is the build quality, for sure!
  3. Thank you very much!!! That worked, i tried exactly that but I didn't remove the ''s stupid me, also thank you very much for explaining, now I understand what i am doing... Can I thank you by giving you a steam key for Hotline Miami? The links are used for IFTTT-like actions, like if my phone leaves a certain gps location (my house) turn off all lights. I hope you understand what i mean;) Cheers
  4. I want to have links i can go to, to turn on/off the lights, instead of 1 webpage with all of them. the page doesn't have to say anything, just make sure that it triggers the lightswitch Taking out shell_exec didn't help, it only made the buttons stop working:(
  5. Yes it does work, when i go to the page and press aan (on) or uit (off), the switches react as they should, I am sure the php file has the right privilages, I only need some sort of direct link to the buttons, so i will have 10 links, so that if i visit the page the button is pressed automatically. That is probably not possible, i know, but do you know an easy way to do this? Privilages: Thanks in advance
  6. Hey guys, so i am trying to make it so that if I visit a PHP page on my Raspberry Pi (set up as PHP server and a RF remote), the Pi notices that and runs a command (sudo ./action 511 A on). If i run that command from the command line (connected with SSH->Putty) it works fine, also if I go to the example page that i edited visiually everything works fine but I can't figure out how to make the PHP page to run a command by just going to the page. I am literrally trying for 6 hours straight now but nothing seems to work... I'm sorry if I say something stupid, i;m a real noob at this... I would really appriciate it if someone would help me! How it looks now: WORKING CODE: <?php$data = 'sudo /root/wiringPi/examples/lights/./action ';$knop=$_POST['button'];$channel=$_POST['dipchannel']; if ( isset($_POST['button']) ) {shell_exec(''.$data.' '.$channel.' '.$knop.'');}?> <!DOCTYPE html><!--[if lt IE 7 ]><html class="ie ie6" lang="en"> <![endif]--><!--[if IE 7 ]><html class="ie ie7" lang="en"> <![endif]--><!--[if IE 8 ]><html class="ie ie8" lang="en"> <![endif]--><!--[if (gte IE 9)|!(IE)]><!--><html lang="en"> <!--<![endif]--><head> <!-- Basic Page Needs ================================================== --><meta charset="utf-8"><title>Remote</title><meta name="description" content=""><meta name="author" content=""> <!-- Mobile Specific Metas ================================================== --><meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> <!-- CSS ================================================== --><link rel="stylesheet" href="stylesheets/base.css"><link rel="stylesheet" href="stylesheets/skeleton.css"><link rel="stylesheet" href="stylesheets/layout.css"> <!--[if lt IE 9]><script src="[url=http://html5shim.googlecode.com/svn/trunk/html5.js]http://html5shim.googlecode.com/svn/trunk/html5.js"></script>[/url]<![endif]--> <!-- Favicons================================================== --><link rel="shortcut icon" href="images/favicon.ico"><link rel="apple-touch-icon" href="images/light.png"><link rel="apple-touch-icon" sizes="72x72" href="images/light.png"><link rel="apple-touch-icon" sizes="114x114" href="images/light.png"> </head><body> <!-- Primary Page Layout================================================== --> <!-- Delete everything in this .container and get started on your own site! --> <div class="container"><div class="sixteen columns"><h1 class="remove-bottom" style="margin-top: 40px"><img src="./images/light.png"> Remote</h1><hr/><h3>Lights </h3><p>Washing Table</p><form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post"> <button class="button" type="submit" name="button" value="511 A on" /> aan </button> <button class="button" type="submit" name="button" value="511 A off" /> uit </button> </form> <p>Middle of the Room</p> <form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post"> <button class="button" type="submit" name="button" value="511 B on" />aan</button> <button class="button" type="submit" name="button" value="511 B off" />uit</button> </form> <p>LED Strip</p> <form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post"> <button class="button" type="submit" name="button" value="511 C on" /> aan </button> <button class="button" type="submit" name="button" value="511 C off" /> uit </button> </form> <p>Desk</p><form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post"> <button class="button" type="submit" name="button" value="510 A on" />aan</button> <button class="button" type="submit" name="button" value="510 A off" />uit</button> </form> <hr/> <h3>Music</h3><p>Speakers</p> <legend></legend> <form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post"> <button class="button" type="submit" name="button" value="511 D on" />aan</button> <button class="button" type="submit" name="button" value="511 D off" />uit</button> </form> <legend></legend> <p>Subwoofer</p> <form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post"> <button class="button" type="submit" name="button" value="511 E on" />aan</button> <button class="button" type="submit" name="button" value="511 E off" />uit</button> </form><hr/> <h3>Tech</h3><p>Monitor</p> <legend></legend> <form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post"> <button class="button" type="submit" name="button" value="510 B on" />aan</button> <button class="button" type="submit" name="button" value="510 B off" />uit</button> </form> <legend></legend> <hr/></div> </div><!-- container --> <!-- End Document================================================== --></body></html>
  7. I Don't have a hamster, I would send you our cats but that's kinda illegal
  8. So a friend of mine sent me a code, anyone interested?
  9. This might help? http://forum.cyanogenmod.com/topic/76334-wifi-issues-with-cm/
  10. I will explain in the OP soon! I don't know if you ever used a K90 but the macro keys are not mechanical and horrible to use to me, there have been some games in which it could have been useful but after a day of using them I switched back to using the mechanical keys.. The extra space on my desk is going to be taken by my Nexus 7 Dock. Yes, I Know, I probably would have bought the K70 if it was available but at the time you could only buy a K60 and a K90;)
  11. Because when I bought this Keyboard (1.5 years ago) the K70 wasn't available yet. I could have gone with the K60 but that one doesn't have the full length wrist-rest. Also, the K90 has blue LEDs, as does everything else on my desk;)
  12. So since I didn't use the G-keys on my K90 at all, I decided to mod so I had some more space on my desk. I have to say I'm really happy with how it turned out! So what do you guys think? If anyone is interested in a sort of how-to, let me know! Cheers! Luuk
  13. Because that is not a dock, only a stand. Also, it looks ugly to me, and not that sturdy...
×