How to build a simple LED RESTful service in Raspberry PI?


 
Thread Tools Search this Thread
Top Forums Programming How to build a simple LED RESTful service in Raspberry PI?
# 1  
Old 07-22-2014
How to build a simple LED RESTful service in Raspberry PI?

Hi guys, I would like to seek advise or help on how to build a simple LED RESTful service in Raspberry PI. I need to be able to get my LED to light up or off whenever I type localhost:3000/GET/1/1 or something. New to it and hope you guys could help me out with it as soon as possible, thanks in advance, guys.
Login or Register to Ask a Question

Previous Thread | Next Thread

5 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Project with Raspberry Pi

i have been given a raspberry Pi with some applications i am told run in Unix. I do not know much (close to nothing about Unix) that's why I'm here. I need someone to remote view (team viewer) into my machine and try and show me how to get this application running. If there is success there... (1 Reply)
Discussion started by: supaflygy
1 Replies

2. What is on Your Mind?

Raspberry PI

The small red box to the left of TV is the Raspberry PI. Successfully installed and running Raspbian Wheezy. I learnt about Raspberry PI from Neo here on unix.com. Thanks to you Neo :b: (6 Replies)
Discussion started by: balajesuri
6 Replies

3. UNIX for Dummies Questions & Answers

Adding SDK Build on Kernel Source Build

Hi, So I downloaded this kernel source and was able to build it successfully. But I want to add this SDK source code inside, can anyone help me how to do this? Note that the SDK source can be built by itself. I added the SDK in the main Makefile: init-y := init/ #added SDK... (0 Replies)
Discussion started by: h0ujun
0 Replies

4. What is on Your Mind?

Raspberry Pi anyone?

Anyone order or get the new Rasberry Pi? I'm still waiting. Even though it's a fun project, I think these will turn out to be toys for people who already have PC's, and a boon to those who do not. But that is not stopping me. If my wallet holds out, maybe I can build a Raspberry Pi beowulf... (1 Reply)
Discussion started by: jim mcnamara
1 Replies

5. Shell Programming and Scripting

Calling RESTful web services from Unix ?

Hello, I need to make a function call to a RESTful web service. I tried using curl command but it throws an error 'Mathod not allowed' curl --request POST <link> Could someone confirm if Unix can call a RESTful web service and share some examples around the Syntax Thanks in Advance :b:... (2 Replies)
Discussion started by: amitshete
2 Replies
Login or Register to Ask a Question
hpialarms(1)							      OpenHPI							      hpialarms(1)

NAME
hpialarms - A openhpi sample application that shows "Alarm Control" management instruments SYNOPSIS
hpialarms [-a -b -c -i -m -n -p -o -x] DESCRIPTION
hpialarms walks the RPT (Resource Present Table) for resouces that have "Alarm Control" management instruments (SAHPI_CTRL_LED). OPTIONS
-c1 sets Critical Alarm on -c0 sets Critical Alarm off -m1 sets Major Alarm on -m0 sets Major Alarm off -n1 sets Minor Alarm on -n0 sets Minor Alarm off -p1 sets Power Alarm on -p0 sets Power Alarm off -i5 sets Chassis ID on for 5 sec -i0 sets Chassis ID off -a1 sets Disk A fault on -a0 sets Disk A fault off -b1 sets Disk B fault on -b0 sets Disk B fault off -d[byte] sets raw Alarm byte -o sets all Alarms off -x show eXtra debug messages SAMPLE OUTPUT
hpialarmpanel ver 0.6 RptInfo: UpdateCount = 5, UpdateTime = 8a2dc6c0 rptentry[0] resourceid=1 tag: Mullins RDR[45]: ctltype=2:1 oem=0 Chassis Identify Control RDR[48]: ctltype=0:1 oem=10 Front Panel Power Alarm LED state = off RDR[51]: ctltype=0:1 oem=13 Front Panel Minor Alarm LED state = ON RDR[46]: ctltype=0:0 oem=0 Cold Reset Control RDR[49]: ctltype=0:1 oem=11 Front Panel Critical Alarm LED state = off RDR[50]: ctltype=0:1 oem=12 Front Panel Major Alarm LED state = off SEE ALSO
AUTHORS
Authors of this man page: Peter D Phan (pdphan@users.sourceforge.net) 2.14.1 2009-11-23 hpialarms(1)