Press on the image to return to the main documentation page.
ICOSWorldForecast
Written by Giuseppe Salvi
List of types:
ICOSWorldForecast
ICOSWorldForecast
Permissions:
android.permission.INTERNET
android.permission.ACCESS_WIFI_STATE
android.permission.ACCESS_NETWORK_STATE
android.permission.ACCESS_COARSE_LOCATION
android.permission.ACCESS_FINE_LOCATION
android.permission.ACCESS_LOCATION_EXTRA_COMMANDS
android.permission.CONTROL_LOCATION_UPDATES
android.permission.ACCESS_GPS
android.permission.ACCESS_ASSISTED_GPS
Events:
None
Members:
ApiKey
As
String
[write only]
AreaName
As
String
[read only]
CCCloudCover
As
String
[read only]
CCHumidity
As
String
[read only]
CCIcon
As
android.graphics.
Bitmap
[read only]
CCIconUrl
As
String
[read only]
CCLocalObsDateTime
As
String
[read only]
CCObservationTime
As
String
[read only]
CCPrecipitationMM
As
String
[read only]
CCPressure
As
String
[read only]
CCTempCelsius
As
String
[read only]
CCTempFahrenheit
As
String
[read only]
CCVisibility
As
String
[read only]
CCWeatherCode
As
String
[read only]
CCWeatherDescription
As
String
[read only]
CCWinddir16Point
As
String
[read only]
CCWinddirDegree
As
String
[read only]
CCWindspeedKmph
As
String
[read only]
CCWindspeedMiles
As
String
[read only]
CityName
As
String
[write only]
Country
As
String
[read only]
CurrentDate
As
String
[read only]
CurrentTime
As
String
[read only]
DstOffset
As
String
[read only]
FCDate
(index
As
Int
)
As
String
FCIcon
(index
As
Int
)
As
android.graphics.
Bitmap
FCIconUrl
(index
As
Int
)
As
String
FCPrecipitationMM
(index
As
Int
)
As
String
FCTempMaxCelsius
(index
As
Int
)
As
String
FCTempMaxFahrenheit
(index
As
Int
)
As
String
FCTempMinCelsius
(index
As
Int
)
As
String
FCTempMinFahrenheit
(index
As
Int
)
As
String
FCWeatherCode
(index
As
Int
)
As
String
FCWeatherDesc
(index
As
Int
)
As
String
FCWinddir16Point
(index
As
Int
)
As
String
FCWinddirDegree
(index
As
Int
)
As
String
FCWinddirection
(index
As
Int
)
As
String
FCWindspeedKmph
(index
As
Int
)
As
String
FCWindspeedMiles
(index
As
Int
)
As
String
FindLatAndLong
As
String
FindLocation
As
String
Full7DayName
(day
As
Int
)
As
String
GetList
(mCity
As
String
)
As
java.util.ArrayList
GmtOffset
As
String
[read only]
Initialize
(EventName
As
String
)
isWiFiConnected
As
Boolean
LatAndLong
As
String
[write only]
Latitude
As
Object
[read only]
LocalIpAddress
As
String
[read only]
Longitude
As
Object
[read only]
Population
As
String
[read only]
Position
As
Int
[write only]
Region
As
String
[read only]
Short7DayName
(day
As
Int
)
As
String
StringFormat
(format
As
String
,
object
As
Object
, object1
As
Object
)
As
String
Sunrise
As
String
[read only]
Sunset
As
String
[read only]
TimeZoneID
As
String
[read only]
Version
As
Double
[read only]
WeaterByLocalIpAddress
As
String
[write only]
WeatherUrl
As
String
[read only]
Members description:
ApiKey
As
String
[write only]
Set your personal ApiKey
example:
Dim a As ICOSWorldForecast
a.ApiKey="XXXXXXXXXXXXXXXXXXXXXXXXXXXX"
AreaName
As
String
[read only]
Return Name of the city
example:
Dim a As ICOSWorldForecast
Label1.Text=a.AreaName
CCCloudCover
As
String
[read only]
Return Cloud Cover in %
example:
Dim a As ICOSWorldForecast
Label1.Text=a.CCCloudCover
CCHumidity
As
String
[read only]
Return Humidity in %
example:
Dim a As ICOSWorldForecast
Label1.Text=a.CCHumidity
CCIcon
As
android.graphics.
Bitmap
[read only]
Return Weather symbol image
example:
Dim a As ICOSWorldForecast
Image1.SetBackgroundImage=a.CCWeatherIcon
CCIconUrl
As
String
[read only]
Return URLIcon For Current Condition
example:
Dim a As ICOSWorldForecast
Label1.Text=a.CCIconUrl
CCLocalObsDateTime
As
String
[read only]
Return Local Observation date and time
example:
Dim a As ICOSWorldForecast
Label1.Text=a.CCLocalObsDateTime
CCObservationTime
As
String
[read only]
Return Observation time (UTC)
example:
Dim a As ICOSWorldForecast
Label1.Text=a.CCObservationTime
CCPrecipitationMM
As
String
[read only]
Return Precipitation Amount in Millimeter
example:
Dim a As ICOSWorldForecast
Label1.Text=a.PrecipitationMM
CCPressure
As
String
[read only]
Return Atmospheric pressure in Milibars
example:
Dim a As ICOSWorldForecast
Label1.Text=a.CCPressure
CCTempCelsius
As
String
[read only]
Return Temperature in Celsius
example:
Dim a As ICOSWorldForecast
Label1.Text=a.CCTempCelsius
CCTempFahrenheit
As
String
[read only]
Return Temperature in Fahrenheit
example:
Dim a As ICOSWorldForecast
Label1.Text=a.CCTempFahrenheit
CCVisibility
As
String
[read only]
Return Visibility kilometers per hour
example:
Dim a As ICOSWorldForecast
Label1.Text=a.CCVisibility
CCWeatherCode
As
String
[read only]
Return Weather Code
example:
Dim a As ICOSWorldForecast
Label1.Text=a.CCWeatherCode
CCWeatherDescription
As
String
[read only]
Return Weather Description
example:
Dim a As ICOSWorldForecast
Label1.Text=a.CCWeatherDescription
CCWinddir16Point
As
String
[read only]
Return 16-Point wind direction compass
example:
Dim a As ICOSWorldForecast
Label1.Text=a.CCWinddir16Point
CCWinddirDegree
As
String
[read only]
Return Wind direction in degree
example:
Dim a As ICOSWorldForecast
Label1.Text=a.CCWinddirDegree
CCWindspeedKmph
As
String
[read only]
Return Wind speed in kilometer per hour
example:
Dim a As ICOSWorldForecast
Label1.Text=a.CCWindspeedKmph
CCWindspeedMiles
As
String
[read only]
Return Wind speed in Miles per hour
example:
Dim a As ICOSWorldForecast
Label1.Text=a.CCWindspeedMiles
CityName
As
String
[write only]
Set City you wish to get the weather
example:
Dim a As ICOSWorldForecast
a.CityName="New York"
Country
As
String
[read only]
Return Name of the Country
example:
Dim a As ICOSWorldForecast
Label1.Text=a.Country
CurrentDate
As
String
[read only]
Return Current Day,Month,Year ( Friday, 28 September, 2012 )
example:
Dim a As ICOSWorldForecast
Label1.Text=a.CurrentDate
CurrentTime
As
String
[read only]
Return Current time ( 02.09 PM )
example:
Dim a As ICOSWorldForecast
Label1.Text=a.CurrentTime
DstOffset
As
String
[read only]
Return DstOffset = ( GMT +2 )
example:
Dim a As ICOSWorldForecast
Label1.Text=a.DstOffset
FCDate (index
As
Int
)
As
String
Return Date for which the weather is forecasted
example:
Dim a As ICOSWorldForecast
Label1.Text=a.FCDate(0)
FCIcon (index
As
Int
)
As
android.graphics.
Bitmap
Return Weather symbol image
example:
Dim a As ICOSWorldForecast
Image1.SetBackgroundImage=a.FCWeatherIcon(0)
FCIconUrl (index
As
Int
)
As
String
Return URLIcon For Forecast Condition
example:
Dim a As ICOSWorldForecast
Label1.Text=a.FCIconUrl(0)
FCPrecipitationMM (index
As
Int
)
As
String
Return Precipitation amount in millimeter
example:
Dim a As ICOSWorldForecast
Label1.Text=a.FCPrecipitationMM(0)
FCTempMaxCelsius (index
As
Int
)
As
String
Return Day and night max temperature in Celcius
example:
Dim a As ICOSWorldForecast
Label1.Text=a.FCTempMaxCelsius(0)
FCTempMaxFahrenheit (index
As
Int
)
As
String
Return Day and night max temperature in Fahrenheit
example:
Dim a As ICOSWorldForecast
Label1.Text=a.FCTempMaxFahrenheit(0)
FCTempMinCelsius (index
As
Int
)
As
String
Return Day and night min temperature in Celcius
example:
Dim a As ICOSWorldForecast
Label1.Text=a.FCTempMinCelsius(0)
FCTempMinFahrenheit (index
As
Int
)
As
String
Return Day and night max temperature in Fahrenheit
example:
Dim a As ICOSWorldForecast
Label1.Text=a.FCTempMinFahrenheit(0)
FCWeatherCode (index
As
Int
)
As
String
Return Weather Code
example:
Dim a As ICOSWorldForecast
Label1.Text=a.FCWeatherCode(0)
FCWeatherDesc (index
As
Int
)
As
String
Return Weather description
example:
Dim a As ICOSWorldForecast
Label1.Text=a.FCWeatherDesc(0)
FCWinddir16Point (index
As
Int
)
As
String
Return 16-Point compass wind direction
example:
Dim a As ICOSWorldForecast
Label1.Text=a.FCWinddir16Point(0)
FCWinddirDegree (index
As
Int
)
As
String
Return Wind direction in degree
example:
Dim a As ICOSWorldForecast
Label1.Text=a.FCWinddirDegree(0)
FCWinddirection (index
As
Int
)
As
String
Return Compass Wind direction
example:
Dim a As ICOSWorldForecast
Label1.Text=a.FCWinddirection(0)
FCWindspeedKmph (index
As
Int
)
As
String
Return Wind speed in kilometer per hour
example:
Dim a As ICOSWorldForecast
Label1.Text=a.FCWindspeedKmph(0)
FCWindspeedMiles (index
As
Int
)
As
String
Return Wind speed in Miles per hour
example:
Dim a As ICOSWorldForecast
Label1.Text=a.FCWindspeedMiles(0)
FindLatAndLong
As
String
Retrieve accurate latitude and longitude from GPS or network services
If a.FindLatAndLong.Length > 0 Then
a.LatAndLong = a.FindLatAndLong
End If
FindLocation
As
String
Retrieve accurate location from GPS or network services
If a.FindLocation.Length > 0 Then
a.CityName = a.FindLocation
End If
Full7DayName (day
As
Int
)
As
String
Return Full name of the day ( Monday )
example:
Dim a As ICOSWorldForecast
Label1.Text=a.Full7DayName(0) ' 0 = today - 1 = tomorrow etc etc
GetList (mCity
As
String
)
As
java.util.ArrayList
Set the City Name you wish to get the weather
example:
Dim a As ICOSWorldForecast
Dim l As List
Dim lv1 As ListView
l = a.GetList("Los Angeles")
For n = 0 To l.Size-1
lv1.AddSingleLine(l.Get(n))
Next
Sub lv1_ItemClick (Position As Int, Value As Object)
ics.CityName = lv1.GetItem(Position)
lv1.Clear
End Sub
GmtOffset
As
String
[read only]
Return GmtOffset = ( GMT +1 )
example:
Dim a As ICOSWorldForecast
Label1.Text=a.GmtOffset
Initialize (EventName
As
String
)
Initilize the object
isWiFiConnected
As
Boolean
Check if WiFi is Connected
LatAndLong
As
String
[write only]
Set Lat and Long you wish to get the weather
example:
Dim a As ICOSWorldForecast
a.LatAndLong="40.714,-74.006"
Latitude
As
Object
[read only]
Return Latitude of the city
example:
Dim a As ICOSWorldForecast
Label1.Text=a.Latitude
LocalIpAddress
As
String
[read only]
Return your IP
Longitude
As
Object
[read only]
Return Longitude of the city
example:
Dim a As ICOSWorldForecast
Label1.Text=a.Longitude
Population
As
String
[read only]
Return Population of the city
example:
Dim a As ICOSWorldForecast
Label1.Text=a.Population
Position
As
Int
[write only]
Set the index for:
Country , AreaName
Region , Population
Latitude , Longitude
Region
As
String
[read only]
Return Name of the Region
example:
Dim a As ICOSWorldForecast
Label1.Text=a.Region
Short7DayName (day
As
Int
)
As
String
Return Short name of the day ( Mon )
example:
Dim a As ICOSWorldForecast
Label1.Text=a.Short7DayName(0) ' 0 = today - 1 = tomorrow etc etc
StringFormat (format
As
String
,
object
As
Object
, object1
As
Object
)
As
String
Return Formatted String
example:
Label1.Text=StringFormat("Lat: %1$s - Long: %2$s ",Latitude,Longitude)
Sunrise
As
String
[read only]
Return Sunrise = 06:04
example:
Dim a As ICOSWorldForecast
Label1.Text=a.Sunrise
Sunset
As
String
[read only]
Return Sunset = 19:36
example:
Dim a As ICOSWorldForecast
Label1.Text=a.Sunset
TimeZoneID
As
String
[read only]
Return TimeZoneID = Europe/Rome
example:
Dim a As ICOSWorldForecast
Label1.Text=a.TimeZoneID
Version
As
Double
[read only]
Return the version of this library
WeaterByLocalIpAddress
As
String
[write only]
Set Weather by giving an IP (146.185.31.213)
Examples:
a.WeaterByLocalIpAddress = a.LocalIpAddress
WeatherUrl
As
String
[read only]
Return url of the city [ http://www.worldweatheronline.com/London-weather/City-of-London-Greater-London/GB.aspx ]
example:
Dim Webview1 As Webview
Webview1.LoadUrl(a.WeatherUrl)
Top