Go to advanced search

by GazonkFoo
Tue Jul 29, 2014 6:07 pm
Forum: Other programming languages
Topic: Need help on my REST API
Replies: 13
Views: 2277

Re: Need help on my REST API

Code: Select all

'INSERT INTO sensor VALUES(1, "Red LED", + now +, NULL)'
should probably read

Code: Select all

'INSERT INTO sensor VALUES(1, "Red LED",'+ now +', NULL)'
don't know if this is the only error (haven't tried your code)
by GazonkFoo
Sat Jul 26, 2014 5:17 pm
Forum: Other programming languages
Topic: How to create a REST services using Node.JS in Raspberry PI?
Replies: 10
Views: 14512

Re: How to create a REST services using Node.JS in Raspberry

Which pins do you use for the other LEDs?
by GazonkFoo
Fri Jul 11, 2014 6:58 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Interfacing 24v Gate Controlboard
Replies: 12
Views: 3424

Re: Interfacing 24v Gate Controlboard

Sorry for the delay - i had to wait until the weather got better to try it out. Everything is now working great. Just awesome - thank you everyone for the support but especially bbodin for the noob-proof solution ;) Now I'm able to control my gate from a browser. Here's a short video of the final th...
by GazonkFoo
Fri Jul 11, 2014 1:57 pm
Forum: Other programming languages
Topic: How to create a REST services using Node.JS in Raspberry PI?
Replies: 10
Views: 14512

Re: How to create a REST services using Node.JS in Raspberry

you need to install the middlewares using:

Code: Select all

npm install morgan
npm install body-parser
by GazonkFoo
Thu Jul 10, 2014 10:03 am
Forum: Other programming languages
Topic: How to create a REST services using Node.JS in Raspberry PI?
Replies: 10
Views: 14512

Re: How to create a REST services using Node.JS in Raspberry

ok i think you have installed the latest version of the express framework (4.x) and they removed the configure method. see here: https://github.com/visionmedia/express/wiki/Migrating-from-3.x-to-4.x but you don't need the configure anyway ;) just change app.configure(function () { app.use(express.lo...
by GazonkFoo
Thu Jul 10, 2014 9:51 am
Forum: Other programming languages
Topic: How to create a REST services using Node.JS in Raspberry PI?
Replies: 10
Views: 14512

Re: How to create a REST services using Node.JS in Raspberry

it would help a lot if you tell us what error you get ;)
by GazonkFoo
Wed Jul 09, 2014 2:26 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Interfacing 24v Gate Controlboard
Replies: 12
Views: 3424

Re: Interfacing 24v Gate Controlboard

Sounds great i will try that and report about the outcome, thanks! Can you maybe tell me how you calculated the resistor values? Just want to learn something ;) I was under the impression that the input of an optoisolator can be treated like a regular LED but i can't figure out how to get to your va...
by GazonkFoo
Wed Jul 09, 2014 10:47 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Interfacing 24v Gate Controlboard
Replies: 12
Views: 3424

Re: Interfacing 24v Gate Controlboard

Using a optoisolator would be awesome of course so i measured everything you told me: 1) 22.5V ... should be OK!? 2) 1.25mA ... this is problematic for the 4N28 i guess? But i also have a bunch of 4N35 and according to the datasheet those have a CTR of 100, right? so those should work? 3) Using a 10...
by GazonkFoo
Tue Jul 08, 2014 1:33 pm
Forum: Other programming languages
Topic: How to create a REST services using Node.JS in Raspberry PI?
Replies: 10
Views: 14512

Re: How to create a REST services using Node.JS in Raspberry

Creating a REST service using node.js is actually really simple. Just have a look at the express framework: http://expressjs.com/guide.html Surprisingly there's also a guide directly from microsoft how to use azure sql with node: http://azure.microsoft.com/en-us/documentation/articles/sql-database-n...
by GazonkFoo
Tue Jul 08, 2014 12:18 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Interfacing 24v Gate Controlboard
Replies: 12
Views: 3424

Re: Interfacing 24v Gate Controlboard

Thanks for taking the time looking through the pdf!! I know i'm the only one responsible when screwing things up and burning down my house, killing the entire neighborhoud and those things that usually happen when experimenting :D I will build the optocoupler circuit now but i'm still a bit lost wit...
by GazonkFoo
Mon Jul 07, 2014 5:10 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Interfacing 24v Gate Controlboard
Replies: 12
Views: 3424

Interfacing 24v Gate Controlboard

Hey! I want to be able to control a sliding gate with my rpi. The motor has a controlerboard of the following type: http://www.faacusa.com/uploads/media/746___780D.pdf Now what i need to do is trigger the input labeled "Open A" (Pin 1) and read the state of the output "W.L." (Pin 12). The only probl...

Go to advanced search