linwiz / Raspberry-Pi-Web-GPIO

PHP script to control Raspberry PI GPIO pins from the web
GNU General Public License v3.0
4 stars 1 forks source link

Fail on initial setup. #5

Closed Paku- closed 9 years ago

Paku- commented 9 years ago

Seems to be a good work @linwiz but can not pass the authorization on initial setup getting Apache error as follow:

PHP Fatal error:  Call to undefined function scrypt() in /var/www/gpio/scrypt.php
on line 177, referer: http://x.x.x.x/gpio/

Any idea ??

Edit:

It seems you forgot to mention:

apt-get install php5-dev
http://github.com/DomBlack/php-scrypt
linwiz commented 9 years ago

You'll need to install scrypt to git rid of those errors, these are detailed in the requirements section of the readme.

php5-dev is not directly dependant on this project, but it is a requirement to install scrypt

Paku- commented 9 years ago

Sorry I missed it ...

linwiz commented 9 years ago

No problem. Please let me know if you have any more problems, I will try to help.

Paku- commented 9 years ago

I'm impressed it seems it's working - but have to find the relays somewhere in my drower :)

Have one more idea for you. The SMS functionality to be included. So you can get SMS on PIN_IN change or set the PIN_OUT ... think it over !

http://gnokii.org/ https://garretlabs.wordpress.com/2014/05/21/raspberry-pi-a-remote-controlled-relay-using-sms-messages/

All together (web&SMS) would be a great Remote RPi controller.

I use such a proprietary device to control my vocation house, but it's limited to the manufacturer build in functionality. Solution based on RPi would be a good shoot.

linwiz commented 9 years ago

I am not opposed to the idea of SMS but it must be a free solution, and someone will have to incorporate it, I don't have a 3G modem to develop this feature.

Paku- commented 9 years ago

All you need is the old Nokia phone with usb cable. All software is open & free /like SMS gateways for RPi/.

You may use any phone+usb cable covered by Gnokii or gammu.

http://4.bp.blogspot.com/-7VUs6oaR-uo/UPGu2WwnjOI/AAAAAAAACu0/EDGBfijBJ9U/s1600/DSC_0673.JPG

I know Gnokii has a simple bash commands to send SMSs and a folder where incomming SMSs are written on arrival.

linwiz commented 9 years ago

I don't have the hardware required to add the SMS feature unfortunately. Maybe someone that does will work on it (hopefully)

Paku- commented 9 years ago

Like me ?? Have to look closer inside the code first ...

linwiz commented 9 years ago

If you have the hardware to do it then you could definitely contribute!

Paku- commented 9 years ago

Yes I have .. But do not know Kendo ... nor have it...

linwiz commented 9 years ago

I just pieced that kendo stuff together by combing over the user manual available online, I don't know it either.