My app not connecting to MIKROS Analytics - mikros

I created an app on MIKROS analytics and it was approved. I have my "appGameId" and "apiKey" but my app still says
Not connected. Click here to begin
Clicking on the link only takes me to the Insights section. How do I get my app connected?

You'll need to initialize the MIKROS SDK inside of your project.
Here's a full tutorial: https://www.youtube.com/watch?v=4g380D_bAVA
You can choose to auto-initialize the SDK, or use this code to do it manually:
MikrosManager.Instance.InitializeMikrosSDK();

The short answer is that you have to initialize the MIKROS SDK inside of your project.
Official Documentation:
https://developer.tatumgames.com/documentation/getting-started
Integration Tutorial:
https://www.youtube.com/watch?v=4g380D_bAVA
The full instructions are as follows:
Download the MIKROS SDK: https://developer.tatumgames.com/documentation/downloads
In the Unity editor, select Assets > Import Package > Custom Package. Navigate to the directory where you downloaded the MIKROS SDK and select the unitypackage
Import the assets in the package.
In the Inspector tab of MIKROS Settings, add your generated AppGameID and API Keys. You also have the option to edit other relevant settings from here.
Select auto initialize MIKROS SDK or manually initialize the SDK at app start with
MikrosManager.Instance.InitializeMikrosSDK();

Related

Default publish vs pick a publish target in Azure

I have two app service application and function apps [different solutions]. Both are developed using .Net core Visual Studio 2019.
I see different type of wizards for publish during publishing app service . This is creating confusion.
I would like to know, why there are different types of Wizards? Why in one solution its showing and other its not?
In general case, I can just click on publish and it will publish. However, in case of "pick a publish target" I need to download the publish profile and do "import profile". Will I need to take any extra care during "import profile" ? What are the difference between two types of publish? Which is the preferable way? Could anyone please help me understand this?
Any link/tutorial that will explain the step by step approach of "Pick a publish Profile" ? Thanks
Below screenshot shows, different wizard:
In the first image, you have already created a publish profile. Hence, it just straight asking you to publish.
In the second case, you don't have a publish profile yet so it is asking you to Import or create a publish profile. You can also create a publish profile by selecting App Service instead of IIS, FTP etc and then once the profile is created it will work like in your first case. And off course, import a profile which again should only happen once and thereafter it should automatically use that profile.

What is the best way to move an online Azure Function to a local git repository?

I have written an Azure Function App by using the User Interface of Azure Portal. The code is written in C#.
Now, I want to:
download all of the relevant code and configuration files of this
function app
Create an IDE project (e.g. IntelliJ, Visual Studio Code, ...)
store it in a git repository
Deploy the code from IDE or command line to Azure and thereby replacing the previously written Azure function.
So far, I have found only documentation on how to initiate Azure function projects with no previous code. Does somebody know how to do above?
Yes, you could go to your function Overview page, click on Download app content as shown below.
And in your situation, you want configuration files, so select the Content and Visual Studio Project and Include app settings in the download. What is app settings? This will include a local.settings.json file which contains your application settings.
Also the third party .dlls are included.
In the VS, select the folder and it will be working.
Update:
Open the function with vs, then just right click the function and choose Publish, it will show you the publish page. Click start, then you will be able to publish it to a existing Function.
Follow this Setting up a CI/CD pipeline for Azure Functions doc which explain each step in detail.

Deployment custom App in Microsoft Teams

I am developing a chatbot azure service, which I want to integrate within Microsoft Teams. So far everything is working but the "re-install" of the package in the Microsoft Teams.
I created a publish "folder-profile". Then I zip the result with the manifest.json and the icon files inside. I go to the Manage Team section and in the Apps tab I select upload a custom app. Then I choose the .zip file and the service seems to be there(Actually it is there)
It works, but when I create a new version and I repeat the described steps, it seems like Microsoft Teams is still using my old code.
I test the chatbot in the Chat by using #"APP-ID" and I see how my changes work, but installed as an App for the "Team" keeps the old version.
I tried to uninstall it, check if the bot is gone(it is gone) and then upload again, but some kind of cache is there and the bot behaves like in the previous version.
Any idea how is the correct way to deploy new versions of my app in Microsoft Teams?
I think you need to upgrade the version number in the manifest.json file (you can do it in the manifest.source.json before to generate your zip).

Package Microsoft.ApplicationInsights.Web not compatible with netcoreapp

Full problem text:
Package Microsoft.ApplicationInsights.Web 2.4.0 is not compatible with netcoreapp1.1 (.NETCoreApp,Version=v1.1)
Package Microsoft.ApplicationInsights.Web 2.4.0 supports:
- net40 (.NETFramework,Version=v4.0)
- net45 (.NETFramework,Version=v4.5)
So when I try to access Live Metrics Stream in Azure I get the message:
Not available: your app is offline or using an older SDK
and the following step-by-step guide to getting it:
Make a copy of ApplicationInsights.config if you customized ApplicationInsights.config.
In Solution Explorer, right-click your project and choose Manage NuGet packages.
Select Browse.
Search for Microsoft.ApplicationInsights.Web, select it and choose Install/Update. You need version 2.2.0 (or later).
Reinstate any customizations you made to ApplicationInsights.config. Most of the changes you'll see when you compare the files are because we removed some modules and made others parameterizable.
Rebuild your solution.
(I haven't customized no ApplicationInsights.config so started at 2, got the error after 4)
So I'm not entirely sure what the problem here is, on thing I guess from the problem text is that ApplicationInsights.Web works with .NETFramework and not with .NETCoreApp. In that case my question would be:
What's the ApplicationInsights.Web alternative for .NETCoreApp? Plus, why does Azure recommend this step-by-step guide to me? Can't they see that I'm running a .NETCoreApp?
In case it's relevant:
I have student access to Visual Studio and Azure through something called Microsoft Imagine.
The guide is for classic MVC, not MVC Core.
For ASP.NET Core, you should be able to add App Insights with the connected service in Visual Studio: https://ppolyzos.com/2017/03/07/add-application-insights-in-a-net-core-app-using-vs-2017-and-connected-services/
To add one of the supported connected services you can right-click on
your Project and select Add Connected Service. Select Application
Insights and, from the next dialog, click on the Start Free button to
start the registration of Application Insights in your app.
Then, connect your Microsoft Azure account, choose your subscription
and resource group and, at the bottom, select whether you want app
insights to continue collecting data beyond 1 GB/month or not, and
click on Register. A popup will appear displaying the progress of App
Insights registration process.
Also, the package that the connected service installs is: https://www.nuget.org/packages/Microsoft.ApplicationInsights.AspNetCore/

Is there a tutorial that explains how the sandbox completes the 'source' with the sdk and executable code?

New guy here. I walked through the 'Cassandra data analytics demo' in the sandbox and was up and running in no time (using the recommended hardware, Raspberry Pi and DHT11 sensor).
Now I want to take it to the next step. I installed an instance of Kaa (not the sandbox anymore) and followed the same tutorial which explained setting up the schemas and log appenders etc (https://www.youtube.com/watch?v=VHwJLHQjl50) and exported the sdk to the Raspberry Pi. The issue I'm running into is understanding exactly what all was done for me in the sandbox, for instance, all of these steps performed when I click "Source":
Assembling sources for 'Cassandra data analytics demo' project... SDK
profile id of project: 10 Getting SDK for requested project...
Successfuly got SDK. Processing project archive...
CCassandraDataAnalyticsDemo/ CCassandraDataAnalyticsDemo/src/
CCassandraDataAnalyticsDemo/src/dht11/
CCassandraDataAnalyticsDemo/CMakeLists.txt
CCassandraDataAnalyticsDemo/src/dht11/dht11.h
CCassandraDataAnalyticsDemo/src/dht11/dht11.c
CCassandraDataAnalyticsDemo/src/kaa_demo.c
CCassandraDataAnalyticsDemo/build.sh Compressing source project
archive... CCassandraDataAnalyticsDemo/
CCassandraDataAnalyticsDemo/libs/
CCassandraDataAnalyticsDemo/libs/kaa/
CCassandraDataAnalyticsDemo/libs/kaa/kaa-c-ep-sdk-wcknkllgn6TIg3OjUlumWqcZSCw.tar.gz
CCassandraDataAnalyticsDemo/src/
CCassandraDataAnalyticsDemo/src/dht11/
CCassandraDataAnalyticsDemo/src/dht11/dht11.c
CCassandraDataAnalyticsDemo/src/dht11/dht11.h
CCassandraDataAnalyticsDemo/src/kaa_demo.c
CCassandraDataAnalyticsDemo/CMakeLists.txt
CCassandraDataAnalyticsDemo/build.sh Source project archive
compressed. Succesfully prepared project data!
-------- CLICK OK TO START DOWNLOAD PROJECT SOURCES --------
Finished!
My question is, once I download the c-sdk from my instance of kaa (not the sandbox), moved it to the Raspberry Pi and built it, what do I need to do, or what glue code is required to get the Pi to start logging a sensor's data and reporting back to my instance?
There is no tutorial that explains how the sandbox completes the 'source' with the SDK and executable code.
Kaa Sandbox is a preconfigured virtual environment designed for the users who want to use their private instance of Kaa platform for educational, development, and proof-of-concept purposes.
The Sandbox also includes a selection of demo applications that illustrate various aspects of the platform functionality.
When you click "Source", you got sample project with generated SDK for specified platform and language. See your first Kaa application guide for details.
For example, if you want to run the 'Cassandra data analytics demo' without the Kaa Sandbox, you should do the next:
Create an application.
Add this log schema (you can use Upload from file at Add log schema window in Kaa Admin Console).
Add "sensor_per_row", "sensor_per_date" and "sensor_per_region" log appenders using configuration from corresponding sensor_per_*_cassandra_appender.json located here
(you can use Upload from file at Add log appender window in Kaa Admin Console).
Download "c" folder from here.
Create folders "libs/kaa" (project files structure as in downloaded Cassandra data analytics demo from the Kaa Sandbox).
Add SDK profile for your application.
Generate SDK for C target platform.
Save SDK into the libs/kaa folder.
Follow the installation steps for Cassandra data analytics demo from Sandbox to run client application (for now you don't need to download the source code by clicking the "Source" button).

Resources