Changes between Version 47 and Version 48 of Proposal


Ignore:
Timestamp:
Jul 8, 2013, 3:04:18 PM (11 years ago)
Author:
Frédéric
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Proposal

    v47 v48  
    5858
    5959
    60 weatherTempBlock = WeatherTemperatureBlock(name="weather_tempertature", desc="A simple weather block example")
    61 
    62 ets.register(weatherTempBlock)
     60ets.register(WeatherTemperatureBlock, name="weather_temperature", desc="A simple weather temperature/humidity example")
    6361
    6462ets.weave(fb=weatherTempBlock, dp="temperature", gad="1/1/1")
     
    127125In this method, we get the temperature and humidity values (not explained here), and give the value to the respective Datapoints.
    128126
    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
     127Then, we register our new Funtional Block (this will automatically instanciate it):
     128
     129{{{
     130#!python
     131ets.register(WeatherTemperatureBlock, name="weather_tempertature", desc="A simple weather block example")
    141132}}}
    142133