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
ledmon(8)					      Intel(R) Enclosure LED Monitor Service						 ledmon(8)

NAME
ledmon - Intel(R) LED monitor service for storage enclosures. SYNOPSIS
ledmon [OPTIONS] DESCRIPTION
The ledmon application is a daemon process used to monitor a state of software RAID devices (md only) or a state of block devices. The state is visualizing on LEDs associated to each slot in an enclosure or a drive bay. There are two types of system: 2-LEDs system (Activity LED, Status LED) and 3-LEDs system (Activity LED, Locate LED, Fail LED). This application has the highest priority when accessing the LEDs. The ledmon application uses SGPIO and SES-2 protocol to control LEDs. The program implements IBPI patterns of SFF-8489 specification for SGPIO. Please note some enclosures do not stick close to SFF-8489 specification. It might happen that enclosure processor will accept IBPI pattern but it will blink LEDs not according to SFF-8489 specification or it has limited number of patterns supported. LED management (AHCI) and SAF-TE protocols are not supported. There's no method provided to specify which RAID volume should be monitored and which not. The ledmon application monitors all RAID devices and visualizes their state. The ledmon application has been verified to work with Intel(R) storage controllers (i.e. Intel(R) AHCI controller). The application might work with storage controllers of other vendors (especially SAS/SCSI controllers). However storage controllers of other vendors have not been tested. The ledmon application is part of Intel(R) Enclosure LED Utilities. Only single instance of the application is allowed. OPTIONS
-c or --config=path Sets a path to local configuration file. If this option is specified the global configuration file and user configuration file has no effect. -l or --log=path Sets a path to local log file. If this option is specified the global log file /var/log/ledmon.log is not used. -t or --interval=seconds Sets time interval between scans of sysfs. The value is given in seconds. The minimum is 5 seconds the maximum is not specified. --quiet or --error or --warning or --info or --debug or --all Verbose level - 'quiet' means no logging at all and 'all' means to log everything. The levels are given in order. If user specifies more then one verbose option the last option comes into effect. -h or --help Prints this text out and exits. -v or --version Displays version of ledmon and information about the license and exits. FILES
/var/log/ledmon.log Global log file, used by ledmon application. To force logging to user defined file use -l option switch. ~/.ledctl User configuration file, shared between ledmon and all ledctl application instances. /etc/ledcfg.conf Global configuration file, shared between ledmon and all ledctl application instances. LICENSE
Copyright (c) 2009 Intel Corporation. This program is distributed under the terms of the GNU General Public License as published by the Free Software Foundation. See the build- in help for details on the License and the lack of warranty. BUGS
The ledmon application does not recognize PFA state (Predicted Failure Analysis), hence the PFA pattern from SFF-8489 specification is not visualized. SEE ALSO
ledctl(8), ledctl.conf(5) AUTHOR
This manual page was written by Artur Wojcik <artur.wojcik@intel.com>. It may be used by others. LEDMON Version 0.32 February 2012 ledmon(8)