Go to advanced search

by necc
Mon Sep 16, 2013 7:37 am
Forum: Automation, sensing and robotics
Topic: Home Automation with Raspberry Pi
Replies: 15
Views: 15910

Re: Home Automation with Raspberry Pi

That's a very simple parser for the data: #!/bin/bash DATE=`date +"%d-%m-%Y"` TEMP_LOG="/opt/kontro1/logs/weather/$DATE.log" OWL_LOG="/opt/kontro1/logs/owl/$DATE.log" ARR="[[" COM="" for h in {00..23} do TOTAL=0 COUNT=0 for t in $( awk -v h=$h: '$0 ~ h { print $2 }' $TEMP_LOG) do TOTAL=$(echo $TOTAL...
by necc
Thu Aug 29, 2013 9:36 am
Forum: Automation, sensing and robotics
Topic: Home Automation with Raspberry Pi
Replies: 15
Views: 15910

Re: Home Automation with Raspberry Pi

I save the output xml to a file in the code, you could just pipe it to a file, and then parse it with a separate script. The parsing routine sucks but it worked so I left it as is :D #!/bin/sh FLD="/opt/kontro1/logs/owl/" FILE="/opt/kontro1/logs/owl/owl.dat" CURR=`tail -n1 $FILE | awk -F'</?electric...
by necc
Thu Jan 17, 2013 11:36 am
Forum: Beginners
Topic: I think i briked my raspberry pi
Replies: 7
Views: 1403

Re: I think i briked my raspberry pi

also when you do ifdown over ssh don't expect to see any response :P
by necc
Thu Jan 17, 2013 11:34 am
Forum: Beginners
Topic: Is an RPi suitable for my needs?
Replies: 4
Views: 1099

Re: Is an RPi suitable for my needs?

raspbmc + cups would surely work too.
by necc
Wed Jan 16, 2013 5:01 pm
Forum: Troubleshooting
Topic: Siri Proxy
Replies: 49
Views: 19860

Re: Siri Proxy

(cd /path/to/your/script && yourscript)
by necc
Wed Jan 16, 2013 4:41 pm
Forum: Beginners
Topic: Can I put Delay before bootup of raspberry pi?
Replies: 8
Views: 1626

Re: Can I put Delay before bootup of raspberry pi?

That sleep would go to /etc/init.d/rc.local I would assume, but depending on the order these are run, and I can't remember the exact order from the top of my head this may or may not work. The dhcp timeout is set in /etc/dhclient.conf, see what's there and either add or amend the existing entries fo...
by necc
Wed Jan 16, 2013 4:37 pm
Forum: General programming discussion
Topic: How to run code at startup under certain conditions?
Replies: 7
Views: 1248

Re: How to run code at startup under certain conditions?

Well, I suppose there's at least several other ways of doing that, so you can still figure out your own code :) you could work with the aforementioned lsmod or /dev filesystem, surely something in /proc could give it away too, damn you can even write your own kernel module to detect a device with a ...
by necc
Wed Jan 16, 2013 4:33 pm
Forum: General programming discussion
Topic: How to run code at startup under certain conditions?
Replies: 7
Views: 1248

Re: How to run code at startup under certain conditions?

Lol :D Apologies! Didn't mean to help too much! :D
by necc
Wed Jan 16, 2013 4:16 pm
Forum: Beginners
Topic: Can I put Delay before bootup of raspberry pi?
Replies: 8
Views: 1626

Re: Can I put Delay before bootup of raspberry pi?

man dhclient.conf timeout time ; The timeout statement determines the amount of time that must pass between the time that the client begins to try to determine its address and the time that it decides that it's not going to be able to contact a server. By default, this timeout is sixty seconds. Afte...
by necc
Wed Jan 16, 2013 3:57 pm
Forum: General programming discussion
Topic: How to run code at startup under certain conditions?
Replies: 7
Views: 1248

Re: How to run code at startup under certain conditions?

#!/bin/bash
if [ -z `iwconfig | grep wlan0` ]
then
#device not present
fi
by necc
Wed Jan 16, 2013 10:40 am
Forum: Automation, sensing and robotics
Topic: running a program at start up
Replies: 4
Views: 1077

Re: running a program at start up

rc.local is the way to go
by necc
Mon Jan 14, 2013 2:47 pm
Forum: Automation, sensing and robotics
Topic: Complete home automation
Replies: 3
Views: 1687

Re: Complete home automation

Plenty of stuff on the forum. You can have a look at my topic here: http://www.raspberrypi.org/phpBB3/viewt ... 37&t=28998
by necc
Sat Jan 12, 2013 12:44 pm
Forum: Automation, sensing and robotics
Topic: James Bond Theme
Replies: 1
Views: 666

Re: James Bond Theme

Awesome!
by necc
Fri Jan 11, 2013 9:35 pm
Forum: Automation, sensing and robotics
Topic: My first take on a robot.
Replies: 2
Views: 1112

My first take on a robot.

So it all started when my 8yo daughter saw a robot on one of the TV shows... I'm sure a lot of you know that story :P Anyway, not having any experience in robotics, and not much in electronic either I decided to give it a go... The bot's prerecorded audio is in Polish, some of it coming from a TTS s...
by necc
Fri Jan 11, 2013 9:02 pm
Forum: Automation, sensing and robotics
Topic: Home Automation with Raspberry Pi
Replies: 15
Views: 15910

Re: Home Automation with Raspberry Pi

Components used: 1. RfxTrx433 - http://www.rfxcom.com/store/Transceivers/12103 (they also have a lan option instead of USB. Sounds pretty interesting) 2. Oregon Scientific WMR 80 weather station - http://uk.oregonscientific.com/cat-Weather-sub-Professional-prod-Full-Wireless-Weather-Station.html 3. ...
by necc
Fri Jan 11, 2013 8:49 pm
Forum: Automation, sensing and robotics
Topic: Home Automation with Raspberry Pi
Replies: 15
Views: 15910

Re: Home Automation with Raspberry Pi

It certainly has potential. It's quite easy to write support for any remote as long as the protocol is known. It can only send out, i.e. transmitter. Well that is the main issue - the protocol for this particular devices is not known as it's some proprietary vendor protocol. Had a chat to them as w...
by necc
Fri Jan 11, 2013 8:46 pm
Forum: Automation, sensing and robotics
Topic: Home Automation with Raspberry Pi
Replies: 15
Views: 15910

Re: Home Automation with Raspberry Pi

I've promised some source code, so here it is. Will post the main, more interesting chunks as there's a bunch of custom stuff that probably will be not much of use to anyone. 1. Remote switches Code to send commands to the rfxtrx433. Note that I'm sending the command twice, not sure why but sometime...
by necc
Fri Jan 11, 2013 8:15 pm
Forum: Automation, sensing and robotics
Topic: Home Automation with Raspberry Pi
Replies: 15
Views: 15910

Re: Home Automation with Raspberry Pi

I'm doing something similar to this for my senior design project. What kind of window shades are you using that allow to be controlled like this over rf? Our place is fitted with blinds from polish company called Portos - http://portosrolety.pl/index.php?lang=en. The model that was used already had...
by necc
Fri Jan 11, 2013 8:11 pm
Forum: Automation, sensing and robotics
Topic: Home Automation with Raspberry Pi
Replies: 15
Views: 15910

Re: Home Automation with Raspberry Pi

Instead of hooking up remote with pi's gpio you can transmit 433MHz straight from GPIO pin 4 from pi (just attach a short wire if you want to test). Go to this post: http://www.raspberrypi.org/phpBB3/viewtopic.php?f=37&t=26485 This solutions is much neat and does not need extra hardware (only one w...
by necc
Thu Jan 10, 2013 9:32 am
Forum: Automation, sensing and robotics
Topic: Home Automation with Raspberry Pi
Replies: 15
Views: 15910

Re: Home Automation with Raspberry Pi

Sure, I will post the code and some pics this weekend. Will try to get a nice vid of the main elements of the system too.
by necc
Wed Jan 09, 2013 3:18 pm
Forum: Automation, sensing and robotics
Topic: PiHAT - Rasberry Pi Home Automation Transmitter
Replies: 194
Views: 80941

Re: PiHAT - Rasberry Pi Home Automation Transmitter

I've successfully utilised rfxtrx433 to communicate with such devices. It provides a usb-serial interface, which is relatively simple to code with perl and supports a bunch of various protocols.
by necc
Wed Jan 09, 2013 3:15 pm
Forum: Automation, sensing and robotics
Topic: 12x S0 kWh-reader
Replies: 35
Views: 11808

Re: 12x S0 kWh-reader

I'm using an OWL Intuition-lc to read my energy consumption and reading it's multicast on raspie as described here: http://www.raspberrypi.org/phpBB3/viewt ... 37&t=28998 seems like a lot easier (and safer) solution ;)
by necc
Wed Jan 09, 2013 2:55 pm
Forum: Automation, sensing and robotics
Topic: PiHAT - Rasberry Pi Home Automation Transmitter
Replies: 194
Views: 80941

Re: PiHAT - Rasberry Pi Home Automation Transmitter

pygmy_giant wrote: I thought maybe it could be useful if you had to leave the Pi running for a long indeterminate ammount of time and wanted it to power down afterwards..
Yup, much easier to build an rf transmitter paired with a RF-enabled socket than script "shutdown -h now " :D
by necc
Wed Jan 09, 2013 12:58 pm
Forum: Automation, sensing and robotics
Topic: Home Automation with Raspberry Pi
Replies: 15
Views: 15910

Home Automation with Raspberry Pi

Hi Guys, I've been working on a interesting project for a while, and as I found a lot of help on this forum I wanted to share some details with you. I hope it helps anyone, gives you some ideas etc. Any questions, source code or schematics request please feel free to ask. The initial goal of the pro...
by necc
Thu Aug 30, 2012 10:58 pm
Forum: Media centres
Topic: XBian - Small, Fast, Lightweight XBMC solution
Replies: 611
Views: 240546

Re: XBian - Small, Fast, Lightweight XBMC solution

PS I saw that ownership of some directories (/etc, /bin ....) were borked (1000:1000). I do not know if it was due to the patch or some other update. I am updating since 0.6.0. I just ran for each borked directory for example: chown -R root:root /etc Or even... find / -uid 1000 -exec chown root:roo...

Go to advanced search