This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alias: BirdNET Audio Data to CSV | |
description: Capture audio frequency data from BirdNET-Go MQTT and save to CSV | |
trigger: | |
- platform: mqtt | |
topic: birdnet-go/soundlevel | |
mode: queued | |
max: 10 | |
action: | |
- service: shell_command.save_audio_data_csv | |
data: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# extract data from JSON make it CSV | |
# made with claude.ai for Diego Lizcano | |
import json | |
import csv | |
import sys | |
from pathlib import Path | |
from datetime import datetime | |
def save_audio_data_to_csv(json_data): | |
# Parse the JSON |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"anytime" : [ | |
"Hey there sexy!", | |
"I hope your day is as nice as your face!", | |
"Have you been working out?", | |
"I'm lucky to be your mirror!", | |
"The Force is strong with you", | |
"If I could high five you... I would!", | |
"On a scale from 1 to 10, you're an 15!", | |
"Being awesome is hard, but you'll manage", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
########################## | |
## Ejemplo de una temporada (single season) | |
########################## | |
### Installar el paquete de "unmarked" | |
# install.packages("unmarked") | |
library(unmarked) | |
### Vamos a simular unos datos de observaciones de presencia/ausencia |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ejemplo<- data.frame(animal= c("perro", "gato", "pato", "anemona"), | |
peso= c(45, 10, 5, 0.5), | |
textura= c("pelo", "pelo", "pluma", "nematocisto")) | |
str(ejemplo) # ver esructura | |
ejemplo[1,2] # ver fila 1 columna2 | |
ejemplo$nueva <- ejemplo$peso / 2 # crear una columna nueva | |
dim(ejemplo) # dimensiones de mi data frame | |
colnames(ejemplo) # ver los nombres de las columnas |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#' flickrlist - Get metadata for items available on Flickr for the picture | |
#' @import XML | |
#' @import RCurl | |
#' @param apikey - API key provided by Flickr.com website. (Refer http://www.flickr.com/services/api/misc.api_keys.html for more details.) | |
#' @param picture_id - Test to search: ="17966004672" | |
#' @examples \dontrun{ | |
#' get_exif("05bdd790fdcd89f9344003e0f47d7c86","17966004672") | |
#' } | |
#' @export | |
get_exif <- function (apikey="05bdd790fdcd89f9344003e0f47d7c86", picture_id=NA){ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#------------------------------------------------------------------- | |
# Downloading all Flickr pictures for a set (album) | |
# Diego J. Lizcano, 2016 | |
# Modified from: Benedikt Koehler, 2013 | |
# @furukama | |
#------------------------------------------------------------------- | |
library(RCurl) | |
library(rjson) | |
library(dplyr) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<iframe width=620 height=300 frameborder="0" | |
src="http://dl.dropbox.com/u/7586336/RSS2012/line.html"> | |
Your browser does not support iframe | |
</iframe> |
NewerOlder