Hi again....
Here I leave place for instructions on how to install fuTelldus on a Raspberry PI from scratch. It is rather easy but took me some time to figure out, so I complied all tricks here. Until I have time to write this there are some VERY SHORT tips below - combine them with google and you should get it up and running I think...
1. Do things...
2. Do other things...
... coffee...
100. Finished!
This will again be a short update, perhaps it can help someone out there who needs some help doing this themselves... I found a few tweaks... perhaps it can get me some help as well
The brain was working over night... and now I am 99% there... All I had to do was to install HTTP_OAuth (see beow) and copy it in place (as you wanted it in your require_once() statement)... things are looking GREAT and I am VERY HAPPY!!! Just missing a few (critical) things and we should be all set to go!
I just have some issues with the logging of sensor values, right now my startpage says:
---
Ute på altanen (sol)
°
Oppdatert: 43 years since
...
...
---
so there are some issues with saving current values into the database... I THINK I added the crontab correctly but will look more on this later... all graphs etc. are not showing anything except saying that they will show temperature (why not humidity???)...
This is somewhat puzzling because fuTelldus can READ the values when I click "sensors"... so it must be an issue with saving them into the database (crontab's job!)... I will look into this... if you have any thought I would be more than happy to hear them!
Sorry for all short updates, kind of stressed...sadly...
But I will be back! Count on it!
EDIT: I think I found th problem (just need to wait for cron to log the values to see)... cron needs to be restarted - so when you have edited the crontab you need to so "/etc/init.d/cron reload"... now things should work... lets HOPE at least...
EDIT #2: For some reason my php interpreter works different today compared to yesterday. Yesterday I ran the command: "php -q /var/www/fuTelldus_v1/cron_temp_log.php" without ANY problems and the database updated as expected. Today it did not work (debugging). I ended up having to change a line in the file cron_temp_log.php as follows:
Modifyed: require("/var/www/fuTelldus_v1/lib/config.inc.php");
Original: require("./lib/config.inc.php");
They SHOULD be the same... but now the command works - still waiting for cron (now with the modified file..) once everything works I will let ya'll know...
EDIT #4: Tried to revert the change above and now it works as expected, I will still leave this here though in case someone runs into problems with the same thing... So in the end I ended up using the "original" version...
EDIT #3: The crontab is now working, still not sure why I had to edit the cron_temp_log.php file... makes no sense to me... Now I will lean back and watch the magic...
My goal is clearly to write this a bit better "soon" for all who are having the same problems... but reading everything here might help someone in need...I hope...
For those who wants to try this with our own server (raspberry pi works GREAT) here are the steps. If there is time I will uptdate this to include all steps etc. etc. this is just a ROUGH guide...
1. Get a Pi, install debian as per instructed by Raspberru PI (easy)
2. Install apache2, php5, mysql (sudo atpI remember correctly - this should be the thing that helps you to:)
2.5 Install oauth (I do not think this is needed, but if it is "sudo apt-get install libpcre3-dev" and then "pecl install oauth" -if not working then "sudo pecl install oauth")
3. "pear install HTTP_OAuth-0.2.3" (if not let me know and I will see how to do this)
4. Do: "sudo /etc/init.d/apache2 restart" t make sure everything works... it is ok to get errors regarding your hostname
Now, we are almost there... put fuTelldus in place - ADD the files from telldus into any folder (in fuTelldus there is a folder called /lib/packages/telldus - I put a copy there as well, just to be sure)... I put them in a folder in the "root" called simple telldus. Go to this folder with your webrowser and follow the instructions. Now go to the telldus folder and things "should" work...
Ohoh - I forgot: "cp -R /usr/share/php/HTML /var/www/" to work around the "bug" I ran into yesterday (see above)
Now you can add the crontab (crontab -e ... and then follow the suggestions incuded i fuTelldus readme.txt) - NOTE THIS IS NOT WORKING FOR ME YET!!!!