Comments (3)
It currently does 10s polling but only when the window is open. It will not hit Tesla servers if the main window is not visible. Do you think the 10s (when the user is engaging with the window) is still too much?
from nikola.
from nikola.
I have a logic in the polling mechanism that if main window is not visible, the portion of the code that retrieves data from Tesla does not run.
You can test by running the app from the console. Every time it hits tesla API, it will log Hitting Tesla API on Wed Jun 19 2019 16:42:09 GMT-0600 (Mountain Daylight Time)
. You can just hide the window and monitor the console and see if it runs
I just tested here and confirmed that it will not poll anything if the window is hidden. I believe the behavior you described could be related to the delay from Tesla servers to open up again once it's "closed".
With that said, I will increase the polling time on the next release, I think it's reasonable to make it longer anyway.
Let me know if you find that for some reason the app is polling even with the window not visible.
Thanks
from nikola.
Related Issues (20)
- Odometer reading is inaccurate HOT 7
- MacOS version will not run HOT 5
- Trouble running in linux HOT 19
- Works in Catalina
- Please support more than one car HOT 4
- Request: Customize icon to show two selectable pieces of info HOT 3
- Dynamic change of the screen realestate
- Unable to open window after some time HOT 4
- Interior temperature cache is invalid/incorrect HOT 1
- Can't open app from the top bar HOT 9
- Event notifications HOT 5
- AppImage is missing a .DirIcon file HOT 2
- right click menu HOT 4
- Auto-update not working on Mac HOT 3
- show charging status HOT 1
- Could you add functionality to see multiple cars? HOT 1
- Missing ability to switch between vehicles
- Handling of minutes left for charging
- App no longer working
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nikola.