Coder Social home page Coder Social logo

xeroxq / chronograph Goto Github PK

View Code? Open in Web Editor NEW
6.0 6.0 5.0 897 KB

Adds precise timer, stopwatch and transition functionality to Homey.

Home Page: https://apps.athom.com/app/nl.fellownet.chronograph

License: GNU General Public License v3.0

JavaScript 93.29% HTML 5.88% CSS 0.83%

chronograph's People

Contributors

bobkersten avatar carp3-noctem avatar fellownet avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

chronograph's Issues

Adjust timer wrong way

In the instructions it says a positive number lengthens the timer and a negative number shortens is. In fact, this now works the other way around. When I use -10, the timer gets longer

Bug in Timer longer or shorter than card

Hi Bob
Think I found a small issue with the above mentioned card.
In case you use the card (in AND section) but the timer is not started the flow generate an error (see screen dumps), I would expect it to handle it like the timer value was zero.
I use this card to e.g. prevent reload of the timer in case it has not reached a certain time value.

Regards Allan

2019-10-20 (1)
2019-10-20

App crash: calculateDuration() causing 'invalid time' error

The Chronograph app now crashes every now and then for me since a few days (both on Homey 5.0.x and now 6.0.0). I have 20+ stopwatches which I start and reset from various flows (stopwatches for how long the motion sensor in a certain area has been inactive). I need to uninstall and reinstall app to get it back to working again, but then it only works for a few minutes or hours at a time, until it crashes again. Restarting the app does not help. (I assume the existing stopwatch data cache causes the crash.) The crash info from the Homey app (which is not copyable, so just transcribing part of it manually here) talks about: Chronograph.appSplit in /lib/chronograph.js calling calculateDuration from /lib/utils.js which crashes at: throw new Error('invalid time'); (BTW the contact info link from the Homey app crash page leads to a 404.) I will create a crash report and attach the number of this issue to it momentarily.

Transition Bug

Hello,

I may have found a bug.
I wanted to create a transition for a Hue lamp (which makes little sense, cause you can create transitions directly with the Hue app...).
I entered the value 0.57 in the "To" field and wanted to confirm this. But I couldn't do that because the check mark was grayed out.
With the values 0.55 and 0.60 it is possible, with the values 0.56 - 0.59 it is not possible.

Is the problem known? Is it a bug?

Many greetings
Dirk

42823C8F-C267-4A43-8C9C-8B1D709C1317
A7E987E6-7666-4B3E-9346-23DADD86E94F
87F358F9-BC40-4BC4-B0D6-1F5320FC8913

Question about the stopwatch

In Homey Developer I see that a stopwatch has been running in your app for 192 days.
I do not use the stopwatch in the flows, I have 1 timer.
Does it make sense for the stopwatch to keep running?

Feature request: showing running timer in chosen units

Hi Arie,
As timer unit you can choose between seconds, minutes or days, but when checking the running timer it seems to always show seconds. This means you have to calculate back to the chosen unit how much time is left.
Would it be possible to show the running timer in the chosen unit?
With kind regards,
Rene de Vries
IMG_2419

Use tag as name gives issues when adding the stopwatch as a device

I'm looking to move my timers/stopwatches to this app. It looks nice, does what it needs to do and adding the Stopwatch as a device allows me to see if there is anything still open like a door and for how long.

To make it easy for myself I created a Logic Text Variable with the name for my stopwatch. I used that in the various flows, though when you want to add the stopwatch, it shows the name of the stopwatch with square brackets, like so [[name ]].
That is the value that needs to be resolved.

I believe this to be a bug.

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.