background image

_______________________________________________________________________ 

 

S.A.R.L au capital de 500 100 Euro   Siret : 444.396.519.00027    APE : 4669A   TVA intracom : FR-35444.396.519 

For setting up this facility, click on “

Private DB setup

”.  

-

 

Web site address : address of the web site on which the database is located 

-

 

Web site port : specify the port used to send data to your server 

-

 

Php file name and location: file pathname and name of the php file that send data in the 
database. 

 

 

 

 

 

 

 

In this above case the field will contain: /scripts/MyPhpFile.php 

 

 

9.

 

How to Assign a Static IP Address for your EnOcean gateway 

 

If you have a network with several computers and devices, it’s a good idea to assign each of 
them  a  specific  address.  If  you  use  DHCP 

(Dynamic  Host  Configuration  Protocol),

 each 

computer will request and get an assigned address every time it’s booted up. 

 

www 

Scripts 

Products 

MyphpFile.php 

Summary of Contents for EnOcean

Page 1: ...___________________________ S A R L au capital de 500 100 Euro Siret 444 396 519 00027 APE 4669A TVA intracom FR 35444 396 519 EnOcean IP gateway with Cloud services Rev Date Modification V1 Initiale Version V2 Sept 2014 Pro version with update and external antenna V3 Oct 2014 Static IP and triggers V4 Apr 2015 New REST method V5 May 2015 Ability to change web UI passwords ...

Page 2: ...3 General Settings 4 4 Pairing 5 5 Cloud Services 8 6 Cloud setup 9 7 Data retrieval 11 8 Private data base 11 9 How to Assign a Static IP Address for your EnOcean gateway 12 10 Change the access codes to the web interface 19 11 Triggers Setup 19 12 Setup a Xively Trigger to Activate Zapier 20 13 Connecting Xively to Zap 21 14 Activate your Zap 22 Annex 1 PHP file example Private server 24 Annex 2...

Page 3: ...p another cloud service than Xively and the customer remote database The data recorded in Xively are downloadable in different formats rtf excel XML JSON with a web browser Service storage and graphs display is free of charge and provided by www xively com The data can be confidential or public shared according to customer choice This gateway has several usages Render a real time dashboard pf the ...

Page 4: ... a Wi Fi router a tablet or a smart phone The IP address of the box is provided by the local network by DHCP Find this address into the network to access the setting page with a browser The identifiers to access the configuration page of the gateway are admin for the username and flyport for the password 3 General Settings Once connected to the page if the network is connected to Internet the gate...

Page 5: ...g EnOcean switch telegrams Launch the pairing telegram of an EnOcean sensor or switch Upon receipt the identification number ID of the sensor is displayed If the sensor transmits its profile number EEP it also appears Click on Publish to set the device s data If the sensor does not send its profile EEP number use the scroller to specify his EEP and or if the EEP number is not correct Check the pro...

Page 6: ...ias for each device because an ID is not understandable to describe a device in the cloud Don t forget to specify its location eg bed room bathroom floor And function eg light switch blind switch T sensor ROP The length of the alias is limited to 11 characters If needed you can change the alias and the EEP of the device by clicking on the corresponding button in the published devices area The alia...

Page 7: ... FR 35444 396 519 It is possible to modify the alias 11 characters maximum without spaces and the EEP When Valid is clicked you will be back to the general setting window If you click again on Paired the published devices will appear with their modifications Current alias before modification Current EEP before modification Choose a new alias and or EEP ...

Page 8: ...utton Close closes the under way devices window 5 Cloud Services You must first open an account free of charge on www xively com The tutorial is here https xively com dev tutorials xively_develop Once the account is open you can indicate the location a feed is created automatically note carefully the ID and API key You can manage your account and access rights Modified device ...

Page 9: ...uration page of the gateway simply copy the feed ID and API key to establish communication with Xively 6 Cloud setup Feed setup Be careful to the API key used The general API key will work to send data to Xively but may not work for automatic field creation see below If the data field has not been created on Xively errors will appear while transmitting data Location Not used for Xively Feed ID Cre...

Page 10: ... 519 In this case data are lost but you can automatically create the necessary field on Xively Click on Errors to get the list of errors encountered You just have to click on Create DataStream to create the correct field on Xively The ID displayed in the error message is not used for the Xively s field name Only the 1Alias and the type of data from the EEP are used ...

Page 11: ...acity can takes few minutes 7 Data retrieval Xively Data recorded automatically degrade as and when of the time for not unnecessarily overloading data storage The degradation is to reduce the number of data of more than 6 hours old by averaging two consecutive measures and so on If you want to keep the data in Xively without degradation there is a subscription not free 8 Private data base You can ...

Page 12: ...d to send data to your server Php file name and location file pathname and name of the php file that send data in the database In this above case the field will contain scripts MyPhpFile php 9 How to Assign a Static IP Address for your EnOcean gateway If you have a network with several computers and devices it s a good idea to assign each of them a specific address If you use DHCP Dynamic Host Con...

Page 13: ...ssentially the same process For all Windows OS but the setting varies between each version in some aspects a Set your Computer as a network gateway Windows 7 or Windows 8 x To change the computer s IP address in Windows 7 type network and sharing into the Search box in the Start Menu and select Network and Sharing Center when it pops up If you are in Windows 8 x it will be on the Start Screen itse...

Page 14: ... R L au capital de 500 100 Euro Siret 444 396 519 00027 APE 4669A TVA intracom FR 35444 396 519 Right click on the local adapter and select Properties In the Local Area Connection Properties window highlight Internet Protocol Version 4 TCP IPv4 then click the Properties button ...

Page 15: ...A R L au capital de 500 100 Euro Siret 444 396 519 00027 APE 4669A TVA intracom FR 35444 396 519 Now select the radio button Use the following IP address and enter the same IP Subnet mask and Default gateway as shown in the hereunder screenshot When you have finished click OK ...

Page 16: ..._________________________________________ S A R L au capital de 500 100 Euro Siret 444 396 519 00027 APE 4669A TVA intracom FR 35444 396 519 Windows XP To set a Static IP in XP right click on My Network Places and select Properties ...

Page 17: ...Siret 444 396 519 00027 APE 4669A TVA intracom FR 35444 396 519 Right click on the adapter you want to set the IP for and select Properties Highlight Internet Protocol TCP IP and click the Properties button Now change the IP Subnet mask Default Gateway and DNS Server Addresses When you have finished click OK ...

Page 18: ...ect your EnOcean gateway to your computer Now you can connect the gateway directly to the PC using an RJ45 cable and connect the power supply c Configure a static IP to your EnOcean gateway Launch your favorite internet browser and go to this address http 192 168 1 115 Once the web page is loaded click Change in the General Settings window You can disable the DHCP client and enter IPs addresses th...

Page 19: ... changes are made be sure to save the new settings by clicking on Save Settings 11 Triggers Setup Triggers are used to send messages automatically when overpassing a threshold values Triggers can be set by using Zapier services Go to www zapier com and sign in Create a free account if you don t have one Click the button to Create a Trigger Service left side of zap a Web Hook then select Catch Hook...

Page 20: ...eep it hand Keep this tab open and return to the Xively workbench We re going to come back here in a minute 12 Setup a Xively Trigger to Activate Zapier Go to the Xively device that you would like to create a Trigger for On the Xively workbench click Add the details of the trigger that will activate your Zapier action Paste the URL of the Zapier webhook as the HTTP POST URL This will arrange for t...

Page 21: ... from Xively This can be very useful if you want to send the entire Xively Post If you are just looking for a few data values go to the next step Next you shall fill in the details of the interaction you desire this can vary greatly depending on what the other side of your Zap is Some Zaps require additional setup authorization and or API keys In the body of your mail you can add some fields that ...

Page 22: ...___ S A R L au capital de 500 100 Euro Siret 444 396 519 00027 APE 4669A TVA intracom FR 35444 396 519 Once Zapier found your changes click All done Now you will be able to add fields in the body of your mail Then to check if everything is OK click 14 Activate your Zap ...

Page 23: ...rovement can also be proposed To update your firmware just click on Update Firmware If your system is up to date you will see the message below Otherwise the message will warn you of updates that will be made During the update do not disconnect the power supply and the internet connection The duration of the update depends on your Internet connection and will end once the red and green LEDs stop b...

Page 24: ... NOT NULL PRIMARY KEY Index ENGINE InnoDB create a connection mysqli new mysqli host login psw database port check connection if mysqli_connect_errno printf Connect failed s n mysqli_connect_error exit grabbing from an HTTP GET or HTTP POST json file_get_contents php input use json_decode to create object from json json_o json_decode json object method foreach json_o datastreams as DataStream pars...

Page 25: ...ivate server version 1 0 0 datastreams alias test PM10 location Paris id FFCDE615 datapoints at 2015 03 18T15 56 22Z value 193 at 2015 03 18T15 56 33Z value 197 alias test PM2_5 location Paris id FFCDE615 datapoints at 2015 03 18T15 56 22Z value 189 at 2015 03 18T15 58 03Z value 184 alias test PM1 location Paris id FFCDE615 datapoints at 2015 03 18T15 56 22Z value 167 at 2015 03 18T15 58 03Z value...

Reviews: