#!/usr/bin/php
<?php

$porta = @$argv[1];
$tipo = @$argv[2];

$pathvoz="/home/streaming/previsao_tempo/$tipo/";
$ext = 'HUM0';
if($tipo=='temperatura'){
	$ext = 'TMP0';
}

$file = @file_get_contents("http://DOMINIO_PAINEL/funcoes-ajax/carregar_previsao_tempo/".$porta."/".$tipo."");

echo $pathvoz.$ext.$file.".mp3";

?>
