Faqja kryesore

Artikuj në dosjen tënde të shkarkimit

Dosja e shkarkimit është vosh
artikuj në dosjen e shkarkimit

!

Shiko dosjen e shkarkimit
Për te qendra e shkarkimit

Artikuj në shportën tënde

Shporta është bosh.
artikuj në shportë

Solution

Sasia:
Shiko shportën/listën e projekteve
Hap një listë tjetër projekti
Eksporto si .xlsx Eksporto si .csv Importo nga .csv
Produkte të ndërprera
  • Mirë se vjen, {0} - Llogaria ime

    Llogaria ime


    • Çidentifikohu
    Identifikohu/regjistrohu
  • Produktet

    Aktuatorët

    • Madhësia dhe përzgjedhja e aktuatorit
    • Aktuatorët pa siguresë
    • Aktuatorët me siguresë
    • Aktuatorët për kushte të vështira mjedisi
    • Aktuatorët me punim të shpejtë
    • Aktuatorët linearë
    • Aktuatorët damper të zjarrit
    • Aktuatorët damper për kontrollin e tymit
    • Vëllimi i ndryshueshëm i ajrit
    • Aktuatorët valvul

    Valvulet

    • Madhësia dhe përzgjedhja e valvulave
    • Belimo Energy Valve™
    • Valvulet e kontrollit të pavarura nga presioni
    • Valvulet e zonës
    • Valvulet e kontrollit të karakterizuar
    • Valvulet sferë
    • Valvulet flutur
    • Valvulet glob
    • Valvulet e ujit të pijshëm
    • Refrigeration Valves
    • Aktuatorët valvul

    Sensorë/matës

    • Zgjedhja e sensorëve/matësve
    • Sensorë tubacioni (ajri)
    • Sensorë tubi (uji)
    • Sensorë të jashtëm (ajri)
    • Njësitë e dhomës
    • Matës Energjie Termike (TEM)
    • Belimo Energy Valve™ me TEM

    Sistemet

    • Belimo Energy Valve™
    • Zgjidhje për dhoma
    • Sistemi bus dhe i integrimit
    • Zjarr dhe tym
    • Kolektor energjie
    • Belimo ZoneEase™ VAV

    RetroFIT+

    • RetroFIT+ Product Replacement Tool
    • Maksimizoni potencialin e sistemit tuaj
    • Përmirësoni sistemin
    • Optimizimi i sistemeve ekzistuese HVAC
    • RetroFIT+ Produkte zëvendësuese

    Aplikimet

    • Zbatimet e ftohjes së qendrave të të dhënave
    • Njësitë e trajtimit të ajrit (AHU)
    • Aplikimet për dhoma dhe zona
  • Mbështetje

    Shërbimet

    • Madhësia dhe përzgjedhja e aktuatorit
    • Madhësia dhe përzgjedhja e valvulave
    • Zgjedhja e sensorëve/matësve
    • RetroFIT+ Product Replacement Tool
    • Produkte specifike për klientin
    • Qendra e shkarkimeve
    • Veglat e shërbimit / Aplikacionet
    • Software/Plug-ins/CAD
    • Arkivi i skedarëve (sistemi bus dhe i integrimit)
    • Katalogu i produkteve dhe i çmimeve
    • Kushtet e përgjithshme të shitjes dhe dorëzimit
    • Belimo Cloud: Identifikim/Regjistrim
    • Aktivizimi i matësit të energjisë termike
    • Videot

    Belimo Education

    • Belimo Experience Center (Hinwil, Zvicër)
    • Company Tour (Hinwil, Zvicër)
    • Seminare nga interneti
    • Trajnimi

    Aplikimet

    • Zbatimet e ftohjes së qendrave të të dhënave
    • Njësitë e trajtimit të ajrit (AHU)
    • Aplikimet për dhoma dhe zona
  • Rreth Nesh

    Belimo

    • Profili
    • Vlerat tona
    • Qëndrueshmëria
    • Historia
    • Çmime dhe mirënjohje
    • Furnizuesit
    • Organizatat e lidhura
    • Cilësi në Belimo
    MKT-IMG_belimo_video_block

    Media

    • Lajme
    • Pikat kryesore
    • Histori suksesi
    • Videos
    • Figura dhe logo
    • Ekspozita dhe ngjarje
    • Kontaktet
    lower_pic
  • Na kontaktoni
  • Greqi

    Amerikë

    • Brazil
    • Kanada
    • Karaibe, Amerikë Latine dhe SHBA

    Evropë, Lindja e Mesme dhe Afrika

    • Afrikë e Jugut
    • Arabi Saudite
    • Austri
    • Belgjikë
    • Bjellorusi
    • Bosnjë-Hercegovinë
    • Bullgari
    • Çeki
    • Danimarkë
    • Emiratet e Bashkuara Arabe (EBA)
    • Estoni
    • Finlandë
    • Francë
    • Gjeorgji
    • Gjermani
    • Greqi
    • Holandë
    • Hungari
    • Irlandë
    • Itali
    • Izrael
    • Kazakistan
    • Kroaci
    • Letoni
    • Lituani
    • Maqedoni e Veriut
    • Mbretëri e Bashkuar
    • Norvegji
    • Poloni
    • Rumani
    • Serbi dhe Mal i Zi
    • Shqipëri
    • Sllovaki
    • Slloveni
    • Spanjë
    • Suedi
    • Turqi
    • Ukrainë
    • Zvicër

    Azi Paqësor

    • Australi
    • Burmë
    • Filipine
    • Indi
    • Indonezi
    • Japoni
    • Kamboxhë
    • Kinë
    • Kore
    • Malajzi
    • RPA i Hong-Kongut, Kinë
    • RPA i Makaut, Kinë
    • Singapor
    • Tailandë
    • Tajvan, Kinë
    • Vietnam
    • Zelandë e Re
    Shqiptare

    language.el_GR

    English

    Shqiptare

  • Greqi

    Amerikë

    • Brazil
    • Kanada
    • Karaibe, Amerikë Latine dhe SHBA

    Evropë, Lindja e Mesme dhe Afrika

    • Afrikë e Jugut
    • Arabi Saudite
    • Austri
    • Belgjikë
    • Bjellorusi
    • Bosnjë-Hercegovinë
    • Bullgari
    • Çeki
    • Danimarkë
    • Emiratet e Bashkuara Arabe (EBA)
    • Estoni
    • Finlandë
    • Francë
    • Gjeorgji
    • Gjermani
    • Greqi
    • Holandë
    • Hungari
    • Irlandë
    • Itali
    • Izrael
    • Kazakistan
    • Kroaci
    • Letoni
    • Lituani
    • Maqedoni e Veriut
    • Mbretëri e Bashkuar
    • Norvegji
    • Poloni
    • Rumani
    • Serbi dhe Mal i Zi
    • Shqipëri
    • Sllovaki
    • Slloveni
    • Spanjë
    • Suedi
    • Turqi
    • Ukrainë
    • Zvicër

    Azi Paqësor

    • Australi
    • Burmë
    • Filipine
    • Indi
    • Indonezi
    • Japoni
    • Kamboxhë
    • Kinë
    • Kore
    • Malajzi
    • RPA i Hong-Kongut, Kinë
    • RPA i Makaut, Kinë
    • Singapor
    • Tailandë
    • Tajvan, Kinë
    • Vietnam
    • Zelandë e Re
  • EL EN SQ
  • Mirë se vjen, {0} - Llogaria ime

    Llogaria ime


    • Çidentifikohu
    Identifikohu/regjistrohu
Faqja kryesore
  • Produktet

    Aktuatorët

    • Madhësia dhe përzgjedhja e aktuatorit
    • Aktuatorët pa siguresë
    • Aktuatorët me siguresë
    • Aktuatorët për kushte të vështira mjedisi
    • Aktuatorët me punim të shpejtë
    • Aktuatorët linearë
    • Aktuatorët damper të zjarrit
    • Aktuatorët damper për kontrollin e tymit
    • Vëllimi i ndryshueshëm i ajrit
    • Aktuatorët valvul

    Valvulet

    • Madhësia dhe përzgjedhja e valvulave
    • Belimo Energy Valve™
    • Valvulet e kontrollit të pavarura nga presioni
    • Valvulet e zonës
    • Valvulet e kontrollit të karakterizuar
    • Valvulet sferë
    • Valvulet flutur
    • Valvulet glob
    • Valvulet e ujit të pijshëm
    • Refrigeration Valves
    • Aktuatorët valvul

    Sensorë/matës

    • Zgjedhja e sensorëve/matësve
    • Sensorë tubacioni (ajri)
    • Sensorë tubi (uji)
    • Sensorë të jashtëm (ajri)
    • Njësitë e dhomës
    • Matës Energjie Termike (TEM)
    • Belimo Energy Valve™ me TEM

    Sistemet

    • Belimo Energy Valve™
    • Zgjidhje për dhoma
    • Sistemi bus dhe i integrimit
    • Zjarr dhe tym
    • Kolektor energjie
    • Belimo ZoneEase™ VAV

    RetroFIT+

    • RetroFIT+ Product Replacement Tool
    • Maksimizoni potencialin e sistemit tuaj
    • Përmirësoni sistemin
    • Optimizimi i sistemeve ekzistuese HVAC
    • RetroFIT+ Produkte zëvendësuese

    Aplikimet

    • Zbatimet e ftohjes së qendrave të të dhënave
    • Njësitë e trajtimit të ajrit (AHU)
    • Aplikimet për dhoma dhe zona
  • Mbështetje

    Shërbimet

    • Madhësia dhe përzgjedhja e aktuatorit
    • Madhësia dhe përzgjedhja e valvulave
    • Zgjedhja e sensorëve/matësve
    • RetroFIT+ Product Replacement Tool
    • Produkte specifike për klientin
    • Qendra e shkarkimeve
    • Veglat e shërbimit / Aplikacionet
    • Software/Plug-ins/CAD
    • Arkivi i skedarëve (sistemi bus dhe i integrimit)
    • Katalogu i produkteve dhe i çmimeve
    • Kushtet e përgjithshme të shitjes dhe dorëzimit
    • Belimo Cloud: Identifikim/Regjistrim
    • Aktivizimi i matësit të energjisë termike
    • Videot

    Belimo Education

    • Belimo Experience Center (Hinwil, Zvicër)
    • Company Tour (Hinwil, Zvicër)
    • Seminare nga interneti
    • Trajnimi

    Aplikimet

    • Zbatimet e ftohjes së qendrave të të dhënave
    • Njësitë e trajtimit të ajrit (AHU)
    • Aplikimet për dhoma dhe zona
  • Rreth Nesh

    Belimo

    • Profili
    • Vlerat tona
    • Qëndrueshmëria
    • Historia
    • Çmime dhe mirënjohje
    • Furnizuesit
    • Organizatat e lidhura
    • Cilësi në Belimo
    MKT-IMG_belimo_video_block

    Media

    • Lajme
    • Pikat kryesore
    • Histori suksesi
    • Videos
    • Figura dhe logo
    • Ekspozita dhe ngjarje
    • Kontaktet
    lower_pic
  • Na kontaktoni
  • Produkte të ndërprera
  • Artikuj në dosjen tënde të shkarkimit

    Dosja e shkarkimit është vosh
    artikuj në dosjen e shkarkimit

    !

    Shiko dosjen e shkarkimit
    Për te qendra e shkarkimit
  • Artikuj në shportën tënde

    Shporta është bosh.
    artikuj në shportë

    Solution

    Sasia:
    Shiko shportën/listën e projekteve
    Hap një listë tjetër projekti
    Eksporto si .xlsx Eksporto si .csv Importo nga .csv
  1. Faqja kryesore
  2. Building IoT
  3. Belimo Digital Ecosystem Developer Space

Plot your first graph in Python

In a few simple steps you can build your fully-functional application, main focus is on:

  • Gain access to the Service User Space
  • Select data
  • Acquire data
  • Plot

To have the complete example just cut and paste in a single file the code shown in the next paragraphs. 

This example has been designed for the demo environment so you will replace "__UserPlaceHolder__" and "__PasswordPlaceHolder__" with your BelimoID Account credential and "__ClientIDPlaceHolder__" and "__ClientSecretPlaceHolder__" with the credential you received for the Developer Space.

To access the complete documentation about our Cloud API log in http://cloud.belimo.com using your BelimoID and then chose "support" -> "Documentation" 

 

Python Libraries import

import requests
import json
import pandas as pd
import matplotlib.pyplot as plt
# enable inline pictures in Jupyter Notebook
%matplotlib inline
from oauthlib.oauth2 import LegacyApplicationClient
from requests_oauthlib import OAuth2Session

Set up the OAuth2.0 session

# OAuth Client
client_id = '__ClientIDPlaceHolder__'
client_secret = '__ClientSecretPlaceHolder__'
# OAuth user
user = '__UserPlaceHolder__'
passwd = '__PasswordPlaceHolder__'

# shorthand url
cloud = 'https://cloud.belimo.com'
oauth = OAuth2Session(client=LegacyApplicationClient(client_id=client_id))
token = oauth.fetch_token(
token_url='https://id.belimo.com/oauth/token',
username=user,
password=passwd,
client_id=client_id,
client_secret=client_secret,
include_client_id=True,
audience="https://api.cloud.belimo.com/",
scope=['public.read', 'offline_access', 'read:dataprofile'])

Get an overview of your devices

oauth.get(url=cloud + '/api/v3/devices/stats').json()

The output is then something like:

 

{
    'totalDevices': 36, 
    'connection': 
        {
         'offline': 1, 
         'online': 35
         }, 
    'health': 
        {
         'problem': 1, 
         'ok': 35
        }, 
    'transfer': 
        {
         'incoming': 0, 
         'outgoing': 0
        } 
}
         
     

Now we examine in more detail the devices seen and filter for those which are associated with heating:

# The id of the device (unique name)
# DisplayName: set during commissioning (allows for easy identification) (we will filter according to that one)
# Dataprofile: Where to find the information how to interprete data from the device
# url parameters
params = {
    'state': 'REGISTERED', # only get registered devices
    'limit': '100' # page size
}
# call API and print information
for device in oauth.get(url=cloud + '/api/v3/devices', params=params).json()['data']:
    if 'Heizung' in device['displayName']: # german word for 'Heating'
        print('id: ' + device['id'])
        print('name: ' + device['displayName'])
        print('dataprofile: ' + device['dataprofile']['entityId'])

The output is something like:

id: 5a430aa2-1d46-4776-bfe1-a10b6c567230
    name: Energieventil Heizung 2.OG Sued-Ost
    dataprofile: energyvalve3/1.2
    id: 3c563d80-48f0-4a7a-8701-65d65aefdd9c
    name: Energieventil Heizung 2.OG Nord-Ost
    dataprofile: energyvalve3/1.2
    id: 3c6f7077-a147-4d25-865f-e72901d9de62
    name: Energieventil Heizung 2.OG Nord-West
    dataprofile: energyvalve3/1.2
    id: b69b0b32-03ca-4ec4-8850-2a1b474fbd83
    name: Energieventil Heizung 1.OG Sued-West
    dataprofile: energyvalve3/1.2
    id: 0cc5b932-c7b0-4eab-87ae-153aec6a7f90
    name: Energieventil Heizung 2.OG Sued-West
    dataprofile: energyvalve3/1.2    

Now let's download the Dataprofile and find the datapoint of interest

let's say we are interested in the following device

  • id: 3c6f7077-a147-4d25-865f-e72901d9de62
  • name: Energieventil Heizung 2.OG Nord-West
  • dataprofile: energyvalve3/1.2
deviceid = '3c6f7077-a147-4d25-865f-e72901d9de62'
dataprofileid = 'energyvalve3/1.2'

dataprofiledef  = oauth.get(url=cloud + '/api/v3/definitions/dataprofiles/' + dataprofileid).json()
# Extract relevant datapoints
# Let's say we are interested in energy consumption
print('Energy related datapoints:')
for dp in dataprofiledef['datapoints']:
    if 'Energy' in dp['featureValues']['default.description']: # get those datapoints which are related to Energy
        print('id: ' + dp['id'])
        print('description: ' + dp['featureValues']['default.description'])

The output will be something like this:

    Energy related datapoints:
    id: evcloud.200
    description: Cooling Energy in J
    id: evcloud.210
    description: Heating Energy in J

let's get the state and historical values for the heating energy:

# Current state
# First we the current state of the device, and extract from it e.g. location
state = oauth.get(url=cloud + '/api/v3/devices/' + deviceid).json()
# We can print current Value
state['state']['datapoints']['evcloud.210']
# Set parameters to access the historical data
params = {
    'datapointIds': 'evcloud.210',
    'resolution': '1d',
    'from': '2017-12-01T00:00:00Z',
    'to': '2018-12-01T00:00:00Z'
}
data = oauth.get(url=cloud + '/api/v3/devices/' + deviceid + '/data/history/timeseries', params=params).json()
# Extract the time series
# We only queried for one series
# We are interested in the values, not the metadata
# construct pandas DataFrame from data
heatingEnergy = pd.DataFrame(data['series'][0]['values'])
# convert timestamp to pandas datetime
heatingEnergy['timestamp'] = pd.to_datetime(heatingEnergy.timestamp)
# Energy is cumulative -- here we compute the difference between timepoints and convert to kWh
heatingEnergy['DiffEnergyConsumption'] = heatingEnergy.value.diff() / 3600000

and then plot the energy consumption

heatingEnergy.plot(x='timestamp', y='DiffEnergyConsumption', marker='o', alpha=0.5, stacked=True, figsize=(20,10))

plt.show()

The outcome should look like this:

output_31_1

Mirësevini në Belimo {{js-currentCountryName}}

{{js-currentCountryText}}
Contact Us Privacy Policy Ndryshoni cilësimet e privatësisë Shënime sigurie General terms and conditions Imprint
+30-210 94 00 766
Regjistrohu në buletinin
BELIMO Air Controls, Lysiou 11, 16346 Ilioupoli, Athens (Greece)