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
sgpio(1)							   USER COMMANDS							  sgpio(1)

NAME
sgpio - captive backplane LED control utility SYNOPSIS
sgpio [-h] [-V] [[-d|--disk <device>[,<device>...]] | [-p|--port <port>[,<port>...]]] [-s|--status <status>] [-f|--freq <frequency>] DESCRIPTION
Serial General Purpose Input Output (SGPIO) is a communication method used between a main board and a variety of internal and external hard disk drive bay enclosures. This utility can be used to control LEDs in an enclosure. For more information about SGPIO, please consult the SFF-8485 Specification. OPTIONS
-h, --help displays a short help text -V, --version displays the utility and AHCI SGPIO specification -d, --disk disk name of LED location. Names are sda,sdb,sdc,... Multiple names can be provided in a comma-delimited list. -p, --port SATA port number of LED location, can be used if a disk name is no longer valid. 0,1,2,3,... Multiple ports can be provided in a comma-delimited list. -s, --status status of the LED to set. LED status is: locate, fault, rebuild, off -f, --freq Set the frequency at which the LED should blink (in Hz). Frequency should be an integer between 1 and 10. EXAMPLES
Set the locate LED on SDA with an Intel Intelligent backplane: sgpio -d sda -s locate Set the locate LED on SDA to flash at 3 Hz for non-intelligent backplanes: sgpio -d sda -s locate -f 3 Set SATA port 2 with fault at a 3 Hz flash rate: sgpio -p 2 -s fault -f 3 Set disks sda through sdf to fault: sgpio -d sda,sdb,sdc,sdd,sde,sdf -s fault EXIT STATUS
sgpio should return zero when successful. It will return with a non-zero value if there was a failure. AUTHOR
Eric R. Hall <Eric.R.Hall@intel.com> version 0.3 December 2007 sgpio(1)