Comments (4)
I just made a full snapshot, 152,2 Mb and made partial snapshot without the Media folder.
The size was exactly the same and my Media folder is empty.
It has to do with the Add-on: Ring Livestream:
When I disable this option the snapshot is only 16 Mb:
This add-on takes around 130 Mb! I suppose it contains all the Ring livestreams and will only grow in the future!
Where are the Livestreams stored by default? Once more: my Media folder is empty...
from ring-hassio.
Oh, I see, I was referring if you were saving videos with automation to the media folder because HA will backup that in a full snapshot so this would include any recording/snapshot (if you save these to media file using automation).
I understand your issue now and can confirm it happens on my end as well and it is as expected lol.
When the addon has never been run and you have not launched it for the first time, and you take a partial snapshot of this addon. The size is relatively small (0.1mb). This is because the addon has not been built yet.
You'll see that even though you ticked a partial snapshot of Ring Livestream, the addon is not present in your snapshot at all. Even in your referenced snapshot - it is missing when you disabled it.
Now you will compile the addon by pressing build and you see the large increase.
When the addon is built and a partial snapshot of this addon is taken, the size is about 150mb as you say. I took a look inside the folder and it is due to the Node_modules which are built. This is designed on purpose as Node would not want to download the dependencies on the start of every runtime - that would be insane downloading 150mb to launch the addon lol. So it caches these in the modules folder.
These files are dependencies that is used to run the unofficial Ring API which this addon wraps around. Node_modules are usually downloaded from the web when Node.js launches but it will cache them in the 'Node_modules' folder so that these are not redownloaded again (saves you bandwidth).
from ring-hassio.
I was interested in using this add-on, but 150Mb of dependent Node modules seems very inefficient. Are all these 100% necessary?
from ring-hassio.
It's difficult for me to see how he could cut this down, the dependency list for this project is already quite short. The vast majority of the growth (~70MB), is from the dependency on ring-client-api, which you can't do without. The reason ring-client-api is so big is because it depends on rxjs (~17MB), ffmpeg (~32MB), loadash (~5MB), and a few dozen other smaller dependencies. There's nothing that this project could do about that. I also maintain a project that uses ring-client-api and my addon is 145MB, so not much different.
Basically, 150MB is really nothing for a project of this type these days (as amazing as that sounds to a guy like myself that used to have to code assembler and fit it into a few KB). I have several addons that are nearly 300MB in size!
from ring-hassio.
Related Issues (20)
- installation doesn't work... HOT 1
- Installation Token required HOT 2
- Is multiple camera support possible?
- Cant install addon HOT 5
- Improvement to add-on with on demand configuration HOT 11
- UnhandledPromiseRejectionWarning: HTTPError: Response code 404 (Not Found) HOT 2
- Not getting the stream to work
- Can't seem to retrieve the stream HOT 2
- file not found - No stream HOT 1
- Unclear on start/stop HOT 1
- Live view isn't live HOT 1
- With the Ring setup in home assistant, will it phone home to Amazon?
- Image is always 0KB
- Create sensor to understand when the addon is ready
- Refresh Tokens now have an expiry.
- addon dont work HOT 4
- sensor and switch wont operate add-on
- UnhandledPromiseRejectionWarning: Error: Refresh token is not valid. Unable to authenticate with Ring servers
- looking for new owner of repo HOT 4
- Livestream stops after a few seconds
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 ring-hassio.