Help
  • Explore Community
  • Get Started
  • Ask the Community
  • How-To & Best Practices
  • Contact Support
Notifications
Login / Register
Community
Community
Notifications
close
  • Forums
  • Knowledge Center
  • Events & Webinars
  • Ideas
  • Blogs
Help
Help
  • Explore Community
  • Get Started
  • Ask the Community
  • How-To & Best Practices
  • Contact Support
Login / Register
Sustainability
Sustainability

Join our "Ask Me About" community webinar on May 20th at 9 AM CET and 5 PM CET to explore cybersecurity and monitoring for Data Center and edge IT. Learn about market trends, cutting-edge technologies, and best practices from industry experts.
Register and secure your Critical IT infrastructure

Custom Energy Management or Hotel Room Management Portal

Gateways and Energy Servers

Schneider Electric support forum to share knowledge about product selection, installation and troubleshooting for EcoStruxure Panel Server, PowerTag, Com'X, Link150…

cancel
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Home
  • Schneider Electric Community
  • EcoStruxure Power & Grid
  • Gateways and Energy Servers
  • Custom Energy Management or Hotel Room Management Portal
Options
  • Subscribe to RSS Feed
  • Mark Topic as New
  • Mark Topic as Read
  • Float this Topic for Current User
  • Bookmark
  • Subscribe
  • Mute
  • Printer Friendly Page
Invite a Co-worker
Send a co-worker an invite to the portal.Just enter their email address and we'll connect them to register. After joining, they will belong to the same company.
You have entered an invalid email address. Please re-enter the email address.
This co-worker has already been invited to the Exchange portal. Please invite another co-worker.
Please enter email address
Send Invite Cancel
Invitation Sent
Your invitation was sent.Thanks for sharing Exchange with your co-worker.
Send New Invite Close
Top Experts
User Count
Romain_Polette
Spock Romain_Polette Spock
96
Randi_Dolan
Commander Randi_Dolan Commander
46
Guillaume_Evrard
Commander Guillaume_Evrard Commander
41
Thierry_Baudard
Commander Thierry_Baudard Commander
30
View All

Invite a Colleague

Found this content useful? Share it with a Colleague!

Invite a Colleague Invite
Back to Gateways and Energy Servers
LaurentCoene
Captain LaurentCoene Captain
Captain

Posted: ‎2014-09-15 10:37 PM

7 Likes
3
1308
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

‎2014-09-15 10:37 PM

Custom Energy Management or Hotel Room Management Portal

In this document, we will describe how to build a fully custom portal for your customer using the SmartStruxure Lite (MPM) product. The MPM has a webserver which will be able to host any website. And as you know, it has multiple I/Os, Modbus, Modbus TCP, Zigbee and EnOcean support, which makes it a great aggregator of data.

To build the portal couldn't be easier as you simply use traditional technologies (HTLM, CSS and Javascript).

In our example, we will build a hotel room management system for our hotel facility manager to take control of his rooms.

So first off: build your website (if you don't know how, hire a webdesigner so that it looks good looking). Here is an example:

4667

Second, you need to know three things:

  1. Make sure the file structure of your website is completely flat (as the MPM won't allow any subfolders on its web folder)
  2. Remember that any time you upgrade the firmware, the website will disappear (so you will need to re-upload it)
  3. Don't use index.html as this is already used by the MPM

Once the look & feel of your website is ready, you can start uploading it to your MPM to test it. In order to do so, we have a great tool from the awesome Michel Laronche. The tool consist of a CSV file which contains the file names of the files you need to upload and an executable that let you specify the IP of the MPM. The tool is built in c# and comes as is. If you do any improvement, please share with the community!

Once the files have been uploaded, you can start accessing it. In our example: http://x.x.x.x/room.html

Next you need know how to use Obix to actually communicate with the back-end of the MPM. If you didn't know Obix is a web service layer that seats on top of BMS. You can actually try it out by accessing the web services directly from your browser to test things. For example, if you want to get the current value of the object AV11, just do:

http://<your IP>/obix/network/<MPM Node Id>/<MPM Bacnet Id>/AV11/Present_Value

The browser will return an XML object that contain a property called val (which has the value of your object).

For example, mine returns:

<realwritable="true"href="http://<my_IP>/obix/network/N003F48/DEV100/AV11/Present_Value/"xsi:schemaLocation="http://obix.org/ns/schema/1.0/obix/xsd"val="77400"></real>

For us to use those web services, we will use jQuery which is a standard AJAX framework that easily let you connect to those services. Let's review the various use:

Record a value on the MPM

To record a value on your MPM, you need to do a POST. In our example, if the user would like to reset the set points of our room controller (SE8000), that's exactly the operation we need to make. Making a post using jQuery is extremely simple. In your javascript function, simply do:

$.post(url, '<str val="' + value + '"/>');

url is the URL of the object you would like to modify. Ex.: http://<my IP>/obix/network/N003F48/DEV100/AV11   (notice I don't put the "Present_Value" here)

value is the actual value your would like to record

Get a value from the MPM

Getting the value is nearly as simple as posting one. You need to do a GET request which translate in $.ajax when using jQuery. You need to remember that ajax is asynchronous, which means that you never know for sure when you will get the answer. That also means that you must pass in the parameters the name of a function that will receive the XML result!

Also remember to specify that the resulted data type will be XML! Here is an example of how we get the temperature of our SE8000 (in AV18) and put it in our temperature DIV.

$.ajax({ type: "GET", url: "http://<my IP>/obix/network/N003F48/DEV105/AV18/Present_Value", dataType: "xml", success: function(xml) { $(xml).find('real').each(function(){ var temperature = $(this).attr("val"); $('#temperature').html(temperature); }); } });

Get a file from the MPM

Getting a file is very similar to the previous request:

function loadData(divId, tag) {

  $.ajax(

  {

  url: "filename.json",

  type: "GET",

  dataType: "json",

  success: function(serie) {addSerie(divId, serie)}

  });

  }

To draw my bar chart, in this case, I use the FLOT javascript component which requires json. The file itself can be created on the LUA side using the io API. But obviously, you could use any javascript component. Just specify the filename in url, the dataType (json or xml) and what to do with the data once you receive it.

So now, you can start building fully custom solutions for your customers and make them feel so much more special!

Attachments
filesloader.exe
filestoupload.csv.zip
filesloader.zip
Tags (6)
  • Tags:
  • can2go
  • custom
  • hotel
  • room
  • ssl
  • ui
Reply
  • All forum topics
  • Previous Topic
  • Next Topic
Replies 3
JamesAZZO
Sisko | EcoXpert Master JamesAZZO Sisko | EcoXpert Master
Sisko | EcoXpert Master

Posted: ‎2014-09-16 04:09 AM

3 Likes
0
1110
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

‎2014-09-16 04:09 AM

You are an absolute champion. I am going to use this for a project in a couple months. So good.

Reply
LaurentCoene
Captain LaurentCoene Captain
Captain

Posted: ‎2014-09-16 04:26 AM

1 Like
0
1110
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

‎2014-09-16 04:26 AM

I'll give you a call. I have another idea of architecture to use this. Actually, I really should come and see you. We have so many things to go through! Let's plan for this.

Reply
JamesAZZO
Sisko | EcoXpert Master JamesAZZO Sisko | EcoXpert Master
Sisko | EcoXpert Master

Posted: ‎2014-09-16 04:50 AM

1 Like
0
1110
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

‎2014-09-16 04:50 AM

Oh yes. Call me tomorrow. So much to chat about. You should definitely come here too. We have been building some pretty unreal things. You will love them.

Could use some Laurent enthusiasm!

Reply
Preview Exit Preview

never-displayed

You must be signed in to add attachments

never-displayed

 
To The Top!

Forums

  • APC UPS Data Center Backup Solutions
  • EcoStruxure IT
  • EcoStruxure Geo SCADA Expert
  • Metering & Power Quality
  • Schneider Electric Wiser

Knowledge Center

Events & webinars

Ideas

Blogs

Get Started

  • Ask the Community
  • Community Guidelines
  • Community User Guide
  • How-To & Best Practice
  • Experts Leaderboard
  • Contact Support
Brand-Logo
Subscribing is a smart move!
You can subscribe to this board after you log in or create your free account.
Forum-Icon

Create your free account or log in to subscribe to the board - and gain access to more than 10,000+ support articles along with insights from experts and peers.

Register today for FREE

Register Now

Already have an account? Login

Terms & Conditions Privacy Notice Change your Cookie Settings © 2025 Schneider Electric

This is a heading

With achievable small steps, users progress and continually feel satisfaction in task accomplishment.

Usetiful Onboarding Checklist remembers the progress of every user, allowing them to take bite-sized journeys and continue where they left.

of