Changes
Created page with "== Goal == The goal of this project is to display Nagios Server's status on RGB Led Matrix. I have 4 Led Matrix, the idea is to create one box per matrix with 230V connector and..."
== Goal ==
The goal of this project is to display Nagios Server's status on RGB Led Matrix.
I have 4 Led Matrix, the idea is to create one box per matrix with 230V connector and Data IN/OUT
So we can decide if we want to use 1-4 Matrix
== Data flow ==
# Nagios server get servers status and store data into MySQL Database with XXXX plugin
# Perl script on Alix (PC Engine) is getting data from MySQL and transmit data by JSON to mbed (by USB).
# mbed get json's data from Alix and display to Led Matrix
# Led matrix display Servers status :-)
== Used componment ==
* 1 mbed NXP LPC1768 [http://mbed.org/handbook/mbed-Microcontroller]
* 2 RGB Led Matix (64x32) for display
* 1 ALix 2d13 for getting Nagios status and sending to MBED
== Hardware pieces listing (per matrix box)==
{| class="wikitable" style="text-align:center;"
|+
|-
! scope=col | Number
! scope=col | Description
! scope=col | Where to find
! scope=col | Price
! scope=col | Link
|-
|1
|5vdc 4A PSU
|Ebay
|10$
|
|-
|1
|SUB25 male connecor
|Digikey
|$
|-
|}
== Perl script on ALIX ==
This perl script is getting data form MySQL to send to mbed.
It run every minutes by cron.
=== Requiert Perl modules ===
* blah
* blah
* blah
=== Source code ===
The source code is accessible from there
== JSON data example ==
<pre>
{
"action": "insert",
"id":0,
"text": "server1.domain.ch",
"position_x": 10,
"position_y": 5,
"position_lenght": 78,
"scroll_speed": 255,
"red": 3,
"green": 0,
"blue": 2
}
</pre>
{| class="wikitable" style="text-align:center;"
|+
|-
! scope=col | Field
! scope=col | Value
! scope=col | Description
|-
|action
|string: insert,delete,modify
|used to insert,delete,modify data vector on mbed
|-
|id
|integer
|id of data to modify,delete
|-
|text
|string
|text to display
|-
|position_x
|integer
|X position of text area
|-
|position_y
|integer
|Y position of text area
|-
|position_lenght
|integer
|lenght of text area
|-
|scroll_speed
|integer 0-255
|scrolling speed
|-
|red
|integer 0-4
|RGB value
|-
|green
|integer 0-4
|RGB value
|-
|blue
|integer 0-4
|RGB value
|-
|}
== Special Thanks ==
Special thank to FIXME members who helped me with programmation and electronic stuff.
Specialy to :
* Simon for hadware design and mbed code improvement.
* Mathieu for discovering LED Matrix and explainition of how it work.
* Jean-Baptist,Raphael,Marc for there help with my newbies programmation questions.
* Florian for his help for leds PWM
== Project Owner ==
*Fred
== Current status ==
== Issues ==
== Pictures ==
The goal of this project is to display Nagios Server's status on RGB Led Matrix.
I have 4 Led Matrix, the idea is to create one box per matrix with 230V connector and Data IN/OUT
So we can decide if we want to use 1-4 Matrix
== Data flow ==
# Nagios server get servers status and store data into MySQL Database with XXXX plugin
# Perl script on Alix (PC Engine) is getting data from MySQL and transmit data by JSON to mbed (by USB).
# mbed get json's data from Alix and display to Led Matrix
# Led matrix display Servers status :-)
== Used componment ==
* 1 mbed NXP LPC1768 [http://mbed.org/handbook/mbed-Microcontroller]
* 2 RGB Led Matix (64x32) for display
* 1 ALix 2d13 for getting Nagios status and sending to MBED
== Hardware pieces listing (per matrix box)==
{| class="wikitable" style="text-align:center;"
|+
|-
! scope=col | Number
! scope=col | Description
! scope=col | Where to find
! scope=col | Price
! scope=col | Link
|-
|1
|5vdc 4A PSU
|Ebay
|10$
|
|-
|1
|SUB25 male connecor
|Digikey
|$
|-
|}
== Perl script on ALIX ==
This perl script is getting data form MySQL to send to mbed.
It run every minutes by cron.
=== Requiert Perl modules ===
* blah
* blah
* blah
=== Source code ===
The source code is accessible from there
== JSON data example ==
<pre>
{
"action": "insert",
"id":0,
"text": "server1.domain.ch",
"position_x": 10,
"position_y": 5,
"position_lenght": 78,
"scroll_speed": 255,
"red": 3,
"green": 0,
"blue": 2
}
</pre>
{| class="wikitable" style="text-align:center;"
|+
|-
! scope=col | Field
! scope=col | Value
! scope=col | Description
|-
|action
|string: insert,delete,modify
|used to insert,delete,modify data vector on mbed
|-
|id
|integer
|id of data to modify,delete
|-
|text
|string
|text to display
|-
|position_x
|integer
|X position of text area
|-
|position_y
|integer
|Y position of text area
|-
|position_lenght
|integer
|lenght of text area
|-
|scroll_speed
|integer 0-255
|scrolling speed
|-
|red
|integer 0-4
|RGB value
|-
|green
|integer 0-4
|RGB value
|-
|blue
|integer 0-4
|RGB value
|-
|}
== Special Thanks ==
Special thank to FIXME members who helped me with programmation and electronic stuff.
Specialy to :
* Simon for hadware design and mbed code improvement.
* Mathieu for discovering LED Matrix and explainition of how it work.
* Jean-Baptist,Raphael,Marc for there help with my newbies programmation questions.
* Florian for his help for leds PWM
== Project Owner ==
*Fred
== Current status ==
== Issues ==
== Pictures ==