This file contains 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
# I use a Python script to pull current weather conditions from the NOAA web service API. The NOAA web | |
# service does not return a windchill value for all locations, but given temperature, relative humidity, | |
# and wind speed you can calculate a “feels like” temperature as follows. | |
# This code assumes units of Fahrenheit, MPH, and Relative Humidity by percentage. In this example, a | |
# temperature of 35F, wind speed of 10mph, and relative humidity of 72% yields a "feels like" value of 27.4F | |
import math | |
vTemperature = float(35) |
This file contains 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
/** | |
* This would be the activity which registers the receiver class via it's interface | |
*/ | |
public class MainActivity implements NetworkStateReceiver.NetworkStateReceiverListener { | |
private NetworkStateReceiver networkStateReceiver; // Receiver that detects network state changes | |
@Override | |
protected void onCreate(Bundle savedInstanceState) { | |
/***/ |