Module file direct download - from TAS #19
Replies: 5 comments 8 replies
-
There is no folders support |
Beta Was this translation helpful? Give feedback.
-
In TAS or just in the Berry implementation? |
Beta Was this translation helpful? Give feedback.
-
for now modules could be bundled as a tapp file which at least avoids the clutter of many individual files in the root. Also given this "dev" setup I have (that isn't available, yet) it can already can send download requests to a tasmota device (via the api). So the dev "environment" can initiate pulling the needed modules from the playground to the dev machine (if desired) and/or directly to a tasmota device. In essence we are kinda making a npm like repository of the playground. A berry "project" could even have something like a package.json to indicate which modules are required (but please not json so it can have comments and be human edited...yaml?). I'll start a discussion on my dev environment code. Also, I see no reason it can't be bundled into a vscode extension since it's written in node/javascript. This which will make deployment for other easier. |
Beta Was this translation helpful? Give feedback.
-
This is already possible. |
Beta Was this translation helpful? Give feedback.
-
I was thinking about our modules and making them easy to use in TAS.
Struck me that Berry can download them, and store them in the FS.
So I created a JSON file in my fork, and use the below code to request a named module and dependencies....
Question:
I'd like modules to be in folders in the flash FS, but I can't find a way to make a folder in Berry. Tas excludes the OS module, which is where mkdir() resides.... Does anyone know of a way?
If we feel this would be a useful feature of this repo, then we'd need to define the JSON, and determine where THIS code would live :)
Beta Was this translation helpful? Give feedback.
All reactions