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
fruled(1)						      General Commands Manual							 fruled(1)

NAME
fruled - flash/turn off attention LEDs (cell, cabinet and I/O chassis attention LEDs) SYNOPSIS
cell cell]... username I/Ochassis I/Ochassis]... username cabinet cabinet]... username cabinet] cabinet]... username DESCRIPTION
The command flashes/turns off attention LEDs of cells or I/O chassis in the local complex. The command can also be used to start flashing or stop flashing cabinet number LEDs. If either the option or the option is specified, the scope of the command will be the specified tar- get complex. If a cell or I/O chassis attention LED is made to flash, the cabinet number LED of the cabinet that contains the cell/ I/O chassis can also be made to flash by using the option. Likewise, if a cell or I/O chassis's LED is being turned off, the cabinet number LED can also be made to stop flashing using the option. Note: This command does not read or display the state of any LED. Users must observe the hardware itself to determine the state. Refer to the for a description of the partition management terms used in this man page. Options and Arguments recognizes the following command line options and arguments: Start or stop flashing the cabinet number LED of the cabinet that contains the cell or I/O chassis. The option is only available with the and options. Start flashing or stop flashing the cabinet number LED of the specified cabinet. Turn off all cell attention LEDs. Flash/Turn off the specified cell attention LED. A cell can be specified either in the local (cabinet#/slot#) or global (cell#) format. For example, the cell located in cabinet 0, slot 4 is locally identified as 0/4 or globally as simply 4. Turn off specified attention LED(s). This is the default. Allows access to the complex specified by the option. The accessed complex is then considered the target complex. Access is through the service processor's LAN port. The option is required if this option is used. If this option is specified, the command prompts for the password. If an error is reported when you attempt to connect using this option, check to see that IPMI LAN access has not been disabled on the remote service processor. Access to the complex through IPMI over LAN can be enabled or disabled by logging on to the service processor and using the command from the Command Menu. The and options are mutually exclusive. This option should only be used in combination with either the option. IPaddress|hostname specifies the IP address or hostname of the target partition or complex Turn off all I/O chassis LEDs. Flash/Turn off the specified I/Ochassis attention LED. An I/Ochassis must be specified in the form of cabinet#/enclosure#/chassis#. For example, the I/O chassis located in cabinet 0, enclosure 1 and I/O chassis slot 1 is identified as 0/1/1. Limit the scope of the or option to a given cabinet. Start flashing specified attention LED(s). The option is unavailable with or The and options are mutually exclusive. Specifies the required authorization to access a partition other than the local partition (but can also be used as a loopback access to the local partition). The complex to be modified is the one in which this target partition resides. The option is required if this option is used. If this option is specified, the command prompts for the password. username specifies a configured user name on the target partition. Note: This command is a Web-Based Enterprise Management (WBEM) Client Application. The option accesses the target partition using a Secure Sockets Layer (SSL) connection. If errors are reported, check that the conditions described in the section are satisfied. Mapping of Global Cell Numbers to Local Cell Numbers The cabinets in a complex are numbered starting from 0. The cell slots in each cabinet are also numbered starting from 0. Each cabinet can have a maximum of 8 cells. For example, the cells located in cabinet 0 will have the following cell numbers in global format: 0, 1, 2, 3, 4, 5, 6, 7. The cell numbers in corresponding local format will be 0/0, 0/1, 0/2, 0/3, 0/4, 0/5, 0/6, 0/7. Similarly the cells located in cabinet 1 will have the following cell numbers in global format: 8, 9, 10, 11, 12, 13, 14, 15. The cell numbers in corresponding local format will be 1/0, 1/1, 1/2, 1/3, 1/4, 1/5, 1/6, 1/7. From the above convention the cell located in cabinet 1, slot 0 is identified in the local format as 1/0 or in the global format as 8. The command will display the above cell as "cab1,cell0". The cell located in cabinet 1, slot 4 is identified in the local format as 1/4 or in the global format as 12. The command will display the above cell as "cab1,cell4". See parstatus(1). RETURN VALUE
The command exits with one of the following values: Successful completion. Error condition occurred. No LED associated with specified object. EXAMPLES
Flash the attention LED of the cell located in cabinet 0 slot 4 and also flash the attention LED of the cabinet in which it is contained. Turn off the attention LEDs of 2 cells located in cabinet 0, slot 4 and cabinet 0, slot 6. DEPENDENCIES
This command uses the Web-Based Enterprise Management (WBEM) product and some of its configuration settings. If you encounter connection errors when using the option, check that the following two conditions are satisfied: o Use the command (see cimconfig(1M) in the WBEM product documentation) to verify (and correct if necessary) the setting of the following two variables: o o o The target partition's digital certificate has been appended to the local partition's Shared Authentication Store. For the nPartition commands, the Shared Authentication Store is stored in the file: This file is used by all the clients, which use SSL based certificates. If these clients trust a target partition, then the nPartition commands will also trust the target partition. Refer to the WBEM documents specified in the section below for further information. AUTHOR
was developed by the Hewlett-Packard Company. SEE ALSO
parstatus(1), cplxmodify(1M), frupower(1M), parconfig(1M), parcreate(1M), parmgr(1M), parmodify(1M), parremove(1M), parunlock(1M), parti- tion(5). on on on fruled(1)