Go to advanced search

by yvonnezoe
Wed Apr 16, 2014 1:14 am
Forum: Camera board
Topic: RPi Cam Web Interface
Replies: 5059
Views: 1319685

Re: RPi Cam Web Interface

Hi I have a question here. I tried to implement the commands without the script.js as i was using jQuery. it seems to work a few times. however if a button is clicked for multiple times, the camera app crashes. my jquery script is as follow: Please tell me which part is not necessary. it seems to wo...
by yvonnezoe
Fri Mar 28, 2014 1:36 pm
Forum: Beginners
Topic: Any idea on cron job?
Replies: 1
Views: 402

Any idea on cron job?

Hi! I would like to improve on my project by using cron jobs. Currently, i have a web application that allows me to control servos. However I would like to add another function on the web application where i can set the cron job to execute a script that would control the servos automatically. meanin...
by yvonnezoe
Fri Mar 21, 2014 8:59 am
Forum: Camera board
Topic: RPi Cam Web Interface
Replies: 5059
Views: 1319685

Re: RPi Cam Web Interface

Hi! May I know the framework or structure or the back-end processor (i don't really know what the term is called) of this camera app? What I mean is, how does the command flow (into the server or something like that?) ? and what are the core things that actually make all the app work? Sorry that my ...
by yvonnezoe
Tue Mar 18, 2014 12:26 pm
Forum: Camera board
Topic: RPi Cam Web Interface
Replies: 5059
Views: 1319685

Re: RPi Cam Web Interface

poing wrote:script.js and script_min.js contain dedicated functions for this project. You can't replace them with jQuery.
thanks for informing or I might take forever to keep trying. :D If I were to just embed the live preview, will it work?
by yvonnezoe
Tue Mar 18, 2014 11:31 am
Forum: Camera board
Topic: RPi Cam Web Interface
Replies: 5059
Views: 1319685

Re: RPi Cam Web Interface

How can i change everything into jQuery mobile? I tried, but the words on the buttons are gone and they are no longer functioning. :(
by yvonnezoe
Tue Mar 18, 2014 2:54 am
Forum: Camera board
Topic: RPi Cam Web Interface
Replies: 5059
Views: 1319685

Re: RPi Cam Web Interface

How do I use script_min.js in my own page? I remembered the last time I was here,I read it somewhere. Now i couldn't find it.
by yvonnezoe
Sun Mar 16, 2014 3:49 pm
Forum: Beginners
Topic: Copy files to /var/www
Replies: 17
Views: 8797

Re: Copy files to /var/www

sudo chown -R pi /var/www
by yvonnezoe
Sun Mar 16, 2014 3:38 am
Forum: Automation, sensing and robotics
Topic: Getting values from FSR
Replies: 2
Views: 2897

Getting values from FSR

I am trying to get values from a force sensitive resistor with Raspberry Pi. I saw an example using Arduino such as this http://learn.adafruit.com/force-sensitive-resistor-fsr/using-an-fsr and I can get sensor values from a photocell using the code below. Now I am trying to use the same concept to a...
by yvonnezoe
Sun Mar 16, 2014 1:28 am
Forum: Networking and servers
Topic: Accessing MySQL database
Replies: 2
Views: 792

Re: Accessing MySQL database

KeithSloan wrote:To answer question 1) I would put both links in different frames on the same page
Thanks! Do you mind explaining more? Like how I can get 2 pages from different port into just 1 page? Any clue on how to do it?
by yvonnezoe
Sat Mar 15, 2014 4:25 pm
Forum: Troubleshooting
Topic: Cannot Access phpmyadmin from Cherrypy port 8080
Replies: 8
Views: 2830

Re: Cannot Access phpmyadmin from Cherrypy port 8080

If I have more than one machine on my network running web servers I can use reverse proxy on one server to connect to the other and seamlessly present it as though it was hosted on the primary machine. With Apache I can do that with ProxyPass /RPi http://pi.local/ ProxyPassReverse /RPi http://pi.lo...
by yvonnezoe
Sat Mar 15, 2014 3:34 pm
Forum: Troubleshooting
Topic: Cannot Access phpmyadmin from Cherrypy port 8080
Replies: 8
Views: 2830

Re: Cannot Access phpmyadmin from Cherrypy port 8080

DougieLawson wrote:Does cherry support reverse proxying?
Not too sure. what is that?
by yvonnezoe
Sat Mar 15, 2014 10:57 am
Forum: Troubleshooting
Topic: Cannot Access phpmyadmin from Cherrypy port 8080
Replies: 8
Views: 2830

Re: Cannot Access phpmyadmin from Cherrypy port 8080

DougieLawson wrote:When you install phpmyadmin it automatically updates your Apache2 config.

Try http://192.168.1.109/phpmyadmin with no port override.
Yes i can access that http://192.168.1.109/phpmyadmin. But how can i access that database from an app deployed at port 8080?
by yvonnezoe
Sat Mar 15, 2014 10:19 am
Forum: Networking and servers
Topic: Accessing MySQL database
Replies: 2
Views: 792

Accessing MySQL database

hey guys, i would like to seek your opinion on this as I have little idea about the whole structure and not sure where to find more information. Currently I have this problem of having both Apache2 and CherryPy web server on my Raspberry Pi. Apache2 is at port 80 and CherryPy is at port 8080. I have...
by yvonnezoe
Fri Mar 14, 2014 2:34 pm
Forum: Camera board
Topic: RPi Cam Web Interface
Replies: 5059
Views: 1319685

Re: RPi Cam Web Interface

Hi @silvermelchior, just for your notice, the second line of step 4 should be

Code: Select all

cd RPi_Cam_Web_Interface
? :)
by yvonnezoe
Fri Mar 14, 2014 1:10 am
Forum: Troubleshooting
Topic: Cannot Access phpmyadmin from Cherrypy port 8080
Replies: 8
Views: 2830

Re: Cannot Access phpmyadmin from Cherrypy port 8080

DougieLawson wrote:Which web server are you running? Apache2? Lightttpd? or Nginx?
I believe the web server running at port 80 is Apache. The application using it is a camera app -> http://raspberrypiwonderland.wordpress. ... amera-app/
by yvonnezoe
Thu Mar 13, 2014 1:06 pm
Forum: Troubleshooting
Topic: Cannot Access phpmyadmin from Cherrypy port 8080
Replies: 8
Views: 2830

Cannot Access phpmyadmin from Cherrypy port 8080

I can access phpmyadmin from the host (raspberry pi) ip address (http://192.168.1.109/phpmyadmin) but i am running a server at port 8080 with cherrypy. I couldn't access http://192.168.1.109:8080/phpmyadmin I get the following error: Traceback (most recent call last): File "/usr/local/lib/python2.7/...
by yvonnezoe
Fri Feb 28, 2014 3:36 am
Forum: Troubleshooting
Topic: Urgent help needed! Where to put my Python CGI
Replies: 1
Views: 976

Urgent help needed! Where to put my Python CGI

I have Apache2 web server running on my raspberry Pi and i have this camera app ( http://www.raspberrypi.org/phpBB3/viewtopic.php?f=43&t=63276 ) installed too. but i'm not sure what web server is the app running. :( I could host a simple web interface on localhost and i wanted to run a python file f...
by yvonnezoe
Fri Feb 28, 2014 2:58 am
Forum: General discussion
Topic: cgi-bin how / where
Replies: 17
Views: 26101

Re: cgi-bin how / where

#1 Look at the access.log and error.log in /var/log/apache2 #2 It's /usr/lib/cgi-bin/ in the default configuration. Thanks for your reply. I found my cgi-bin under /usr/lib/ but according to this tutorial, http://www.tutorialspoint.com/python/python_cgi_programming.htm , " the Linux server is confi...
by yvonnezoe
Thu Feb 27, 2014 3:29 pm
Forum: General discussion
Topic: cgi-bin how / where
Replies: 17
Views: 26101

Re: cgi-bin how / where

vk4tec wrote:Fixed and working

Wrong config file I was changing

- Andrew -
How exactly did you do it? I can't find my cgi-bin in var/www/ as well. :(
by yvonnezoe
Thu Feb 20, 2014 5:40 am
Forum: Advanced users
Topic: Controlling servo from Raspberry Pi
Replies: 23
Views: 22033

Re: Controlling servo from Raspberry Pi

Oh, pigs does sound rather convenient, will try it out!! Thank you for the useful tip! :D
by yvonnezoe
Wed Feb 19, 2014 1:23 pm
Forum: Advanced users
Topic: Controlling servo from Raspberry Pi
Replies: 23
Views: 22033

Re: Controlling servo from Raspberry Pi

Noted with thanks! :) I tried it out with 2 tower pro 90g micro servos and they seem to work well! see here http://www.youtube.com/watch?v=vzH2CAH49ig&feature=youtu.be When i set them to 1000 and 2000, the position did not reach 0 and 180 degree, so i tried 500 and 2500 (i saw these figures in the p...
by yvonnezoe
Wed Feb 19, 2014 5:41 am
Forum: Advanced users
Topic: Controlling servo from Raspberry Pi
Replies: 23
Views: 22033

Re: Controlling servo from Raspberry Pi

This code is an example of sending different pulses to each of 5 servos. You can use any of the user gpios (17 Rev.1 boards, 21 Rev.2). servo.py chmod +x servo.py sudo pigpiod # if not already running ./servo.py #!/usr/bin/env python import time import pigpio servos = [4,7,8,9,10] moves = [[1500, 5...
by yvonnezoe
Tue Feb 18, 2014 4:43 pm
Forum: Advanced users
Topic: Controlling servo from Raspberry Pi
Replies: 23
Views: 22033

Re: Controlling servo from Raspberry Pi

Thanks ame and joan for the reply. I have installed it successfully but when I run the library test sudo ./checklib there are 2 things that failed. Library timer tests. ABS time diff=8, REL time diff=66 ABS time diff=3, REL time diff=72 ABS time diff=3, REL time diff=71 ABS time diff=2, REL time dif...
by yvonnezoe
Mon Feb 17, 2014 2:53 am
Forum: Advanced users
Topic: Controlling servo from Raspberry Pi
Replies: 23
Views: 22033

Re: Controlling servo from Raspberry Pi

joan's pigpio works great. If you do not need a lot of resolution for the ADC, the PCF8591's are very easy to add., as are the MCP3008 and MCP3208 DIP ADC's. The Adafroit i2c servo board is also a good deal. I used pigpio for "SPIRE" (see Jan.2014 Servo Magazine, some info at http://www.mikronauts....
by yvonnezoe
Mon Feb 17, 2014 2:50 am
Forum: Advanced users
Topic: Controlling servo from Raspberry Pi
Replies: 23
Views: 22033

Re: Controlling servo from Raspberry Pi

Actually you don't need any additional hardware to control servos. Unlike DC motors and stepper motors you don't need a motor driver board. Servos have one built-in. You can connect the servo control wire direct to a Pi gpio (one gpio per servo). Connect power to the servo from a battery or other p...

Go to advanced search