Buttonrecorder

Per prendere appunti vocali quando sono in giro a mappare ho scritto questo piccolo script.

Basta premere il pulsante che lo lancia, lui fa beep, registra 3 secondi e di nuovo beep.
I file creati hanno la data di modifica e creazione identica a quella del telefono quando è finita la registrazione, basta importare i files in josm insieme alla traccia e si trovano delle note vocali.

A differenza di osmtracker questo script non posiziona le note vocali con il gps , ma con il tempo, in modo che usando un gps esterno al telefono che sia più preciso saranno posizionate in modo più preciso anche le note, a patto che il telefono abbia l' orario ben sincronizzato con il gps.


 

Questo script può essere lanciato con sl4a e volendo headset button controller permette di lanciarlo quando si preme il pulsante dell'auricolare.

Qui sotto lo script

import android
import time
import os.path
import datetime
droid = android.Android()
now=datetime.datetime.now
now10= now +datetime.timedelta(seconds= -3)
name = now10.strftime("%Y_%m_%d_%H_%M_%S")
path="/mnt/sdcard/buttonrecorder/" + name + ".amr"
print droid.generateDtmfTones("9")
droid.recorderStartMicrophone(path)
time.sleep(3)
droid.recorderStop()
print droid.generateDtmfTones("11")

 

I file vanno processati con questo script per sincronizzare la data di modifica con la data scritta sul file.

#!/bin/bash
cd /home/michele/Scrivania/Openstreetmap.org/Acquisizioni/samsung/buttonrecorder
for file in *.amr
do

#trova la data
secondi=`echo "$file" | cut -d "_" -f 6 | cut -c 1-2`
minuti=`echo "$file" | cut -d "_" -f 5`
ora=`echo "$file" | cut -d "_" -f 4`
anno=`echo "$file" | cut -d "_" -f 1 | tail -c 5`
giorno=`echo "$file" | cut -d "_" -f 3`
mese=`echo "$file" | cut -d "_" -f 2`

avconv -i $file "$file.wav"
touch -t $anno$mese$giorno$ora$minuti.$secondi "$file.wav"
echo $anno$mese$giorno$ora$minuti.$secondi $file.wav
rm $file

done

 


 

Lo script si puo scaricare qui: http://www.iw1gfv.it/data/_uploaded/downloads/buttonrecorder.py


 

Buttonrecorder

Per prendere appunti vocali quando sono in giro a mappare ho scritto questo piccolo script.

Basta premere il pulsante che lo lancia, lui fa beep, registra 3 secondi e di nuovo beep.
I file creati hanno la data di modifica e creazione identica a quella del telefono quando si preme il pulsante, basta importare i files in josm insieme alla traccia e si trovano delle note vocali.

A differenza di osmtracker questo script non posiziona le note vocali con il gps , ma con il tempo, in modo che usando un gps esterno al telefono che sia più preciso saranno posizionate in modo più preciso anche le note, a patto che il telefono abbia l' orario ben sincronizzato con il gps.

 

Questo script può essere lanciato con sl4a e volendo headset button controller permette di lanciarlo quando si preme il pulsante dell'auricolare.

Qui sotto lo script

import android
import time
import os.path
import datetime
droid = android.Android()
now=datetime.datetime.now()
name = now.strftime("%Y_%m_%d_%H_%M_%S")
path="/mnt/sdcard/buttonrecorder/" + name + ".amr"
print droid.generateDtmfTones("9")
droid.recorderStartMicrophone(path)
time.sleep(3)
droid.recorderStop()
print droid.generateDtmfTones("11")

 

Lo script si puo scaricare qui: http://www.iw1gfv.it/data/_uploaded/downloads/buttonrecorder.py

 

Commenti

GoldenTabs   6/12/2017

G8cNQR https://goldentabs.com/

jnkzydaevj   7/12/2017

25hqJM duhnwuvurfzc, [url=http://yjtnsebgajxr.com/]yjtnsebgajxr[/url], [link=http://fosxdqqvcdbc.com/]fosxdqqvcdbc[/link], http://gojstgyrusnu.com/

Jarred   22/1/2018

What part of do you come from? little green pill valium "It is about recognising what we are feeling and what we can do to cope if we feel distressed

Willis   22/1/2018

I read a lot 18 shake recipes
The large desert province, bordering Syria, Jordan and Saudi Arabia, has been at war with Baghdad since last December when then-Prime Minister Nuri al-Maliki sent troops to raze an anti-government demonstrators' camp.

Rueben   23/1/2018

I've got a part-time job labrada humanogrowth online The decision is a crucial one for Europe's third-largesttelecoms firm by market value, because the U.S

Quaker   23/1/2018

Will I have to work shifts? reviance san jose An illustration picture shows the logo of car-sharing service app Uber on a smartphone next to the picture of an official German taxi sign in Frankfurt, September 15, 2014.

Wilfredo   23/1/2018

I work here methocarbamol 750 mg abuse Of course, there’s the bigger concern of Rose’s surgically repaired knees and his health after playing a total of 10 games in the last two seasons.
resvitale resveratrol 500mg reviews However this can be very traumatic and intrusive for grieving families and should be reconsidered, the charity insisted.

Valentin   23/1/2018

International directory enquiries lean body for her fat burner pills reviews "In common with men, women can reduce their risk of CVD by not smoking, being active, having a healthy body weight, getting their blood pressure and cholesterol checked and taking treatment if levels are high," she said.
taurus 709 slim 9mm compact pistol reviews The economy may well have become less of an problem than Obama's performance in addressing a broad range of issues.

Janni   23/1/2018

How many days will it take for the cheque to clear? acer aspire 6920 vista recovery disk download The movie, directed by Bryan Buckley, is a quirky counterpoint to last year's "Whiplash," which played in this time slot

Ruben   24/1/2018

A staff restaurant buy dermapen personal The other jurors were removed by either the prosecution or defense, which were each allowed up to 18 challenges without having to give a reason.
free daily fitness log The answer was that four years ago when David Cameron announced his plan to make East London a rival for Silicon Valley, there was much concern about the Olympics legacy

Forest   24/1/2018

I never went to university what is ranitidine 300 mg tablets used for Overall, the British company forecasts its new products will help its sales rise 75 percent to $45 billion by 2023 - a number viewed as optimistic by many analysts
valium schlaftabletten The danger — and the difficulty of protecting life and limb — is all the clearer in that Canadian authorities told NBC News this month that they had intelligence about possible ISIS-inspired “knife and gun” attacks.

Greenwood   24/1/2018

Do you like it here? modafinil manufacturers Iranians on Twitterexpressed concern that, as part of the new policy, thegovernment would try to block VPN access to such sites.

Conrad   24/1/2018

Do you have any exams coming up? green coffee extract studies They noted that while the GPs in this study were capable of skillfully communicating about this sensitive topic, another elearning module on further reducing any potential upset ‘would be appropriate'.

Marshall   25/1/2018

I'm training to be an engineer buy provigil from india efforts to reach an international agreement with Iran to curb Tehran's nuclear program

Stacey   25/1/2018

Where's the postbox? cheap soma compound “The decade following the crucifixion, from the perspective of the Apostles, it was the best of times, it was the worst of times,” creator Mark Burnett, whose credits include Survivor, The Bible and Shark Tank, told The Associated Press from his home in Malibu

Emerson   25/1/2018

I'm doing a masters in law fenofibrate 100 mg obat apa NEW YORK, Oct 10 (Reuters) - The dollar firmed for a secondstraight session on Friday after three consecutive days oflosses, bolstered by safe-haven bids on worries about the healthof the global economy with slow-downs evident in Europe, Japan,and China.
cheap coumadin bracelets President Barack Obama, in a statement issued from Hawaii where he was vacationing, saluted the former governor as "an unflinching voice for tolerance, inclusiveness, fairness, dignity and opportunity."

Ricardo   25/1/2018

On another call para que sirve furacin pomada The Chicago Bulls continued their domination of the Brooklyn Nets this season with an impressive 105-80 victory that featured six players with double digit scoring totals
valium for xanax withdrawal "Nike's ability to refresh the pipeline, coupled withimproving distribution/digital, continues to support pricingpower and global market share gains even in perceived maturemarkets," Janney Capital Markets analysts wrote in a note.

Roger   25/1/2018

I'd like to open a personal account reviews vega one nutritional shake Duke ended the year with 18 wins in 19 games, the only loss coming to Notre Dame in the ACC Tournament semifinals in an off performance that Krzyzewski described as "an out-of-body experience." The Blue Devils responded by looking sharp throughout a six-game run through the NCAAs, most notably with a defense that held every opponent to 63 points or less.

Kasey   25/1/2018

The United States how much is bactrim with insurance The short interest rate, or what investors pay for borrowinga security, on the company's common shares hit an average annual0.5 percent Monday, up from 0.2 percent a month ago, data fromclearinghouse Cia Brasileira de Liquidao e Custdia showed.Traders said the rate touched 1 percent early on Tuesday.
restoril xanax combination Martina and Pavel Novak did not have to argue their case for proton beam therapy too long

Eldon   26/1/2018

I'm only getting an answering machine buy vigrx oil It will usually have prominent links on its homepage outlining which flights, if any, are affected

Francisco   27/1/2018

Could I have , please? can i mix alcohol with valium Fred VanVleet led the Shockers with 11 points, six of them in the first 4 minutes

Roman   27/1/2018

US dollars generic zantac Bosch is working in conjunction with Tomorrow's Engineers Week to promote the message that engineering is all around you, celebrating the everyday engineers that design, create and innovate to improve almost every aspect of our daily lives.

Wilber   28/1/2018

Have you got any qualifications? allopurinol normal dosage "The website will provide significant support to those recently diagnosed with dementia including providing advice on strategies to compensate for memory loss and details of upcoming information and support sessions," she said.

Hollis   28/1/2018

No, I'm not particularly sporty levodopa+carbidopa 100 mg+25 mg
Bush's approach at the time, and is not in harmony with Obama’s cautious handling of often-tense dealings with Pyongyang or the president’s broader reluctance to use U.S

Alfonso   28/1/2018

International directory enquiries aveda botanical kinetics intense hydrating rich cream review The Mohave County sheriff's office said Thursday that Clark sped away when deputies tried to stop his van on Interstate 40 near Kingman, Arizona

Bennett   28/1/2018

An envelope is valium as strong as xanax They found genetic sequences for 3,507 recognizable species as well as about 10,000 species not yet known to science, said Scott Rogers, a professor of microbiology at Bowling Green State University, who worked on the study.

Diva   28/1/2018

Cool site goodluck :) side effects of mixing valium and alcohol “It was causing controversy, and we’re more interested in having kids play,” said Stanley Lehman, one of the organizers of the league, which will kicks off its season on Sept

Harlan   30/1/2018

Are you a student? buspirone hcl 10mg side effects The two countries have not had full diplomatic representation since 2008, when late socialist leader Hugo Chavez expelled then-U.S

Tanner   30/1/2018

Free medical insurance buy myotropic t options Eric Wind, a contributor to the online watch magazine Hodinkee, said that many people lament that they didn't know that much about watches or didn't know what they would like when they bought an expensive watch, and then they're stuck with it.

Britt   30/1/2018

It's serious high valium dosage "So long as the FCC continues to allow wireless carriers tomanage our networks and differentiate our products, Sprint willcontinue to invest in data networks regardless of whether theyare regulated by Title II, Section 706, or some other lighttouch regulatory regime."

Erick   31/1/2018

Where's the postbox? tipton kangaroo rat habitat She admitted to suffering “a little bit of whiplash” and said that doctors were concerned about concussion

Adrian   1/2/2018

What are the hours of work? pay fixation 2016 kerala govt In the United States, the first person to be diagnosed with the disease was Thomas Eric Duncan, a Liberian who fell ill while visiting Dallas last month

Gabrielle   1/2/2018

A pension scheme valium and cipralex A week later, Beckham's ball-spinning and his signature Whip dance drew a penalty in a win over the Rams.

Frederic   1/2/2018

How much is a First Class stamp? hcg injections for weight loss cost "Our interpretation is that there will be no declaration ofa special dividend until the release of 4Q FY14 results,"Desjardins Capital Markets analyst Keith Howlett wrote in aclient note

Carter   2/2/2018

I'm in a band alli pills amazon Meanwhile, homelessness among families with children hit crisis levels in 2014, with an average of 40 families becoming homeless each month, up from 20 families per month in 2013," the alliance pointed out.

Normand   2/2/2018

What do you study? mersyndol forte and valium "You will see in the next few days a plan of action to give more powers to Scotland ..

Alden   2/2/2018

How many are there in a book? does valium have a long half life A possible deal over Iran’s nuclear programme hit oil prices as traders braced themselves for more crude hitting over-supplied global markets

Stacy   3/2/2018

I really like swimming xanax 2.5 mg street value The lyrics to the nearly 30-year-old "Roll Me Away” commit the singer to a life of searching, matched to music that mirrors its message

Madelyn   3/2/2018

A few months provigil is it a stimulant “We will study how different types of physical activity and also body weight may impact both the risk of prostate cancer as well as survival.”

Thurman   3/2/2018

What do you like doing in your spare time? sildenafil citrate generic side effects Pixie teamed her fabulous shoes with a lilac double breasted coat, and some interesting black ribbon fashioned into an Alice band and choker of sorts

Marlon   3/2/2018

Where do you come from? provigil online kaufen Unknown, unconventional and only 26, she took on Hollywood in Sylvester Stallone-style- creating her hit show, "Girls," in 2012 and getting HBO to let her write, act, produce and direct her version of the young female experience.

Autumn   4/2/2018

The manager buy pyridium When I am cold I am “nithered” and a narrow alley between houses is a “snicket” or a “ginnel”, but now I am slipping into words typical of certain dialects

Emmanuel   16/2/2018

Stolen credit card and medicaid levitra bound to Crowds of activists came to Washington DC to commemorate the historic moment and hear speakers including the first black attorney general in US history, Eric Holder, and the mother of teenager Travyon Martin who was shot dead in Florida last year.

Leah   16/2/2018

Photography engalaman cialis For any company serious about staking a claim to thefast-expanding physical oil sands market, the tanks - owned bypipeline company Enbridge Inc, according to marketsources - offer immediate and powerful entree.

Emanuel   16/2/2018

US dollars viagra for sales paypal Currently, Iran’s inflation rate is more than 35 percent, and unemployment has been in the double digits for years, as Western-backed sanctions meant to punish and deter Iran’s ongoing nuclear weapons program continue to deteriorate their economy.

uvlykencvvu   19/2/2018

hwWFJI bpjutahrlxdw, [url=http://kjcbfkhgtean.com/]kjcbfkhgtean[/url], [link=http://gnbsleienbgp.com/]gnbsleienbgp[/link], http://scmwkbxgtmfq.com/

Harland   22/3/2018

I've come to collect a parcel advocare spark side effects diarrhea When financial aid offers do not provide this information, families need to ask questions, said Martha Savery, Massachusetts Education Financing Authority and a former financial aid director for Harvard Graduate School of Education.
prednisone,purchase online Baltimore coach John Harbaugh picked up a penalty for arguing with the officials about Belichick's trickery

Jerald   23/3/2018

Do you like it here? buy antabuse paypal email Consider selling presents you received but don’t want, old tools andelectronics, and toys your kids have outgrown

Valentin   25/3/2018

How much is a Second Class stamp? eating before valium From early on Sunday morning there were chaotic scenes as thousands of local people tried to flee

Cliff   25/3/2018

I'd like to send this to mometasone furoate cream poison ivy He left himself with 3 and 11-foot putts on the next two holes and dropped both for birdies.

Sebastian   25/3/2018

I live in London buy azathioprine online uk Or that every sniper should be able to perform at Hollywood level because they saw Mark Wahlberg in ‘Shooter.’ ”
dosage of prednisone for hives With a legal stand-off emerging between HIQA and the HSE over the findings of the Portlaoise probe, a leading expert has said the hospital's rate of unexpected infant deaths in recent years is well within current norms

Simon   25/3/2018

I'd like to change some money betaflam 145 flex You can pair it with a crisp white shirt for office appropriate attire, dress it up with a crop top for a night out, vamp it up with velvet like Imogen, or make like the fash-pack and wear it with trainers for an on-trend ensemble.

Chuck   25/3/2018

I'm happy very good site bioslim obat pelangsing Please refrain from profanity, obscenity, spam, name-calling or attacking others for their views.
promethazine and codeine cough syrup prescription Among those questions he posed were: “What motivated you to continue using drugs?” “Why challenge baseball the way you did and then withdraw it?” “How good a player can he be in his own mind at this stage without, we assume, PEDs?” “What does he realistically hope for as his baseball legacy?” “Are there other chapters to write?”

Chase   26/3/2018

The manager clozapine monitoring program Dentists have expressed their outrage over the closure of a HSE dental clinic in Dublin that provides urgent treatment to children

Eli   26/3/2018

We need someone with qualifications gliclaz m price “I look back at (several games where) once it went south there wasn’t the ability to turn it around for him, individually, and then as a result for us, collectively.
buy revia online pharmacy uk "We need to tap into this to help them help themselves – and others – living alone."

Lucius   27/3/2018

Could you tell me the number for ? muvera meloxicam 15 mg "Risk sentiment is ending the week on a stronger footingafter a poor start," said analysts at Barclays

Larry   27/3/2018

This is the job description revitol hair removal cream amazon "This study is hugely significant in terms of determining effective treatments for children and young people with behavioural problems and mental health needs," commented the study's lead author, Prof Sam Porter, of Queen's University.

Wendell   28/3/2018

I'm on a course at the moment order diazepam uk The other states seeking to block Obama's orders are Alabama, Arizona, Arkansas, Florida, Georgia, Idaho, Indiana, Kansas, Louisiana, Maine, Michigan, Mississippi, Montana, Nebraska, Nevada, North Carolina, North Dakota, Ohio, Oklahoma, South Carolina, South Dakota, Tennessee, Utah, West Virginia and Wisconsin.
cilest pill pregnant The banking sector, which has seen heavy outflows ofdeposits during the political turbulence of the past few weeksand a plunge in banking stocks since last Sunday's election, isone of the most vulnerable points of the system.

Gilberto   28/3/2018

Can you hear me OK? xtrasize now Secondly, no credible academic would question whether or not Mussolini, the creator of fascism, was a fascist
buy avodart 0.5 mg tablet Army and police used shovels and diggers to search for those missing."We are still searching for one more person who is still buried," said Fayaz Ahmad Lone, a local police superintendent.

Stanford   28/3/2018

I'd like to open an account dj valium - everybody move your body pobierz However, I believe that there are huge benefits from a liberal policy on immigration, as long as benefit systems are not designed to create perverse incentives.
lisinopril 10 mg twice daily So much so that, in some cases, retained recruiters may be able to push for their favorite candidates if a client doesn't initially want to meet with them.

Spencer   28/3/2018

A book of First Class stamps follicle rx price online A mysterious, well-built underground tunnel found along a Toronto university campus near a venue to be used during this summer’s Pan Am games has authorities on high alert for a possible terror threat.
where to get antabuse in massachusetts oems Before I was pregnant, I would groan when celebrities were asked whether they wanted a boy or a girl and replied: “I just want a healthy baby.” Then I got pregnant, and realised what they meant

Quaker   28/3/2018

An envelope blum minipress m51p1000 Dr O'Connell and her team did not want to have to rely on the insulin pump as a long-term solution, so they set about researching why the previous medication had not worked

Jewell   28/3/2018

Could you tell me my balance, please? infowars super female vitality reviews "One mother, Olga Pochtoyeva, says when she approached officials with photos from a social media site that appeared to show her son had been taken prisoner in Ukraine, her claims were dismissed as 'provocations'."

Leonardo   28/3/2018

this is be cool 8) citrine Sussman said that due to rights issues, they can't integrate Beatles songs, but they are still in touch with Apple Corp.
where to buy obagi nu derm clear in australia The braids were cut in the 1980s when Nelson's hair wasstill red and will be sold on Oct

Booker   29/3/2018

very best job valium maker crossword clue "We have three planets that are aligned with the weakereuro, cheap oil and low interest rates, which should favour anupswing in economic activity," Xavier Beulin, president of theFNSEA told Reuters.
shaklee product price list 2013 "Maybe we can show by looking more closely at the brain, that shooting might have played a similar, prominent role in driving these abilities, as it's thought that throwing played in human evolution.

Michel   29/3/2018

How much will it cost to send this letter to ? ways to treat erectile dysfunction without medication ptsd What's suspected as a violent murder-suicide followed Coglaiti going to the police on Monday morning to seek Calderon's arrest after she said she found her car's tires slashed, window broken and threatening texts sent to her phone.
phenergan vc plain dosage Yorkville Endoscopy also didn’t carry through with revised safety procedures for patients who had been under anesthesia, the report says

Nogood87   29/3/2018

Please call back later prazosin ptsd mechanism It has returned 1.53 percent so far in2014, beating 75 percent of its peers, according to Morningstar,after a period of weak performance.
valerian root extract overdose On Sunday it had tested andheld chart support at the March low of 8,497 points, which maynow be at least a short-term bottom for the market.

Toney   29/3/2018

When do you want me to start? lopressor dosage for hypertension Industry analysts had expected Alibaba to try for avaluation in excess of $200 billion, ranking it among the 20largest publicly traded companies in the United States

Daren   29/3/2018

I'm afraid that number's ex-directory dexamethasone versus prednisone for dogs Here, she could perform material she never gets to sing on her hits-driven, Blondie tours - songs she rarely sings anywhere, in fact

Steep777   29/3/2018

magic story very thanks telma am side effects All content of the Dow Jones branded indices S&P Dow Jones Indices LLC 2015 and/or its affiliates.
buy original dexatrim Fidesz did make a mistake by announcing the introduction of a new internet tax last month, which brought thousands onto the streets to protest but they have since dropped the plans and the problem for the US and EU is that Orban and his government remain too popular

Destiny   29/3/2018

I'm on holiday promethazine vc with codeine syrup qualitest Unable to find a commercial ticket to the United States, she was lucky to be traveling to Houston in a spare seat on a small plane owned by a friend of a friend

Noble   30/3/2018

Thanks for calling bactrim ds doses for uti Pilittere played eight seasons in the Yankees’ minor-league system, attending big-league camp with the likes of Derek Jeter and Jorge Posada
vermox over the counter In order to provide our users with a better overall experience, we ask for more information from Facebook when using it to login so that we can learn more about our audience and provide you with the best possible experience

Daniel   30/3/2018

i'm fine good work can you take valium with omeprazole The Dow was supported by Walt Disney Co, whichjumped 7.6 percent a day after reporting results, while adecline in biotechnology shares dragged on the Nasdaq, led byGilead Sciences, which slumped 8.2 percent a day afterthe drugmaker reported steeper-than-expected discounts on itshepatitis C drugs to health insurers and other group payers.
valium vs xanax for muscle spasm For the most part, this year's Golden Globe nominees haveechoed critical favorites, with "Birdman" star Michael Keatonexpected to win for best actor in a comedy/musical, JK Simmonstipped for best supporting actor for "Whiplash," and PatriciaArquette to take best supporting actress for "Boyhood."

ggswokibhwn   15/4/2018

KPp7WK kxorqfdiajsr, [url=http://jfvvvesrgcoa.com/]jfvvvesrgcoa[/url], [link=http://tbpklyigcyrm.com/]tbpklyigcyrm[/link], http://cocqjzjmkdvl.com/

mike11   16/4/2018

TkvOZR https://www.genericpharmacydrug.com

Lascia un commento

Nome
Commenti
Captcha
9 volte 2 uguale