Git Product home page Git Product logo

Comments (5)

infeeeee avatar infeeeee commented on July 19, 2024

Hello
Thank you for your bug report, but I need some more information to help.

After you set up the credentials, it should show where it saved your settings.ini file:
kép
Does this path shows up?

The skin should create this settings.ini file here: Documents\Rainmeter\Skins\kimai2-cmd-rainmeter\@Resources\kimai2-cmd\settings.ini. Does this file exist?

Also please enable verbose output this way, and upload the output here:

  • Open this file with a text editor: Documents\Rainmeter\Skins\kimai2-cmd-rainmeter\kimai2\kimaiMeasures.inc
  • In the [MeasureFirstrun] section (line 45) add a -v at the end of the Parameter line after a space. This section should look like this:
[MeasureFirstrun]
Measure=Plugin
Plugin=RunCommand
Parameter=start "" #kimaiExe# -v
StartInFolder=#kimaiDir#
State=Show
  • Save this file, in rainmeter reload all, click on the KIM button again, and after you set up create a screenshot, or copy everything from the command prompt window. Blur your credentials or use the demo server as I did in my screenshot.

from kimai2-cmd-rainmeter.

roberdebux avatar roberdebux commented on July 19, 2024

2020-04-10_20-18-19
Thank you for your response.
I attached the output from cmd. After this screenshot the cmd was closed by itself and it didn´t show anything. As I said, the skin is showing again "Click KIM to setup" and If I click in STOP or Reload button nothing happens.

from kimai2-cmd-rainmeter.

infeeeee avatar infeeeee commented on July 19, 2024

It should show "Click KIM to setup" until the first successful call to the server, so this is expected.

It seems that it calls your server, but no response arrives.

Please do the following, to find the cause of this:

  • Make sure your api access is working: open this site in your browser: https://kimai.yourserver.com/api/doc. You should get the same site as on the demo install: https://demo.kimai.org/api/doc . If you get some error, there is some problem with your webserver configuration.

  • If you can access your api doc: start a cmd window, and cd to the folder of kimai2-cmd. It should be here: Documents\Rainmeter\Skins\kimai2-cmd-rainmeter\@Resources\kimai2-cmd. do some request in verbose mode like this: kimai2-cmd.exe -v list-recent, and copy the output here. It's important to start this from a cmd window, in that case it will show the error code before collapsing.

from kimai2-cmd-rainmeter.

roberdebux avatar roberdebux commented on July 19, 2024

I can access correctly to the webpage, about the point 1.
About the 2nd point, this is the output:
2020-04-11_19-03-57

from kimai2-cmd-rainmeter.

infeeeee avatar infeeeee commented on July 19, 2024

It seems like a webserver setup issue, you have a similar problem as in this issue: infeeeee/kimai2-cmd#10

Your webserver returns a html page instead of a json response.

You can also see this in action if you open the url in your browser. You should get a json string wrapped in curly brackets, like on the demo install, but you will get some http error code or the kimai login page I guess. Compare it what you get on the demo site: https://demo.kimai.org/api/timesheets/recents

Read more about how to set up your webserver in the kimai docs: https://www.kimai.org/documentation/webserver-configuration.html

I will close the issue, as it has nothing to do with kimai2-cmd-rainmeter nor with kimai2-cmd. You can still comment if you have any more questions, and please reply if you figured it out!

from kimai2-cmd-rainmeter.

Related Issues (2)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.