Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding lots of devices #34

Open
WORMSS opened this issue Sep 17, 2024 · 6 comments
Open

Adding lots of devices #34

WORMSS opened this issue Sep 17, 2024 · 6 comments

Comments

@WORMSS
Copy link

WORMSS commented Sep 17, 2024

I guess this is more a question than a "bug/issue"

I recently wanted to add 40 devices to the list, I thought I could save the file out to local, and manipulate it that way
but I was shocked to find the devices are not stored in a readable way, and are entangled in the link/url itself.

Is there a way to easily write all the devices I want and add them? or do I need to do them using the UI one at a time?

  • Colin
@Traineratwot
Copy link
Member

Of course, you can save the code And environment to a file and open it in the future or share it with friends :)
Снимок

@WORMSS
Copy link
Author

WORMSS commented Sep 17, 2024

But, where are the "device" settings??
All I see is

#eNqNltuOozgQhl/F8tzsSsnKxhAOd+lWjzpSTzIbcrNSpBYHk3iVmAjMzPSO+t2nDAnQZA1zkQj8Vf2uKn7i/MRhUoiLWkdnjgOc8iyqTuq1rBdfpV6d4SRPNbxU5RE9L8PnP/b4IVKKF290j//cy/8B4XehkqMRW+N5RszG84zYHs8zYmc8z4gX43lG7I7nGbE3nmfE/nieEVMy8eCNnE5ZxsjphGnMnE7YxszphHHMnE5Yx8zphHnMnE7Yx8zphIHMnE5YyMytCQ9d+V5GJxGVqHhYoYI66BO6RqGVTPmPDq8B2z2sf9I6GmrMerjZ5GPUy8MjRFkQ9ZJ/56Vqgx+PUXHo4jY6jELYJsvQY15J1aIQCAESqkhBAvygCsnR59U23D0sd7un7T+ItMsvy26Vee1yuFvuVpv1jcwp8zzL82zHb0N22+U6/LzZfnnaArctZlHLdpkeV6miQgV7+Sb4Kd3LU9z0NRBtOkJfhBTn6ryX5/wbr2fcL/W2DP0SLa1gJteRwAYHruqxp7FOhAmkKSpILUJvNGwwZMcH9V+tFDcCGwlTEhmKZK6OvLgtozzLdNFSj3JQs95sWHccXeqh6xbJX7RV1yrxoWmpP+Y+/xcJmRT8zPXz01LXwqC3Egroz7juBEqmxqwsG0kj1+lo48DnXqW9Ca6R2u3w0V5c3RjcRQpFSAnt2fh0313vARkfaXni/IIcXUJtFTjgRfIDzne4SPk3kfASBz8x1V9fC/hDED9H5REHc2p5YDHXdWe4+bswp77jevbCIzO85RkvuEz4KsUBneHwlKtah+ivTZJUl0iqq5Jr28T3bA/iaiJ4k/R3BTFCvcHN+/sMv4DT19U55gUOdOxTUeRwSQAxx2O275D7Itt34VYlZb7jU9dzh1XeNKAI2ajqhmzmEMrYvXD7ErbCluMvKFv4Q+GezAw3hsWBQ0izBXEpo8Rj1m9sMXcXvgdqnn23RSvTbbG4bsEW1KMO8+3fmM7cJ6BPyOKuiValmU/9RBp/6MybR/CjKJJKKPScV6WQB9x/NoOjANgwOsB69cPc25MFQHsZfIgZjLE9UboMq87oYmbDUoKuzI8TGx....

and personally, I don't know how to read that off the top of my head.

@Traineratwot
Copy link
Member

image

You can load this file in ic10.dev and see devices again

@WORMSS
Copy link
Author

WORMSS commented Sep 18, 2024

..... I am not sure you are understanding me..
So
Step 1: I paste my script in to ic10 dev
Step 2: I add 2 devices (Battery1, Transformer1)
Step 3: I click Save file (downloads locally)
Step 4: I load that file into VSCode..
Step 5: ????????????
Step 6: Save that file, and load it into ic10 dev
Step 7: I now have Battery1-20 and Transformer 1-20 (40 devices in total)

What is Step 5 ???

@Red3Tango
Copy link

there is no Step 5 sadly, think of the "save file" as a non-editable file. (like opening a .exe or .png in vscode)

also setting up that many devices in a test environment (this tool), is a bit unorthodox. you are likely not directly interacting with 20 batteries, but using average, etc. in that case just setup 2 batteries on the site to simulate what you actually have.

though, having a human-readable save file (like json) would be very nice.

@WORMSS
Copy link
Author

WORMSS commented Nov 27, 2024

Nope, not using Average, the code sets up 40 different devices by pushing 40 predefined names into the stack so the chip can manage their states individually.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants