[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4699: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4701: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4702: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4703: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
Current Cost Support Forum :: View topic - Raspberry Pi
Current Cost Support Forum
http://www.currentcost.com/support/

Raspberry Pi
http://www.currentcost.com/support/viewtopic.php?f=8&t=28407
Page 1 of 2

Author:  Bogget [ Mon Jul 30, 2012 7:15 pm ]
Post subject:  Raspberry Pi

I have a raspberry Pi anyone got one running with a current cost yet to upload data instead of the bridge.

Bogget

Author:  ghubsch [ Mon Aug 06, 2012 9:58 am ]
Post subject:  Re: Raspberry Pi



Attachments:
envi.zip [730 Bytes]
Downloaded 3608 times

Author:  galaxynik [ Tue Aug 07, 2012 8:30 am ]
Post subject:  Re: Raspberry Pi

Just spent a few days getting this working on my Pi :D
I am using it primarily as a media server - PI + WD 2Tb usb disc - uses 3w when disc spun down and about 10w when active low enought to leave on 24/7

I'm a complete Linux noob so its taken me a while to sort this - have a slightly different approach to ghubsch but like him I got the basic script from jibble.org (+credit)

My Pi is running squeezeplug (based on debian wheezy IIRC)
This is a headless setup and so I ssh in using putty
Minidlna (serving videos mainly for the 3 kids tablets - using bubbleupnp + vplayer and their computers - using VLC)
Apach2 + PHP5

I use a perl script to read the device and save the data to a RRD (round robin database) every 5 secs or so (total file size for 10 years data ~ about 1.5Mb ;), the script also writes a little html file with the current power and temp to the webserver so I can check its running (changes every 5 secs).
I have some cron jobs creating png graphs on the server (10min.3hr,6hr,12hr,daily) every minute or so.
The data is also sent to cosm using the Net::Pachube module although its a lot less trouble using the wget method :D (Net::Pachube was a pig to install for a noob with loads of dependencies that neeeds manually installing - even though I had cpanminus installed)

Was interested to notice that once the data flowed to cosm it started appearing in the currentcost dashboard again, noit sure whether sending the data to cosm every 5 sec is going to work long term but I will see https://cosm.com/feeds/12483

can post script if you are interested

I am having a few issues keeping the script running in the background - sometimes when I terminate the putty session it decides to end - still investigating that

Author:  ghubsch [ Tue Aug 07, 2012 9:03 am ]
Post subject:  Re: Raspberry Pi

Hi Galaxynik,

I have also added to my script an update to a RRD database, but, I'm not generating graphs yet.
I was thinking about to create a PHP web page to generate graphs on demand (just when I access the web page), because I thought that generating graphs frequently via a cron job would make an unnecessary load on the Raspberry. Do you notice the load of generating the graphs ?

I'm running raspbian, also with a webserver (lighttpd, mysql and PHP), headless, to serve basically as my web server for my photoblog (as photography is my 'other' hobby!), and for currentcost.

I have also a shell script to upload system information to Cosm.com (cpu load, free memory, net in/out traffic, etc.)
https://cosm.com/feeds/69589
I can post the script also if anyone is interested. I'm running it from a crontab, just every 5 min (i think is enough!)

As for running the perl script on the background, even after closing the putty session, i just use:
> perl script.pl &
(add an '&' after the command, to execute it in the background)
Hope this helps with your problem.

Regards,

GHubsch

Author:  Andygodber [ Thu Aug 09, 2012 9:03 am ]
Post subject:  Re: Raspberry Pi

Hi Nik - I'd like to see your script please.
Tia

Author:  nommo [ Mon Aug 13, 2012 11:39 am ]
Post subject:  Re: Raspberry Pi


Author:  galaxynik [ Mon Aug 13, 2012 4:11 pm ]
Post subject:  Re: Raspberry Pi


Author:  nommo [ Thu Sep 06, 2012 11:30 am ]
Post subject:  Re: Raspberry Pi


Author:  Bogget [ Thu Sep 20, 2012 6:00 pm ]
Post subject:  Re: Raspberry Pi

Wow, you have made great progress, maybe it can be packed as a download ready to go on a formatted SD card with OS as my programming is very very rusty.

It would be nice to just have the Pi as a stand alone unit as they are cheap enough (cheaper than the bridge) so is the Pi stable doing this?

I actually have a weather station as well wonder if it would support this as well, my weather station uploads every min to the site?

Bogget

Author:  Bogget [ Sun May 05, 2013 9:09 pm ]
Post subject:  Re: Raspberry Pi

Is anyone still using this , ....is it stable

any more developments?


I would love to hear of progress.

Bogget

Page 1 of 2 All times are UTC [ DST ]
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/