Go to advanced search

by Argon
Tue Apr 28, 2015 7:34 pm
Forum: General discussion
Topic: RRDtool database
Replies: 1
Views: 462

RRDtool database

Hello,

I have an RRDtool database with a lot of test data. Now I want to empty that whole rrd database so that it's complete empty. How can I achieve this?

Thanks !
by Argon
Thu Oct 23, 2014 6:17 am
Forum: Automation, sensing and robotics
Topic: Logging temperatures using RRDTool and Highcharts
Replies: 68
Views: 75350

Re: Logging temperatures using RRDTool and Highcharts

Hello Tafkas,

Everything works like it should. There was another problem with my Raspberry Pi.

Thx !
by Argon
Mon Oct 13, 2014 6:47 am
Forum: Automation, sensing and robotics
Topic: Logging temperatures using RRDTool and Highcharts
Replies: 68
Views: 75350

Re: Logging temperatures using RRDTool and Highcharts

Hello, I have a problem. I followed this tutorial (what is based on this one from Tafkas) http://warlord.no-ip.com/howto.html . The XML files are generated with cron, the rrd database is updated every 5 minutes, I can see the index.htm file, ... So all those things seems good. The only issue that I ...
by Argon
Tue May 20, 2014 9:50 am
Forum: Automation, sensing and robotics
Topic: Perfect 1-Wire for Pi?
Replies: 7
Views: 2302

Re: Perfect 1-Wire for Pi?

I use a DS18B20 sensor with a cable length of +- 15meters. The readings are perfect. This setups already runs 2 months without a single problem.

The cable that I use is a standard 2.5mm² electric cable.
by Argon
Sat May 03, 2014 10:04 am
Forum: Automation, sensing and robotics
Topic: Control GPIO from a Raspberry Pi to another one
Replies: 1
Views: 768

Control GPIO from a Raspberry Pi to another one

Hello, I'm running a LAMP server on my Raspberry Pi. With this Raspberry Pi1 I control the shutters with the GPIO ports. So, I browse to http://raspberrypi1 and can let the shutters go Up or Down. Now I want to add another Raspberry Pi2 as a Thermostat. But this Raspberry Pi2 is on the other side of...
by Argon
Wed Apr 30, 2014 4:14 pm
Forum: General discussion
Topic: GPIO state on reboot
Replies: 4
Views: 1048

GPIO state on reboot

Hello, I want to control my shutters with my smartphone. I attached WiringPi 0 and WiringPi 1 to a relayboard. If I want the shutters go down, then WiringPi 0 goes Low and WiringPi 1 goes High If I want the shutters goe Up, then WiringPi 1 goes Low and WiringPi 0 goes High This works perfect. But, w...
by Argon
Tue Apr 29, 2014 11:11 am
Forum: Automation, sensing and robotics
Topic: Jquery Mobile flip switch change led state
Replies: 7
Views: 4056

Re: Jquery Mobile flip switch change led state

Hello, I solved it on this way (there are better ways I think, but at least it works) $("#ledred").change(function () { var isChecked = $("#ledred").is(":checked") ? 1 : 0; if (isChecked) { $.ajax({ url: 'rolluiken/red_on.php', type: 'POST', }); } else { $.ajax({ url: 'rolluiken/red_off.php', type: ...
by Argon
Mon Apr 28, 2014 8:28 am
Forum: Automation, sensing and robotics
Topic: Jquery Mobile flip switch change led state
Replies: 7
Views: 4056

Re: Jquery Mobile flip switch change led state

I just don't get it... Sorry :-) The code that executes red.php works like a button (it reacts on a click). If the flip switch is clicked it execute red.php, but how do I define the action if I click again (flip switch off) and trigger for example a red_off.php page? That's the part that I don't und...
by Argon
Sun Apr 27, 2014 7:49 pm
Forum: Automation, sensing and robotics
Topic: Jquery Mobile flip switch change led state
Replies: 7
Views: 4056

Re: Jquery Mobile flip switch change led state

Hello, Yes, I know that. But I think (i'm a noob in javascript/php/...) that my flip switch only execute the "Led On" command (red.php). But how can I execute for example a red_off.php when I press the flip switch again? Now the flip switch works only like a button and there is one action combined t...
by Argon
Sun Apr 27, 2014 6:56 pm
Forum: Automation, sensing and robotics
Topic: Jquery Mobile flip switch change led state
Replies: 7
Views: 4056

Jquery Mobile flip switch change led state

Hello, I want to control a led from a webpage with the help of Jquery Mobile flip switch. I made a simple webpage with 1 flip switch that checks if GPIO x is High or Low and adapt this to the Flip switch (checked or not checked). The problem is that the flip switch can turn on the led, but I don't k...
by Argon
Fri Apr 25, 2014 6:30 pm
Forum: Python
Topic: Bottle Framework
Replies: 6
Views: 2610

Re: Bottle Framework

Wow, looks like it works ! :D I will read your piece of code so I will learn what you did. I am very grateful ! Now, next chapter. I will use a Jquery Mobile slider to adjust the temperature in my house. I want to get the value of the slider and write that to a file. That file will be read by my The...
by Argon
Fri Apr 25, 2014 3:43 pm
Forum: Python
Topic: Bottle Framework
Replies: 6
Views: 2610

Re: Bottle Framework

These things are to complicated for me I think. I do not understand much of what you say :roll: All those things are new to me. I learned a bit of Python the last 3 weeks, but php/javascript/Jquery are all new to me. At this moment I'm not seeing the wood for the trees :? Is there a hero on this for...
by Argon
Fri Apr 25, 2014 1:13 pm
Forum: Python
Topic: Bottle Framework
Replies: 6
Views: 2610

Re: Bottle Framework

Hello, Thanks for the answer. I know that rpi.gpio can do this and Wiringpi also. The problem that I have is how to implement that into my code that I posted, so if the white led is "On", the Jquery Mobile switch will show this as "On". I'm not a web developer and not programmer, so an example with ...
by Argon
Fri Apr 25, 2014 12:48 pm
Forum: Python
Topic: Bottle Framework
Replies: 6
Views: 2610

Bottle Framework

Hello, I build a simple webpage with 2 flipswitches (with Jquery Mobile). Those 2 switches are controlling 2 led's. A white led and a Red led. This works like it should. Now if I enable the white flipswitch, the button goes to "On" and the light goes on. If I now browse with my smartphone to that sa...
by Argon
Tue Apr 22, 2014 7:35 pm
Forum: General discussion
Topic: Controle GPIO from Jquery Mobile page
Replies: 7
Views: 5436

Re: Controle GPIO from Jquery Mobile page

Sorry, I was on a short holiday. This is the code with 2 simple buttons (an On and an Off button) <!DOCTYPE html> <html> <head> <meta name=viewport content="user-scalable=no,width=device-width" /> <link rel="stylesheet" href="http://code.jquery.com/mobile/1.4.2/jquery.mobile-1.4.2.min.css" /> <scrip...
by Argon
Wed Apr 16, 2014 7:51 pm
Forum: Automation, sensing and robotics
Topic: buy 433mhz sender / receiver
Replies: 1
Views: 934

buy 433mhz sender / receiver

Hello, As you can read here: http://wiki.pilight.org/doku.php/advice the man after Pilight recommends that first 433mhz sender / receiver and not the second one. I searched on Ebay, but I only found the second one. Anyone knows where I can buy that first one on Ebay/Amazon (.fr .de .co.uk) or knows ...
by Argon
Wed Apr 16, 2014 4:31 pm
Forum: General discussion
Topic: Controle GPIO from Jquery Mobile page
Replies: 7
Views: 5436

Controle GPIO from Jquery Mobile page

Hello, Firstly, i'm not a programmer and HTML, CSS, PHP, Python, ... is new for me. I made a website with Jquery Mobile that uses buttons, sliders, different pages,... This all works well. But each button/slider has no action at this moment. Visually everything looks good. Now I want to create an ac...
by Argon
Mon Apr 14, 2014 12:09 pm
Forum: Python
Topic: Application to Program in Python
Replies: 2
Views: 711

Re: Application to Program in Python

That's it !
Thanks :)
by Argon
Mon Apr 14, 2014 12:00 pm
Forum: Python
Topic: Application to Program in Python
Replies: 2
Views: 711

Application to Program in Python

Hello,

I just saw this printscreen retweeted by Raspberry Pi:
https://pbs.twimg.com/media/BlLb0h2IYAAjQa4.jpg:large

Anyone knows in which program they are writing Python code?
by Argon
Fri Apr 11, 2014 8:13 pm
Forum: Automation, sensing and robotics
Topic: Thermostat manually / scheduled
Replies: 5
Views: 1736

Re: Thermostat manually / scheduled

Thanks for the suggestion. I adjusted my code: #!/usr/bin/env python import RPi.GPIO as GPIO import time import glob import re # Variabelen margin = 0.5 boiler_on = 22 # Gpio pin 22 boiler_off = 15 # Gpio pin 15 # current_temp = float(input("Hoe warm is het momenteel? ")) # Disable GPIO Warnings and...
by Argon
Wed Apr 09, 2014 4:22 pm
Forum: General discussion
Topic: SD card from Raspberry Pi 512Mb to Raspi 256Mb
Replies: 2
Views: 570

Re: SD card from Raspberry Pi 512Mb to Raspi 256Mb

Yes, I know that.
Thanks for the quick reply !
by Argon
Wed Apr 09, 2014 3:59 pm
Forum: General discussion
Topic: SD card from Raspberry Pi 512Mb to Raspi 256Mb
Replies: 2
Views: 570

SD card from Raspberry Pi 512Mb to Raspi 256Mb

Hello,

A friend has a Raspberry Pi 256Mb version. I have to create some project for him, but I only have a 512Mb version of the Raspberry Pi.
Can I configure all those things on my Raspberry Pi (512Mb version) and then boot this in the 256Mb version?
by Argon
Mon Apr 07, 2014 10:11 pm
Forum: Automation, sensing and robotics
Topic: Thermostat manually / scheduled
Replies: 5
Views: 1736

Re: Thermostat manually / scheduled

Smart solution ! :-) But i'm a beginner in Python and i'm stuck again... How do I program this in Python? In our language I have to make something like: While settemp() is smaller than 0 (so, catch all negative numbers) , print something like "We are on holiday" While current_temp() is bigger than s...
by Argon
Mon Apr 07, 2014 4:11 pm
Forum: Automation, sensing and robotics
Topic: Thermostat manually / scheduled
Replies: 5
Views: 1736

Thermostat manually / scheduled

Hello, With my Raspberry Pi I made a thermostat. At this moment it works with a red led ( Heating Off ) and a white led (Heating On). Everything works like it should at this momente. This is my code: #!/usr/bin/env python import RPi.GPIO as GPIO import time import glob # Variabelen margin = 0.5 boil...
by Argon
Tue Mar 25, 2014 12:28 pm
Forum: Media centres
Topic: SqueezePlug Version 7 available
Replies: 459
Views: 108697

Re: SqueezePlug Version 7 available

Perfect! Works now :-)

Go to advanced search