thebestion / RPI.PIHome2.0-GUI-Frontend

PiHome 2.0 is a RaspberryPI home automation open source project
Other
36 stars 29 forks source link

Cannot Access Phpmyadmin #2

Open acestu opened 9 years ago

acestu commented 9 years ago

Hi Sebastian, I have followed the install procedure but when I get to the last bit installing database when I navigate to my pi's ip/phpmyadmin it comes up with the Apache NOT FOUND page, any help appreciated.

Thanks Stuart

acestu commented 9 years ago

Hi,

I can cd into the tools directory and if I do an ls -a I can see:

Proove-Anslut-Nexa-HomeEasy new protocol

It says No Such file or directory when I try to cd into it

Thanks Stuart

tklucis commented 9 years ago

cd Pr and press TAB for autocomplete then ENTER

acestu commented 9 years ago

I will try it now thanks

acestu commented 9 years ago

Great cheers, so I take it I need to go into the send and receive folders and type ./build to build the application ?

Thanks Stuart

tklucis commented 9 years ago

yes ... it will build binaries

acestu commented 9 years ago

Thanks Tk, really appreciate the help, I will have a play with this now and follow your previous instructions for learning the codes etc.

cheers Stuart

acestu commented 9 years ago

Hi Tk,

If I type ./build in the send or receive folder, I get permission denied when operating directly or ssh'in denied denied2

cheers Stuart

tklucis commented 9 years ago

chmod +x ./build

acestu commented 9 years ago

Hi,

Done that,

can I use, ./scan_433RF 17 and use the onboard 433 Mhz receiver on gpio17 or do I have to connect another receiver to an unused gpio pin ?

Thanks Stuart

tklucis commented 9 years ago

yep

acestu commented 9 years ago

Hi Tk,

I have wired one of the ook ask receivers to +5v Gnd and the data pin to pin 37 which is gpio 26

When I run ./scan_433RF 26 it says

Wiring Pi found GPIO pin configured Listening ... 0

then I press my remote transmitter button right next to the receiver but nothing happens, I know the remote works because it is switching the socket on,

after about 5 mins I have to press control c to stop

changed receiver data pin to gpio4 and ran ,/scan_433RF 4 but the same

Thanks Stuart

acestu commented 9 years ago

Hi Tk,

Right I worked out that header pins don't correspond,

So now I get:

scanning

It keeps going

But I don't get signal detected

I tried to detect the remote control code with an arduino program off the internet the other night and it seemed to be a different code every time I tried it

Cheers Stuart

tklucis commented 9 years ago

Take it very very close to receiver module ... Show me ur remote model name. Will check on net.

acestu commented 9 years ago

Hi Tk,

I was holding the front of the remote right on the coil of the receiver, here is a pic of them:

energenie

cheers Stuart

tklucis commented 9 years ago

Energenie proto

each command consists of 32bits logic "0" is a 300us pulse followed by a 300us space logic "1" is a 600us pulse followed by a 600us space and a 33rd bit is added, equal to the 32nd bit inverted

So you can safely modify my source to fit your protocol.

acestu commented 9 years ago

Hi Tk,

Not sure what is going on here because if I put the no1 - on through my logic analyser I get this:

1-on-logic

and it dosent seem to be the same as mr bodgits

cheers Stuart

tklucis commented 9 years ago

Then you have this protocol.

acestu commented 9 years ago

Hi Tk,

Thanks for the info it is spot on 25 bits, it doesn't look good though because I don't think you can use more than 4 sockets.

cheers Stuart

tklucis commented 9 years ago

Wrong. Unique ID is for 4 sockets. Change ID and you will get 4 more sockets to control. Socket itself doesnt cares about ID - thats why they are self learning. You can provide any ID to it. It just memorize it.

stamb commented 8 years ago

Hi all

I redone the install already several times but always run into the same problem. When I finally go to the rp IP i see this page and not the Pihome page.

img_0882

Any idea what the problem could be?

thanks,

Steve

thebestion commented 8 years ago

Hi,

Put pihome under /var/www/html/ That's it.

Best regards

On 05 Jan 2016, at 11:29, stamb notifications@github.com wrote:

Hi all

I redone the install already several times but always run into the same problem. When I finally go to the rp IP i see this page and not the Pihome page.

Any idea what the problem could be?

thanks,

Steve

— Reply to this email directly or view it on GitHub.

stamb commented 8 years ago

Hi Thanks, so i suppose that this should be the code I changed what i found with waybackmachine since the pihome site (http://pihome.harkemedia.de/) isn't available anymore.

'# [ Install PIHome ]

'# Change directory cd /var/www/html/

'# Download PIHome from GitHub git clone https://github.com/cerosx/RPI.PIHome2.0-GUI-Frontend/

'# Copy all files in the web server directory cp -r /home/pi/RPI.PIHome2.0-GUI-Frontend/pihome/* /var/www/html

'# awarded rights sudo chown www-data:www-data /var/www/html sudo chmod 775 /var/www/html sudo usermod -a -G www-data pi

'# rights for use rcswitch per website sudo visudo '# add the following line www-data ALL=NOPASSWD: /home/div/rcswitch-pi/send '# CTRL + O -> save '# CTRL + X -> close

Thanks,

Steve

acestu commented 8 years ago

Hi Steve,

I had to add this path in order to get the home page loaded:

Typed: nano /etc/apache2/apache2.conf

and add this line, save and reboot

Include /etc/phpmyadmin/apache.conf

cheers Stuart

stamb commented 8 years ago

Hi Stuart

Thanks for the tip. I already did that so I could open the php admin, so that was OK. The problem is the Pihome UI.

I'll start another build tonight.

greetings,

Steve

acestu commented 8 years ago

Hi Steve, what problem are you having with it ?

Stuart

stamb commented 8 years ago

Hi

putting pihome under var/www/html gives me the access to the pihome interface. But when selecting the menu's "room" and "settings" give an error (The requested URL /home/room/1/ was not found on this server) because they still refer to an home folder in the url, any idea where/how i can change that.

thanks,

Steve

thebestion commented 8 years ago

Hi Steve,

you must make a new config

cd /etc/apache2/sites-available

touch 192.168.1.100.conf # your ip

nano 192.168.1.100.conf

copy paste this. <VirtualHost *:80>

    ServerName 192.168.1.100
    ServerAlias 192.168.1.100
    DocumentRoot /var/www/html/
    <Directory /var/www/html/>
            Options -Indexes +FollowSymLinks -MultiViews
            AllowOverride all
    </Directory>

    CustomLog /var/log/apache2/pihome.de-access.log combined
    ErrorLog /var/log/apache2/pihome.de-error.log

    # Possible values include: debug, info, notice, warn, error, crit,
    # alert, emerg.
    LogLevel warn

a2ensite 192.168.1.100.conf

sudo service apache2 restart

that’s it :)

On 07 Jan 2016, at 21:44, stamb notifications@github.com wrote:

Hi

putting pihome under var/www/html gives me the access to the pihome interface. But when selecting the menu's "room" and "settings" give an error (The requested URL /home/room/1/ was not found on this server) because they still refer to an home folder in the url, any idea where/how i can change that.

thanks,

Steve

— Reply to this email directly or view it on GitHub https://github.com/cerosx/RPI.PIHome2.0-GUI-Frontend/issues/2#issuecomment-169800102.

Mit freundlichen Grüßen / best regards

Sebastian Harke drawDESIGN

Contact: Telephone: (0049) 0241 450 18 63 Mobile: (0049) 01520 365 99 70 Email: info@draw-design.com Internet: page.draw-design.com

stamb commented 8 years ago

Hi Sebastian

The site works now, thanks for the aid, looks really nice. First I still got some errors on the last code, but I changed the "Options -Indexes +FollowSymLinks -MultiViews" into "Options +Indexes +FollowSymLinks +MultiViews".

Now i'll build the HomyEasy binaries in the /var/www/html/tools/Proo...HomeEasy/send and receive folders with the command "chmod +x ./build" and connect the Chacon DIO hardware.

I'll keep you posted.

Steve

stamb commented 8 years ago

Hi all when I enter the command ./scan_433RF 2 (pin 13) I get an error message, Permission denied. Any idea, i'm logged in as root.

this is the wiring:

pin 2 = + pin 6 = GND pin 11 = GPIO 0, data transmitter pin 13 = GPIO 2, data receiver

gr,

Steve

thebestion commented 8 years ago

you must make file executable chmod +x scan_433RF try this

On 11 Jan 2016, at 18:14, stamb notifications@github.com wrote:

Hi all when I enter the command ./scan_433RF 2 (pin 13) I get an error message, Permission denied. Any idea, i'm logged in as root.

this is the wiring:

pin 2 = + pin 6 = GND pin 11 = GPIO 0, data transmitter pin 13 = GPIO 2, data receiver

gr,

Steve

— Reply to this email directly or view it on GitHub https://github.com/cerosx/RPI.PIHome2.0-GUI-Frontend/issues/2#issuecomment-170622356.

Mit freundlichen Grüßen / best regards

Sebastian Harke drawDESIGN

Contact: Telephone: (0049) 0241 450 18 63 Mobile: (0049) 01520 365 99 70 Email: info@draw-design.com Internet: page.draw-design.com

stamb commented 8 years ago

Hi

The program works, but it gives the same result as Stuart's sceenshot, and I thing I don't see any usable codes, even when I hold it very close.

Chacon Dio ref 54760

chacon_dio-remote-3-chanels_54760

Any suggestions?

Thanks,

Steve