Here are answers to frequently asked questions regarding Switch King. You can use the search function (on the right hand side) to search among the articles. Another alternative to find the answer to your question is to have a look in the forum where you can also post a new question.

Our ability to assist with support related questions by e-mail is limited and we try to help out via the forum instead so that other people with similar questions can get help as well.

Contact us on e-mail for other topics: This e-mail address is being protected from spambots. You need JavaScript enabled to view it

How do I configure the visibility of a device in clients other than the Windows client (Android, iPhone, web)?

Version: 0.8 or later

In Switch King v0.8 or later, the visibility of a device or data source in other clients is configurable. The extensions and clients adapted to 0.8 takes this setting into consideration and shows or hides the device or the data source depending on how the device or data source is configured in the Windows client.

Read more...

How do I read data from a data source at a specific time of day?

Version: 0.8 or later

In Switch King, you can specify that data from a data source is to be collected at a specific time of day. The applicable data source need to have the "poll type" set to "Time and interval". You also need to specify the "poll interval" and the "poll time"

Read more...

How do I specify the username and password for REST clients (like Android)

Version: 0.8 or later

Username and password for REST clients are specified under "Tools - Options".

Read more...

How do I read data from a network drive?

Version: 0.8 or later

When information from a data source is stored on a network drive, you need to supply a domain, a username and a password. Usually, the domain is the same as the computer name

Read more...

How do I configure my devices to be synchronized?

Version: 0.8 or later

Automatic synchronization of devices means that Switch King sends signals to your devices with specific intervals to ensure that your devices are in their expected state. If the coverage is low in your appartment or house, automatic synchronization might be a way to handle the problem.

Read more...

I get error "500.19" on the web server after installing an addition

After installation of an addition, the following error might show up:

HTTP Error 500.19 – Internal Server Error
The requested page cannot be accessed because the related configuration data for the page is invalid.

The problem is that the web.config file that is included in the addition package is not fully compatible with the version of web server that you are running. The error message should contain an indication about the row where the error was encountered.

 

Read more...

How do I read the last line in a file collected from a data source?

Some data sources put the information on the last row in a text file. By configuring Switch King to read from row 100000 you will force Switch King to read and parse values from the last line only.

If the file that the data source is creating or adding information to becomes very large or is to be read frequently, we recommend another solution than reading the last line. Switch King reads the whole file into memory on every read which can lead to high load. If you see performance issues when reading only the last row, we recommend that the frequency that the file is read is decreased.

This is a function available in Switch King v0.7.1. The functionality might change in future versions of Switch King, and the GUI might be changed to implement a better solution to read the last line.

How does "Forced" work?

In Switch King Pro, you can define a scheduled event as "forced". Switch King keeps track of the current state of the devices and compares the state with the expected state as defined by the schedules. The checks are performed every second (configurable).

If multiple schedules or events are tied to a single device, some scheduled events may be discarded by the server since they are found to be unnecessary. By defining a scheduled event as "forced", you are signalizing to the server that you want the scheduled event to be carried out even if Switch King is classifying it as unnecessary.

Read more...

I get "Server Application Unavailable" after installing an extension

When you've installed one of Switch Kings extensions and try to surf to the web site where the extension is installed, you may get an error message saying "Server Application Unavailable". You should have additional information in the Event Viewer on the server..

This might have to do with that the IIS (web server) does'nt have access rights to the directory where the extension is installed. When installing the iPhone client as described in the guide, this applies to the directory C:\Program Files\Switch King\Switch King iPhone Client.

Your Event Viewer probably contains the following message:

Failed to execute request because the App-Domain could not be created. Error: 0x80070005 Access is denied.

There are two solutions to the problem:

  1. Move the directory to C:\Inetpub (you need to configure the IIS so that the site or the virtual directory is pointing to the new directory)
    or
  2. Create a new application pool and tie the pool to the extension you've just installed

If you want to create a new application pool, follow the screenshots below. The name of the example site where the extension is configured, is "SK iPhone".

 

 

 

 

 

 

Read more...

Vad betyder "Failed to calc expected state by using internal timeline." i serverns loggfiler?

There are no translations available.

Servern räknar med jämna mellanrum ut vilka signaler som ska skickas till varje enhet. Dessa signaler läggs sedan i en form av tidslinje. Det är denna tidslinje man ser i klienten som "Coming up" (kommande händelser).

Vissa kombinationer av schemalagda händelser och regelstyrda scheman kan (ofta vid vissa tidpunkter på dygnet) orsaka att Switch King inte klarar av att räkna ut vilket tillstånd en enhet ska ha vid en viss tidpunkt.

Effekten av detta blir att servern tar mycket processorkraft (CPU) i anspråk och att anslutningen mellan server och klient upplevs som långsam på grund av att Switch Kings serverdelar hela tiden försöker räkna ut rätt tillstånd men inte lyckas.

Utöver att problemet märks i klienten och i långsam kommunikation mellan server och klient så skrivs följande meddelande till serverns loggfil med täta mellanrum:

Failed to calc expected state by using internal timeline. Calculation failed for device 6 and date 2010-05-24 00:01:38.
Timeline starts at 2010-05-16 02:00:00 and ends at 2010-06-04 19:15:00.

Meddelandet ovan kan följas av:

Failed to evaluate expected state when state depended on rule sets. End of timeline.

Åtgärd

Problemet orsakas av en bugg. Åtgärd är planerad.

För att komma förbi problemet ovan kan man antingen lägga en eller flera tvingande händelse under dygnet. De tvingande händelserna gör att Switch King alltid kommer att hitta en "giltig händelse" och därför inte genererar felmeddelandet i loggfilen.

 

Page 2 of 6