MythTV  0.27pre
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Groups Pages
Functions | Variables
envcan.pl File Reference

Go to the source code of this file.

Functions

use lib dirname (abs_path($0 or $PROGRAM_NAME))
 our ($opt_v, $opt_t, $opt_T, $opt_l, $opt_u, $opt_d)
 getopts ('Tvtlu:d:')
 if (defined $opt_v)
 if (!(defined $opt_u &&defined $loc &&!$loc eq""))
 if (open(CACHE,"$dir/envcan_$loc"))
 close (CACHE)
 if ($getData)

Variables

use strict
use warnings
use English
use Cwd abs_path
use lib usr share mythtv
mythweather scripts 
ca_envcan
use ENVCANLocation
use ENVCANParser
my $name = 'ENVCAN'
my $version = 0.5
my $author = 'Joe Ripley / Gavin Hurlbut'
my $email = 'vitaminjoe@gmail.com / gjhurlbu@gmail.com'
my $updateTimeout = 15*60
my $retrieveTimeout = 30
my types
my $dir = "./"
my $loc = shift
my $units = $opt_u
my $creationdate
my $nextupdate
my results
my $getData = 1
$results copyrightlogo = "none"

Function Documentation

use lib dirname ( abs_path($0 or $PROGRAM_NAME)  )
our (   $opt_v,
  $opt_t,
  $opt_T,
  $opt_l,
  $opt_u,
  $opt_d 
)
getopts ( 'Tvtlu:d:'  )
if ( defined  $opt_v)

Definition at line 52 of file envcan.pl.

if ( defined $opt_u &&defined $loc &&!$loc eq"")

Definition at line 90 of file envcan.pl.

if ( open(CACHE,"$dir/envcan_$loc")  )

Definition at line 101 of file envcan.pl.

close ( CACHE  )

Referenced by cc_close(), DeleteHandler::Close(), DVBPIDInfo::Close(), AudioInputOSS::Close(), ImportRecorder::Close(), V4LChannel::Close(), ASIStreamHandler::Close(), DVBChannel::Close(), AudioOutputOSS::CloseDevice(), MythMediaDevice::closeDevice(), DeviceReadBuffer::ClosePipes(), V4LRecorder::CloseVBIDevice(), cCiHandler::CreateCiHandler(), createTempFile(), MediaMonitorUnix::deleteLater(), GLSingleView::DisplayNext(), GLSingleView::DisplayPrev(), NuppelVideoRecorder::DoMJPEG(), MythDialog::done(), MainServer::DoTruncateThread(), NuppelVideoRecorder::DoV4L1(), NuppelVideoRecorder::DoV4L2(), DVBCam::DVBCam(), DVDOpen(), GLSingleView::EffectKenBurns(), FIFOWriter::FIFOWriteThread(), VideoDevice::fillSelectionsFromDir(), VBIDevice::fillSelectionsFromDir(), MythSystemLegacyUnix::Fork(), AudioOutputOSS::GetOutputSettings(), if(), LIRC::Init(), ZMServer::initMonitor(), lirc_deinit(), lirc_freeconfig(), lirc_init(), lirc_readconfig(), FileLogger::logmsg(), main(), NuppelVideoRecorder::MJPEGInit(), mythfile_close(), DVBPIDInfo::Open(), DVBChannel::Open(), MainServer::OpenAndUnlink(), AudioOutputOSS::OpenDevice(), FileRingBuffer::OpenFile(), MpegRecorder::OpenV4L2DeviceAsInput(), V4LRecorder::OpenVBIDevice(), V4LConfigurationGroup::probeCard(), MPEGConfigurationGroup::probeCard(), HDPVRConfigurationGroup::probeCard(), CardUtil::ProbeDVBFrontendName(), CardUtil::ProbeDVBType(), CardUtil::ProbeV4LAudioInputs(), CardUtil::ProbeV4LVideoInputs(), DeleteThread::ProcessNew(), ThreadedFileWriter::ReOpen(), FileLogger::reopen(), MpegRecorder::run(), DVBStreamHandler::RunTS(), MythCDROMDarwin::setDeviceSpeed(), MythCDROMLinux::setDeviceSpeed(), MpegRecorder::StopEncoding(), DVBStreamHandler::SupportsTSMonitoring(), MpegRecorder::TeardownAll(), MainServer::TruncateAndClose(), vbi_close(), vbi_open(), AudioOutputOSS::VolumeCleanup(), MPEG2fixup::WriteData(), MPEG2fixup::WriteYUV(), cHlCiHandler::~cHlCiHandler(), cLlCiHandler::~cLlCiHandler(), DRMVideoSync::~DRMVideoSync(), FileLogger::~FileLogger(), FileRingBuffer::~FileRingBuffer(), JoystickMenuThread::~JoystickMenuThread(), NuppelVideoRecorder::~NuppelVideoRecorder(), RTCVideoSync::~RTCVideoSync(), SignalHandler::~SignalHandler(), ThreadedFileWriter::~ThreadedFileWriter(), and ZMServer::~ZMServer().

if (   $getData)

Definition at line 114 of file envcan.pl.

Variable Documentation

use strict

Definition at line 10 of file envcan.pl.

use warnings

Definition at line 11 of file envcan.pl.

use English

Definition at line 13 of file envcan.pl.

use Cwd abs_path

Definition at line 15 of file envcan.pl.

use lib usr share mythtv mythweather scripts usr local share mythtv mythweather scripts ca_envcan

Definition at line 17 of file envcan.pl.

use ENVCANLocation

Definition at line 23 of file envcan.pl.

use ENVCANParser

Definition at line 24 of file envcan.pl.

my $name = 'ENVCAN'

Definition at line 29 of file envcan.pl.

my $version = 0.5

Definition at line 30 of file envcan.pl.

my $author = 'Joe Ripley / Gavin Hurlbut'

Definition at line 31 of file envcan.pl.

my $email = 'vitaminjoe@gmail.com / gjhurlbu@gmail.com'

Definition at line 32 of file envcan.pl.

my $updateTimeout = 15*60

Definition at line 33 of file envcan.pl.

my $retrieveTimeout = 30

Definition at line 34 of file envcan.pl.

my types
Initial value:
('cclocation', 'station_id', 'copyright',
'observation_time', 'observation_time_rfc822', 'weather',
'temp', 'relative_humidity',
'wind_dir', 'wind_degrees', 'wind_speed', 'wind_gust',
'pressure', 'dewpoint', 'heat_index', 'windchill',
'visibility', 'weather_icon', 'appt', 'wind_spdgst',
'3dlocation', '6dlocation', 'date-0', 'icon-0', 'low-0', 'high-0',
'date-1', 'icon-1', 'low-1', 'high-1',
'date-2', 'icon-2', 'low-2', 'high-2', 'updatetime',
'date-3', 'icon-3', 'low-3', 'high-3',
'date-4', 'icon-4', 'low-4', 'high-4',
'date-5', 'icon-5', 'low-5', 'high-5', 'copyrightlogo' )

Definition at line 35 of file envcan.pl.

Referenced by MPEGStreamData::CreatePMTSingleProgram(), ScreenSetup::doListSelect(), SourceUtil::GetConnectionCount(), MethodInfo::Invoke(), SourceUtil::IsEncoder(), SourceUtil::IsProperlyConnected(), SourceUtil::IsUnscanable(), ScreenSetup::loadData(), WeatherSource::ProbeTypes(), DTVChannel::SetChannelByString(), and WeatherScreen::WeatherScreen().

my $dir = "./"

Definition at line 48 of file envcan.pl.

Referenced by $line().

my $loc = shift

Definition at line 89 of file envcan.pl.

Referenced by if().

my $units = $opt_u

Definition at line 94 of file envcan.pl.

Referenced by $node().

my $creationdate

Definition at line 97 of file envcan.pl.

Referenced by if().

my $nextupdate

Definition at line 98 of file envcan.pl.

Referenced by if().

my results
my $getData = 1

Definition at line 100 of file envcan.pl.

$results copyrightlogo = "none"

Definition at line 136 of file envcan.pl.