[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

A support forum for Current Cost users, partners and developers. Covering hardware, software and web.
Site Announcements

The support forum is moderated Monday to Friday, UK time. To submit a support ticket, please email: helpme [at] currentcost .com

It is currently Tue Apr 16, 2024 7:51 am

All times are UTC [ DST ]




Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 15 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: Raspberry Pi
PostPosted: Mon Jul 30, 2012 7:15 pm 
Offline

Joined: Tue Jul 24, 2012 8:43 pm
Posts: 12
I have a raspberry Pi anyone got one running with a current cost yet to upload data instead of the bridge.

Bogget


Top
 Profile  
 
 Post subject: Re: Raspberry Pi
PostPosted: Mon Aug 06, 2012 9:58 am 
Offline

Joined: Mon Aug 06, 2012 9:13 am
Posts: 2
Location: Portugal


Attachments:
envi.zip [730 Bytes]
Downloaded 3602 times
Top
 Profile  
 
 Post subject: Re: Raspberry Pi
PostPosted: Tue Aug 07, 2012 8:30 am 
Offline
User avatar

Joined: Tue May 31, 2011 9:24 pm
Posts: 38
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

_________________
(º•.¸(¨*•.¸ ¸.•*¨)¸.•º)
<<<.•°•. NIK .•°•.>>>
(¸.•º(¸.•¨* *¨•.¸)º•.¸)


Top
 Profile  
 
 Post subject: Re: Raspberry Pi
PostPosted: Tue Aug 07, 2012 9:03 am 
Offline

Joined: Mon Aug 06, 2012 9:13 am
Posts: 2
Location: Portugal
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


Top
 Profile  
 
 Post subject: Re: Raspberry Pi
PostPosted: Thu Aug 09, 2012 9:03 am 
Offline

Joined: Tue Aug 16, 2011 7:59 pm
Posts: 71
Hi Nik - I'd like to see your script please.
Tia


Top
 Profile  
 
 Post subject: Re: Raspberry Pi
PostPosted: Mon Aug 13, 2012 11:39 am 
Offline

Joined: Sun Aug 12, 2012 8:13 pm
Posts: 2


Last edited by nommo on Sun Aug 19, 2012 4:17 pm, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: Raspberry Pi
PostPosted: Mon Aug 13, 2012 4:11 pm 
Offline
User avatar

Joined: Tue May 31, 2011 9:24 pm
Posts: 38

_________________
(º•.¸(¨*•.¸ ¸.•*¨)¸.•º)
<<<.•°•. NIK .•°•.>>>
(¸.•º(¸.•¨* *¨•.¸)º•.¸)


Top
 Profile  
 
 Post subject: Re: Raspberry Pi
PostPosted: Thu Sep 06, 2012 11:30 am 
Offline

Joined: Sun Aug 12, 2012 8:13 pm
Posts: 2


Top
 Profile  
 
 Post subject: Re: Raspberry Pi
PostPosted: Thu Sep 20, 2012 6:00 pm 
Offline

Joined: Tue Jul 24, 2012 8:43 pm
Posts: 12
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


Top
 Profile  
 
 Post subject: Re: Raspberry Pi
PostPosted: Sun May 05, 2013 9:09 pm 
Offline

Joined: Tue Jul 24, 2012 8:43 pm
Posts: 12
Is anyone still using this , ....is it stable

any more developments?


I would love to hear of progress.

Bogget


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 15 posts ]  Go to page 1, 2  Next

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 14 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group