En curso

Raspberry pi 3 with SDR and multimoNG script

I am running one Riaspberry PI 3 with a SDR dongle and mulitmonNG.

The multimonNG is decoding POCSAG transmissions.

Se the source on github : [url removed, login to view]

When i get decoded message i need to send it to my email.

The code i am using with multimonNG is this:

#!/bin/bash

# Read line, time stamp line and log to date stamped file in /home/pi/poclog

# If any string in riclist array exist, mail line.

# (any string would be fine, like 'fire' or 'edsbyn', case sensitive)

# Copyright Copyleft

riclist=(

'1347568'

'1285427'

'1300008'

)

while IFS='' read -r line

do

# check for all strings in $riclist

double_filter="$double_filter"

double_filter2="$double_filter2"

double_filter3="$double_filter3"

double_filter4="$double_filter4"

count=0

while [ "${riclist[count]}" != "" ]

do

if [ "${line/${riclist[count]}}" != "$line" ] ; then # if $line minus first apperence of $riclist is diffrent from $line

if [ "${line##*Alpha: }" != "$double_filter4" ] ; then

double_filter4="$double_filter3"

if [ "${line##*Alpha: }" != "$double_filter3" ] ; then

double_filter3="$double_filter2"

if [ "${line##*Alpha: }" != "$double_filter2" ] ; then

double_filter2="$double_filter"

if [ "${line##*Alpha: }" != "$double_filter" ] ; then

echo "`date '+%T'`" "${line##*Alpha: }" | mail -s "`date '+%T'` Rtj"

# log to file, line start with time and logfile name ends with date

printf -v filename "/home/pi/rtjlogg/rtj`date +%Y_%m_%d`.log"

echo "`date '+%T'` ${line##*Alpha: }" >> $filename

double_filter="${line##*Alpha: }"

fi

fi

fi

fi

fi

count=$(( $count + 1 ))

done

done

---------------------------------------------------------------------------------

Your task will be to rewrite the script.

1) First i want to be able to reject specific ric-address or decoded text to be send to my email. And also add date and time in the email script.

2) After ha specific ric-address who will be decoded like = '1347568' i want to put a text line who will be sent after the decoded message.

3) Now the script is sending message with systemstag like this:

08:05:33 INFOLARM<LF>Gotl RAPS-1<LF><LF>Fardhem Prästgården 318<LF>I40N<LF>Röklukt - byggnad<LF>Publik lokal<LF><LF>Ärendenummer : : 8889831<LF>Ärende Id : 2<LF>

For tags like <LF> i want a linebrake instead. If decoded message contain tag <NULL> i want to erase this tag in the emailbody.

Habilidades: Programación en C, Linux, Raspberry Pi, Shell Script, Arquitectura de software

Ver más: an essay on the role of the egyptian youth do for society with a thesis statement the first task in academic writing, apache url rewrite script, shell script task, ikariam task scheduler script, plesk rewrite script, php mod rewrite download script, rewrite simple script, rewrite php script, php script rewrite, script mod rewrite, ikariam task schedule script, url rewrite php script, wordpress est template download, est male voice, est mod counter strike source, est ways earn money travel website, silver lite graphic design, common bash script admin task, converter xls para est, auto cad lite, script rewrite, online task list script, translate french est english, logo est, flash lite red5

Información del empleador:
( 7 comentarios ) Karlstad, Sweden

ID de proyecto: #12747516

Adjudicado a:

odessky

Hello! My name is Andrey. I'm from Odessa, Ukraine. I have right skills and great bash script experience for begin working on your project just right now! You may show good reviews at my profile https://www.freelancer. Más

$150 USD en 3 días
(193 comentarios)
6.7

5 los freelancers están ofertando un promedio de $169 para este trabajo.

$155 USD en 3 días
(3 comentarios)
1.9
rastanX

I'm a Linux/Unix expert working as system administrator. I write scripts for my own for many purposes. I haven't a raspberry pi setup as yours to test the script. In this case, your involvement and feedback will be req Más

$110 USD en 5 días
(1 comentario)
1.5
ahsandilawarr11

i am Assistant Technical manager of Sublime Enterprise . i have 5 year experience to work on microcontroller, PLC ,arduino e.t.c , i also design lots of industrial product . Design Pakistan's 1st RFID debit card syst Más

$155 USD en 3 días
(3 comentarios)
1.5
$277 USD en 10 días
(1 comentario)
1.2
FCEngineers

Hello, Before you select a part time developer from here, visit us for 5 minutes ([url removed, login to view]) And if you like what you see, contact us. That's all! "Why hire part time college students? when you can hire profe Más

$155 USD en 3 días
(0 comentarios)
0.0
FugaUSA

Hello, Before you select a part time developer from here, visit us for 5 minutes ([url removed, login to view]) And if you like what you see, contact us. That's all! "Why hire part time college students? when you can hire profe Más

$155 USD en 3 días
(0 comentarios)
0.0