Changes between Version 47 and Version 48 of Proposal
- Timestamp:
- Jul 8, 2013, 3:04:18 PM (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Proposal
v47 v48 58 58 59 59 60 weatherTempBlock = WeatherTemperatureBlock(name="weather_tempertature", desc="A simple weather block example") 61 62 ets.register(weatherTempBlock) 60 ets.register(WeatherTemperatureBlock, name="weather_temperature", desc="A simple weather temperature/humidity example") 63 61 64 62 ets.weave(fb=weatherTempBlock, dp="temperature", gad="1/1/1") … … 127 125 In this method, we get the temperature and humidity values (not explained here), and give the value to the respective Datapoints. 128 126 129 Then, we instanciate our new Funtional Block: 130 131 {{{ 132 #!python 133 weatherTempBlock = WeatherTemperatureBlock(name="weather_tempertature", desc="A simple weather block example") 134 }}} 135 136 register it to {{{ETS}}} object: 137 138 {{{ 139 #!python 140 ets.register(weatherTempBlock 127 Then, we register our new Funtional Block (this will automatically instanciate it): 128 129 {{{ 130 #!python 131 ets.register(WeatherTemperatureBlock, name="weather_tempertature", desc="A simple weather block example") 141 132 }}} 142 133