Find Jobs
Hire Freelancers

Shell Scripting on Raspberry PI

$30-250 AUD

Teljesítve
Kiadva ekkor: több mint 5 évvel ezelőtt

$30-250 AUD

Teljesítéskor fizetve
Consider the leds (the little lights) on your raspberry pi. These lights can be changed by sending messages to the device about how to behave. The first script you are to write (which you must decompose into smaller scripts/functions) is to allow a user of your script to manipulate the leds on your pi. When the script starts up, it will scan the contents of /sys/class/leds to get a list of the leds on the system (each link in this directory points to a directory for the settings of that led). The two files we are interested in are “brightness” and “trigger”. The scripting tasks: Each of these scripting tasks must be in a separate function. It should have a sensible name to streamline maintainability (task1, task2, etc will be marked down) and should follow standard conventions such as paths to executables specified in variables at the top of the script, functions should only reference local variables UNLESS they represent shared state in the program (hardly any of these should so you need to make a case as to why you have done this in your README if you have). You are required to check for errors after each command you enter and capture any output text into a variable. You should then output error messages in a reasonable format such as “This operation has failed:” followed by the error message that was output by the command. You are required to disable the control-c interupt of the script and the script should handle any requests to quit gracefully. You should opt in all cases for the calling of programs to do work for you rather than performing operations in your script. For the purpose of these tasks you must restrict yourself to standard UNIX utilities. Note that all submitted scripts must use bash and must specify the interpreter at the top of the script. Task 2: Script launch (8 marks) On start of your script it should read the contents of the /sys/class/leds directory and present a menu for your program. An example run of your program should look like: Welcome to Led_Konfigurator! ============================ Please select an led to configure: 1. input0::capslock 2. input0::numlock 3. input0::scrolllock 4. input4::capslock 5. input4::numlock 6. input4::scrolllock 7. led0 8. led1 9. Quit Please enter a number (1-9) for the led to configure or quit: Please note that hardcoding this menu will get you 0 marks. It must be generated from the contents of the /sys/class/leds directory. Task 3: LED Manipulation Menu (10 Marks) Create a function that will display a menu of options for any led selected which shall look like the following: [LED NAME] <-- replace this name with the actual name of the led. ========== What would you like to do with this led? 1) turn on 2) turn off 3) associate with a system event 4) associate with the performance of a process 5) stop association with a process’ performance 6) quit to main menu Please enter a number (1-6) for your choice: Task 4: Turn on and off the led (4 Marks) The “turn on” command above echoes 1 into the brightness file for the respective led and the “turn off” command echoes 0 into the brightness file. Task 5: Associate LED with a system event (10 Marks) The associate with a system event menu will list the events from the trigger file with a * next to the currently selected event. So the menu for that option would look like (next page): Please note that if the options on the menu scroll off the screen, you are required to page the menu with more. Please note that hard coding this menu will get you 0 marks. It must be dynamically generated from the contents of the trigger file. Program Documentation, All functions must be appropriately comments with a header comment for each function describing parameters and the expected outcome of the function. There must be a reasonable number of comments in your program so that it is clear what you intention is. Also, you must provide a readme file that explains how we can use your program
Projektazonosító: 17937771

A projektről

6 ajánlat
Távolról teljesíthető projekt
Aktiválva: 6 évvel ezelőtt

Szeretne pénzt keresni?

A Freelancer oldalán történő árajánlatadás előnyei

Határozzon meg költségvetést és időkeretet
Kapja meg fizetését a munkáért
Vázolja ajánlatát
Ingyen regisztrálhat és adhat árajánlatot munkákra
Neki odaítélve:
Felhasználó avatár
I have done Bash menus, and will write the script with very high quality - functions, comments, local variables, etc.
$100 AUD 1 napon belül
4,9 (308 értékelés)
6,9
6,9
6 szabadúszó adott átlagosan $165 AUD összegű árajánlatot erre a munkára
Felhasználó avatár
Dear Employer, How are you? As you can see in my profile, I have great experience in C/C++, C#, and Java programming as well as Microcontroller. Especially, I have completed many Raspberry Pi and Arduino projects and have these boards in my hand now. I would like to discuss your project and get what you need. Please give me your details, then I will provide best solution for you. Thanks
$155 AUD 3 napon belül
4,9 (73 értékelés)
7,4
7,4
Felhasználó avatár
https://www.freelancer.com/projects/php/Temperature-monitoring-tool-for-toy/ https://www.freelancer.com/projects/php/License-Plate-Detection-With-Chinese/ done the similar jobs lets chat
$294 AUD 3 napon belül
4,9 (42 értékelés)
6,5
6,5
Felhasználó avatár
Hello, Looks like an interesting project in shell script. You can refer my profile and if interested please contact me. I can share my previous works on shell scripts or you can find the reviews here. I need access to your Pi device occasionally to do the program (teamviewer or any other s/w will do) to setup the program and do the testing. Let me know if interested. Thank you
$100 AUD 3 napon belül
5,0 (42 értékelés)
5,1
5,1
Felhasználó avatár
I have worked on scripts like this a bit when developing test/build systems for various projects. I may need a few days to get my hands on a PI but after that, I can deliver the code to you for in a day. This small task is a bit out of my usual work but it seems interesting. - Raspberry PI version?
$230 AUD 10 napon belül
0,0 (0 értékelés)
0,0
0,0
Felhasználó avatár
I've been a systems and software engineer for nearly a decade. I write shell scripts in many different scripting languages, in a large corporate environment, every day. Bash is currently one of my strongest and most enjoyable languages to script in. My scripts tend follow the modern bash approach and are, in my opinion, very easy to read and follow. I believe that I would offer a level of quality that other freelancers are unable to, not only due to my years of experience, but also the fact that I love bash. Thank you for your time and consideration.
$111 AUD 1 napon belül
0,0 (0 értékelés)
0,0
0,0

Az ügyfélről

AUSTRALIA zászlója
Richmond, Australia
4,8
6
Fizetési mód hitelesítve
Tagság kezdete: máj. 29, 2016

Ügyfél-hitelesítés

Köszönjük! E-mailben elküldtük a linket, melyen átveheti ajándék egyenlegét.
E-mailje elküldése során valami hiba történt. Kérjük, próbálja újra.
Regisztrált Felhasználók Összes Közzétett Munka
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Előnézet betöltése
Hozzáférést adott a helymeghatározáshoz.
Belépési munkamenete lejárt, és kijelentkeztettük. Kérjük, lépjen be újra.