SmartConnector Forum
Schneider Electric support forum about SmartConnector applications for integration of other building management systems (BMS) into EcoStruxure Building Operation.
Link copied. Please paste this link to share this article on your social media post.
I am walking through the initial documentation, and trying to build the 'WeatherExtension'. VS is complaining to me about the following functions:
ConvertFromUnixTime
ConvertTemperature
I also am getting complaints about ‘Forecast’ and ‘CurrentConditions’ types when calling the generic ‘RequestWeatherData’ method.
I cannot find anywhere in the documentation where I build these, and when I search my libraries, nothing is found. Did I miss including something? Here are my included libraries:
using Mongoose.Common;
using Mongoose.Common.Attributes;
using Mongoose.Process;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Mongoose.Ews.Server.Data;
using SxL.Common;
using Ews.Common;
using System.Net.Http;
using System.Net.Http.Headers;
Is there another Mongoose or MyGet library I need to install?
I have attached my classes, and please feel free to point out what I missed if it is in the documentation (and my apologies if it is).
Link copied. Please paste this link to share this article on your social media post.
I recommend you compare your code to the completed example which can be found here: GitHub - BuildingsLabs/SmartConnectorSamples: Sample projects for SmartConnector
If you zip up your solution or just send a screen shot of the actual error message, that might help too.
Link copied. Please paste this link to share this article on your social media post.
Thanks for the reference! I did find the 'ConvertTemperature' and 'ConvertFromUnixTime' methods tucked in at the end of 'UpdateProcessor'. (It would be useful to have these added to the documentation, I think. Or can someone point to where they are defined in the current documentatio? The documentation is purported to be a walkthrough of sorts, and I was unclear if these were intended to be referencing some library i was missing...)
However, even doing some copy/pasta for every class, I still don't have the 'CurrentConditions' or 'Forecast' types created anywhere. Below is the error:
Edit:
Ok, I guess I found it in the proxy class. This was glossed over quite a bit in the documentation (bottom of page 40). Any help on where this 'Proxy' folder/class goes?
Link copied. Please paste this link to share this article on your social media post.
Hi Lucas,
The folder would go in the root of your project, just make sure to change the namespace to your local namespace.
Regards,
-Jeff
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.