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) | |
| if ($units eq"ENG") | |
| foreach my | $key (sort(keys%results)) |
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.4 |
| my | $author = 'Joe Ripley' |
| my | $email = 'vitaminjoe@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 |
| our | ( | $ | opt_v, | |
| $ | opt_t, | |||
| $ | opt_T, | |||
| $ | opt_l, | |||
| $ | opt_u, | |||
| $ | opt_d | |||
| ) |
| getopts | ( | 'Tvtlu:d:' | ) |
| close | ( | CACHE | ) |
Referenced by cc_close(), V4LChannel::Close(), IPTVFeederUDP::Close(), IPTVFeederRTSP::Close(), IPTVFeederRTP::Close(), IPTVFeederFile::Close(), ImportRecorder::Close(), DeleteHandler::Close(), DVBPIDInfo::Close(), DVBChannel::Close(), AudioInputOSS::Close(), ASIStreamHandler::Close(), MythMediaDevice::closeDevice(), AudioOutputOSS::CloseDevice(), DeviceReadBuffer::ClosePipes(), MythSocketThread::CloseReadyReadPipe(), 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(), VBIDevice::fillSelectionsFromDir(), VideoDevice::fillSelectionsFromDir(), MythSystemUnix::Fork(), AudioOutputOSS::GetOutputSettings(), hdhomerun_local_ip_info(), hdhomerun_sock_create_tcp(), hdhomerun_sock_create_udp(), hdhomerun_sock_destroy(), if(), LIRC::Init(), lirc_deinit(), lirc_freeconfig(), lirc_init(), lirc_readconfig(), FileLogger::logmsg(), main(), NuppelVideoRecorder::MJPEGInit(), MPEG1or2ProgramStreamFileDuration(), mythfile_close(), IPTVFeederUDP::Open(), IPTVFeederRTP::Open(), IPTVFeederFile::Open(), DVBPIDInfo::Open(), DVBChannel::Open(), MainServer::OpenAndUnlink(), AudioOutputOSS::OpenDevice(), FileRingBuffer::OpenFile(), MpegRecorder::OpenV4L2DeviceAsInput(), V4LRecorder::OpenVBIDevice(), HDPVRConfigurationGroup::probeCard(), MPEGConfigurationGroup::probeCard(), V4LConfigurationGroup::probeCard(), CardUtil::ProbeDVBFrontendName(), CardUtil::ProbeDVBType(), CardUtil::ProbeV4LAudioInputs(), CardUtil::ProbeV4LVideoInputs(), DeleteThread::ProcessNew(), StreamState::reclaim(), ThreadedFileWriter::ReOpen(), FileLogger::reopen(), MpegRecorder::run(), DVBStreamHandler::RunTS(), MythCDROMLinux::setSpeed(), MythCDROMDarwin::setSpeed(), MpegRecorder::StopEncoding(), RTSPData::SubsessionAfterPlayingCB(), DVBStreamHandler::SupportsTSMonitoring(), MpegRecorder::TeardownAll(), MainServer::TruncateAndClose(), vbi_close(), vbi_open(), AudioOutputOSS::VolumeCleanup(), MPEG2fixup::WriteData(), MPEG2fixup::WriteYUV(), AMRDeinterleaver::~AMRDeinterleaver(), cHlCiHandler::~cHlCiHandler(), cLlCiHandler::~cLlCiHandler(), DRMVideoSync::~DRMVideoSync(), FileLogger::~FileLogger(), FileRingBuffer::~FileRingBuffer(), InputESSourceRecord::~InputESSourceRecord(), JoystickMenuThread::~JoystickMenuThread(), NuppelVideoRecorder::~NuppelVideoRecorder(), RTCVideoSync::~RTCVideoSync(), and ThreadedFileWriter::~ThreadedFileWriter().
| foreach my $key | ( | sort(keys%results) | ) |
| use ENVCANLocation |
| use ENVCANParser |
| my types |
('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' )
Definition at line 35 of file envcan.pl.
Referenced by MPEGStreamData::CreatePMTSingleProgram(), ScreenSetup::doListSelect(), SourceUtil::GetConnectionCount(), if(), MethodInfo::Invoke(), SourceUtil::IsEncoder(), SourceUtil::IsProperlyConnected(), SourceUtil::IsUnscanable(), ScreenSetup::loadData(), WeatherSource::ProbeTypes(), DTVChannel::SetChannelByString(), and WeatherScreen::WeatherScreen().
| my results |
Definition at line 99 of file envcan.pl.
Referenced by LocationDialog::doSearch(), CECAdapterPriv::GetDeviceList(), if(), and UPNPSubscription::ProcessRequest().
1.6.3