Go to advanced search

by Ogoshi
Thu Oct 20, 2016 7:33 pm
Forum: Networking and servers
Topic: Iptables
Replies: 1
Views: 557

Iptables

Hi, I need some help, I think with iptables rules. I'm trying to set the pi as an internet gateway with eth0 connected to the LAN and usb0 (tethered to phone) being the connection to the internet, however I need all internet traffic routed via OpenVPN/tun0 with the pi as a client. So something like ...
by Ogoshi
Sat Nov 02, 2013 10:57 pm
Forum: Automation, sensing and robotics
Topic: reading domestic electricity use
Replies: 34
Views: 37158

Re: reading domestic electricity use

Ah fantastic! With the light staying on at night, I guess it will either behave nicely and report nothing or it'll assume it's blinking like crazy and show a very high reading. I would presume it'll be the latter. You may need to do something with the program or a post capture data cleanse to deal w...
by Ogoshi
Fri Nov 01, 2013 6:44 pm
Forum: Automation, sensing and robotics
Topic: reading domestic electricity use
Replies: 34
Views: 37158

Re: reading domestic electricity use

I'll try and put a guide together over the weekend for the setup part. In the meantime, the config.php part relates to yfory's web part which I replaced. I think in my csv python file there should be a calculation which is currently set to use 1000 blinks per KwH, you'll need to change in there to w...
by Ogoshi
Sun Oct 27, 2013 10:22 pm
Forum: Automation, sensing and robotics
Topic: reading domestic electricity use
Replies: 34
Views: 37158

Re: reading domestic electricity use

Hi, I've just loaded up the old SD card I was using for this project and it looks like I have the necessary files still. I've attached the required files as a zip file to this. There were some amendments I made to the original to make some small improvements on the analysis side of things. I'll deta...
by Ogoshi
Fri Sep 20, 2013 1:11 pm
Forum: Networking and servers
Topic: Pi "Bridge" (Iphone-4G to Pi to Home Network)
Replies: 3
Views: 2694

Re: Pi "Bridge" (Iphone-4G to Pi to Home Network)

This person has done something similar, could be worth a look-

http://www.raspberrypi.org/phpBB3/viewt ... 36&t=53407
by Ogoshi
Tue Aug 20, 2013 12:38 pm
Forum: Networking and servers
Topic: Pi as a Gateway
Replies: 6
Views: 3037

Re: Pi as a Gateway

This sounds so confusing, and probably unneccesarily complicated! Why not just get a wi-fi extender? Or if the devices in your living room all have a ethernet connector, then run some cat5 cable from the router of your fast conenction into your living room, and put a switch on it so your devices can...
by Ogoshi
Sat Jul 13, 2013 6:37 pm
Forum: Networking and servers
Topic: Having really bad luck..
Replies: 10
Views: 2391

Re: Having really bad luck..

Install a key logger on his machine, wait for him to log into the router so you can get the username and password, then go add your mac to the white list or change the access times?! Or the fact you can't sit up until 3am playing Wow on it and the pi is an educational tool, perhaps that would convin...
by Ogoshi
Fri Jun 28, 2013 12:42 pm
Forum: Python
Topic: Download a file in python
Replies: 6
Views: 2546

Re: Download a file in python

Have you considered mechanize? I use it to download a gpx file, which is esentially just a txt file, so a csv (looks like what you're trying to get) would be similar, just name the file in the open processes to <file name>.csv I can't access all my code atm, but here is a snippet... browser.open("ht...
by Ogoshi
Sun Jun 23, 2013 2:05 pm
Forum: General discussion
Topic: android notification using PHP ??
Replies: 2
Views: 661

Re: android notification using PHP ??

I use Notify my Android app on my phone, and have a simple script in python on the pi which works. Presumably you could run the command from PHP to send a notification. I don't really know PHP so I'm definitely no expert! You can send 5 notifications a day with this, otherwise you'll need to use a p...
by Ogoshi
Fri Jun 21, 2013 6:59 pm
Forum: Networking and servers
Topic: Case question for RPi server in co-lo rack
Replies: 5
Views: 1385

Re: Case question for RPi server in co-lo rack

Could you try putting it under load for a few hours and see how it goes?
by Ogoshi
Wed Jun 19, 2013 1:07 pm
Forum: Networking and servers
Topic: Problems with OpenVPN on RasPi
Replies: 19
Views: 22331

Re: Problems with OpenVPN on RasPi

Sounds like the same problem I had when setting up. I could ping the VPN address, but nothing else on my LAN (router, other servers etc.). I then found this http://www.raspberrypi.org/phpBB3/viewtopic.php?f=36&t=21566 I hadn't made changes to the raspi firewall, from where it says "# uncomment to al...
by Ogoshi
Thu May 30, 2013 8:03 pm
Forum: Networking and servers
Topic: [How to] Dynamic DNS and Openvpn server [obsolete]
Replies: 12
Views: 89747

Re: [How to] Dynamic DNS and Openvpn server

Thank you for this guide. I could connect to my VPN, but couldn't access anything further from that (other devices on the LAN, internet). Borrowed a couple of bits from your guide and now it works perfectly :-) Cheers!
by Ogoshi
Thu Jan 31, 2013 11:28 pm
Forum: Python
Topic: JSON Multiple Objects With Same Name
Replies: 1
Views: 1116

JSON Multiple Objects With Same Name

Hi, I'm new with json and I'm trying to pull the maximum ID from the following string, however where there are multiple instances of "id" I'm getting stuck! Can somebody help with some python/json code to do that or put me in the right direction? So I would want to see 39275169 as the result. The so...
by Ogoshi
Sun Dec 16, 2012 11:44 pm
Forum: Automation, sensing and robotics
Topic: reading domestic electricity use
Replies: 34
Views: 37158

Re: reading domestic electricity use

One other script I have set up on the cron scheduler is to remove duplicate entries within the database as I was finding around one third of the entries were duplicates. These may exist due to my setup, but nevertheless may be helpful to somebody. I have this set to run at one minute past every hour...
by Ogoshi
Sun Dec 16, 2012 11:36 pm
Forum: Automation, sensing and robotics
Topic: reading domestic electricity use
Replies: 34
Views: 37158

Re: reading domestic electricity use

Cheers for that little script, I've added some other bits to it and added it to the cron jobs so that it sends me an e-mail each day with a simple summary of kWh used and the cost in GBP. I've got it set to do this at 08:00 am daily, however any time after 00:00 would of course work. It's set up to ...
by Ogoshi
Sat Dec 01, 2012 1:10 pm
Forum: Automation, sensing and robotics
Topic: reading domestic electricity use
Replies: 34
Views: 37158

Re: reading domestic electricity use

Thanks, that didn't seem to make a difference to it! I've been looking over it for a while now but cannot work it out! All I have found is that the issue seems to be somewhere between rows 5 and 11 of the index.php file as when I comment these out it loads the page ok...just with no data on the cha...
by Ogoshi
Fri Nov 30, 2012 11:16 pm
Forum: Automation, sensing and robotics
Topic: reading domestic electricity use
Replies: 34
Views: 37158

Re: reading domestic electricity use

I've installed lighttpd and the various php setup bits, however when I go to the URL I get a server 500 error. I've had a look in various configuration files/Google and cannot find anything specific. I've also created a php test file which causes the page to show all the php info (phpinfo()) which ...
by Ogoshi
Thu Nov 29, 2012 11:28 pm
Forum: Automation, sensing and robotics
Topic: reading domestic electricity use
Replies: 34
Views: 37158

Re: reading domestic electricity use

Hi Yfory, I've got put this together and I can see it is writing values to the database, however I'm having some trouble with the web side of things! Hoping you, or somebody here can help, hopefully it's something not too trivial since it seems to be working for others! I've installed lighttpd and t...
by Ogoshi
Fri Nov 23, 2012 10:28 pm
Forum: Automation, sensing and robotics
Topic: DHT11 Help
Replies: 2
Views: 1013

Re: DHT11 Help

malakai wrote:Are you running the command:

sudo ./Adafruit_DHT 11 4
haha, thank you so very much, works now :D :D :D
by Ogoshi
Fri Nov 23, 2012 10:08 pm
Forum: Automation, sensing and robotics
Topic: DHT11 Help
Replies: 2
Views: 1013

DHT11 Help

Hi all, So, I've finally got some parts together to start trying to learn some electronics and coding at a basic level. I've started with a DHT11 using Adafruit's guide here - http://learn.adafruit.com/dht-humidity-sensing-on-raspberry-pi-with-gdocs-logging/wiring I've wired it all up exactly as the...
by Ogoshi
Sat Nov 17, 2012 11:42 am
Forum: Automation, sensing and robotics
Topic: reading domestic electricity use
Replies: 34
Views: 37158

Re: reading domestic electricity use

Can someone post a pic of how they've set this up against their meter? I'm just waiting on my Pi > breadboard wires but would like to know how some of you have set up, particularly so not to cause any problems when the meter reader comes round. Cheers
by Ogoshi
Thu Nov 01, 2012 8:15 pm
Forum: Automation, sensing and robotics
Topic: reading domestic electricity use
Replies: 34
Views: 37158

Re: reading domestic electricity use

I didn't want to spend money on gadgets like this, and I'm fortunate enough to have an electricity meter that encorporates a flashing LED. I built a simple circuit and some Python code to read the blinks and store them in a database, from which I can create my own graphs. You can grab the source co...
by Ogoshi
Sat Jul 07, 2012 1:11 pm
Forum: Networking and servers
Topic: RPi IP Emailer
Replies: 53
Views: 15493

Re: RPi IP Emailer

I have an android application called 'Fing' which scans the LAN for devices and shows their ip and Mac addresses. If you're able to connect your phone to their net too then this could also be helpful.
by Ogoshi
Mon Jun 04, 2012 11:57 am
Forum: Media centres
Topic: Raspbmc Distribution now in Beta
Replies: 111
Views: 50498

Re: Raspbmc Distribution now in Beta

Has anyone else had any problems with getting video/music from a media server on Raspbmc? I've got a box running minidlna, samba and ftp which I can see on windows media player, ps3 and android samsung allshare no problem. However on Raspbmc I can browse the shared directories using any of the serv...
by Ogoshi
Sun Jun 03, 2012 4:14 pm
Forum: Networking and servers
Topic: Bandwidth Monitor (vnstat)
Replies: 1
Views: 27192

Bandwidth Monitor (vnstat)

I've found vnstat to be useful for monitoring bandwidth on Raspbmc (although it would work fine on Debian squeeze too) Link here - http://www.debian-administration.org/articles/330 To install type - sudo apt-get install vnstat Then to start it type - sudo vnstat -u -i eth0 I found that it wasn't upd...

Go to advanced search