Changes between Version 50 and Version 51 of Proposal


Ignore:
Timestamp:
Jul 10, 2013, 10:40:39 AM (11 years ago)
Author:
Frédéric
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Proposal

    v50 v51  
    5454ets.register(WeatherTemperatureBlock, name="weather_temperature", desc="A simple weather temperature/humidity example")
    5555
    56 ets.weave(fb=weatherTempBlock, dp="temperature", gad="1/1/1")
    57 ets.weave(fb=weatherTempBlock, dp="humidity", gad="1/1/2")
     56ets.weave(fb="weatherTempBlock", dp="temperature", gad="1/1/1")
     57ets.weave(fb="weatherTempBlock", dp="humidity", gad="1/1/2")
    5858
    5959stack.serve()
     
    119119In this method, we get the temperature and humidity values (not explained here), and give the value to the respective Datapoints.
    120120
    121 Then, we register our new Funtional Block (this will automatically instanciate it):
    122 
    123 {{{
    124 #!python
    125 ets.register(WeatherTemperatureBlock, name="weather_tempertature", desc="A simple weather block example")
     121Then, we register our new Funtional Block (this will automatically instanciate it - and do other things):
     122
     123{{{
     124#!python
     125ets.register(WeatherTemperatureBlock, name="weather_temperature", desc="A simple weather block example")
    126126}}}
    127127
     
    130130{{{
    131131#!python
    132 ets.weave(fb=weatherTempBlock, dp="temperature", gad="1/1/1")
    133 ets.weave(fb=weatherTempBlock, dp="humidity", gad="1/1/2")
     132ets.weave(fb="weatherTempBlock", dp="temperature", gad="1/1/1")
     133ets.weave(fb="weatherTempBlock", dp="humidity", gad="1/1/2")
    134134}}}
    135135