Cerrado

Raspberry pi 3 with SDR and multimoNG script

Este projecto fue adjudicado a odessky por $150 USD.

Obtén cotizaciones gratis para un proyecto como este
Presupuesto de Proyecto
$30 - $250 USD
Ofertas Totales
7
Descripción del Proyecto

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.

Adjudicado a:

Buscando hacer algo de dinero?

  • Establece tu presupuesto y período de tiempo
  • Describe tu propuesta
  • Consigue pago por tu trabajo

Contrata Freelancers que también oferten en este proyecto

    • Forbes
    • The New York Times
    • Time
    • Wall Street Journal
    • Times Online