Code: Select all
apt-get install php5 php5-cgi php5-common php5-cli -y
cd /var/www/
rm -r raspcontrol
wget https://github.com/Bioshox/Raspcontrol/zipball/master
unzip master
mv Bioshox-Raspcontrol-* raspcontrol
rm master
chmod 755 start.sh
Code: Select all
apt-get install php5 php5-cgi php5-common php5-cli -y
cd /var/www/
rm -r raspcontrol
wget https://github.com/Bioshox/Raspcontrol/zipball/master
unzip master
mv Bioshox-Raspcontrol-* raspcontrol
rm master
chmod 755 start.sh
Code: Select all
cat /proc/cpuinfo
You mean thisLinus wrote:It would also be cool if the new temperature-feature get's integrated into Raspcontrol as well
have i updated this wrong?sjfaustino wrote:You mean thisLinus wrote:It would also be cool if the new temperature-feature get's integrated into Raspcontrol as well:
I _knew_ there was something I had forgotten to post
Files changed:
/var/www/raspcontrol/app/main.php - added call to display the current CPU temperature
/var/www/raspcontrol/app/_lib/classes/_pitem.php - gets the temperature and displays on the page
/var/www/raspcontrol/app/_lib/styles/style.css - adds the style needed for the cpu temperature (and fixes a bug)
/var/www/raspcontrol/app/_lib/images/cpu_temp.png - a nice image for the cpu temperature icon
/var/www/raspcontrol/app/_lib/images/danger.png - used when the temperature goes over 80% of maximum
Thanks for the response urfankhaliq. I did the above but the last two commands didnt return any response. Is this to be expected?urfankhaliq wrote:hi just browse to /var/www and do the following
sudo wget https://github.com/Bioshox/Raspcontrol/zipball/master
sudo unzip master
sudo mv Bioshox-Raspcontrol-* raspcontrol
sudo rm master
that will install it for u
Since i can see a green demarcation line on the orange bar (a bug i noticed and corrected on the css) I can only assume you aren't using my .css file.r0nnie wrote:have i updated this wrong?sjfaustino wrote:You mean thisLinus wrote:It would also be cool if the new temperature-feature get's integrated into Raspcontrol as well:
I _knew_ there was something I had forgotten to post
Files changed:
/var/www/raspcontrol/app/main.php - added call to display the current CPU temperature
/var/www/raspcontrol/app/_lib/classes/_pitem.php - gets the temperature and displays on the page
/var/www/raspcontrol/app/_lib/styles/style.css - adds the style needed for the cpu temperature (and fixes a bug)
/var/www/raspcontrol/app/_lib/images/cpu_temp.png - a nice image for the cpu temperature icon
/var/www/raspcontrol/app/_lib/images/danger.png - used when the temperature goes over 80% of maximum
i went in to /var/www/raspcontrol/app/_lib
removed the folders that are in the updated rar then copied the 3 new folders from the rar to that dir
then i removed main.php from /var/www/raspcontrol/app and added the one from the rar
restarted lighttpd and now getting error
Server error
The website encountered an error while retrieving http://192.168.1.137/raspcontrol/app/. It may be down for maintenance or configured incorrectly.
edit
ok i see what i did wrong. i wasnt suposed to remove the current folders but simply add these files to the folders
got it working but the temp % doesnt line up with the others % bars
hello sorry i forgot to reply!sjfaustino wrote: Since i can see a green demarcation line on the orange bar (a bug i noticed and corrected on the css) I can only assume you aren't using my .css file.
I'll fork the git repo and do a pull request, if aproved all you need to do is git clone and my changes will work "out of the box"
Your browser was probably caching the .css files.r0nnie wrote:hello sorry i forgot to reply!sjfaustino wrote: Since i can see a green demarcation line on the orange bar (a bug i noticed and corrected on the css) I can only assume you aren't using my .css file.
I'll fork the git repo and do a pull request, if aproved all you need to do is git clone and my changes will work "out of the box"
the cpu heat % bar is now in line!
i didnt do or change nothing
yeah no login = no admin options! how would one do thissjfaustino wrote:You mean, if logged in show the admin options, if not just show everything else?
If so, it is very easy to do, but it ideally should be a setting that only the admin can toggle, not something active by default.
Security = Deny by default
Just finished:sjfaustino wrote: The changes I made so far are:
- Added a bar for the SoC core temperature
- You don't need to have the www-data user with root permissions to save the settings file
- Cleaned up all the notices from PHP
Just finished:sjfaustino wrote: The changes I made so far are:
- Added a bar for the SoC core temperature
- You don't need to have the www-data user with root permissions to save the settings file
- Cleaned up all the notices from PHP
- Show the configuration on the CPU speed (Min: 700MHz Max: 1GHz ondemand)
Great! Are you planing on continuing development on any of the stuff I mentioned above?Mr_Waffle wrote:@sjfaustino, I forked your repo and added some dirty AJAX updating to it.
I do plan on continuing development, I'll see what I can do of your list.sjfaustino wrote:Great! Are you planing on continuing development on any of the stuff I mentioned above?Mr_Waffle wrote:@sjfaustino, I forked your repo and added some dirty AJAX updating to it.
If not, could you do a pull request so I get your updates and continue developing on top of them?
BTW, I'm currently modifying the "check for updates" to get the latest version from the Github repository.
My plan is to get the Atom feed of the repository and compare with the running version.
Yes, please.Mr_Waffle wrote:I do plan on continuing development, I'll see what I can do of your list.sjfaustino wrote:Great! Are you planing on continuing development on any of the stuff I mentioned above?Mr_Waffle wrote:@sjfaustino, I forked your repo and added some dirty AJAX updating to it.
If not, could you do a pull request so I get your updates and continue developing on top of them?
BTW, I'm currently modifying the "check for updates" to get the latest version from the Github repository.
My plan is to get the Atom feed of the repository and compare with the running version.
I also want to change the API, as it currently doesn't seem to do anything.
Do you still want me to make a pull request?
I get your idea. I made a few small changes to the current classes, and put together a simple PHP script that puts all info into a nice JSON object.sjfaustino wrote:Yes, please.
Regarding the API, I was thinking of separating the code into code and display modules (to try to get something closer to MVC), with a class used to get the values and another used to display the results based on another file where you have the config.
Probably didn't explain myself very well