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

[QUESTION] How to import config file? #772

Closed
4 tasks done
Larvotto opened this issue Jun 29, 2022 · 9 comments
Closed
4 tasks done

[QUESTION] How to import config file? #772

Larvotto opened this issue Jun 29, 2022 · 9 comments
Labels
🤷‍♂️ Question [ISSUE] Further information is requested

Comments

@Larvotto
Copy link

Question

I've exported a config file via Update Configuration > Download as File. That gives me a yaml file in the following format (snippet copied from VSCode):

image

However, I can't see how to import this back into Dashy. Update Configuration > Edit Config uses the Tree or Code formats, neither of which are consistent with the format of the exported yaml file: Tree uses collapsible sections, and Code uses " and {} symbols that are stipped out of the export - so I can't simply paste the exported code straight back in.

I'm probably missing something basic, so would be very grateful for any assistance.

Category

Configuration

Please tick the boxes

@Larvotto Larvotto added the 🤷‍♂️ Question [ISSUE] Further information is requested label Jun 29, 2022
@liss-bot
Copy link
Collaborator

If you're enjoying Dashy, consider dropping us a ⭐
🤖 I'm a bot, and this message was automated

@Lissy93
Copy link
Owner

Lissy93 commented Jun 29, 2022

Heya @Larvotto

You can use something like YAML to JSON, then in the config editor, select Code mode, and paste the contents in.

JSON and YAML have exactly the same structure, just YAML uses indentation instead of curly braces, commas and quotes.
The mismatch is a bit inconsistent, I agree. But it's because yaml = nicer for humans, json = nicer for computers :)

@Larvotto
Copy link
Author

Larvotto commented Jul 1, 2022

Excellent, thanks. I knew it would be something basic!

BTW, the exported config - either to clipboard or a file - includes a rogue space at the very beginning, i.e., before "appConfig", which causes an error if not removed. No biggie to fix, but thought you might want to know.

BTW#2 - Dashy is excellent! Thanks so much for all your hard work.

@liss-bot liss-bot added the 👤 Awaiting Maintainer Response [ISSUE] Response from repo author is pending label Jul 1, 2022
@liss-bot
Copy link
Collaborator

liss-bot commented Aug 1, 2022

This issue has gone 6 weeks without an update. To keep the ticket open, please indicate that it is still relevant in a comment below. Otherwise it will be closed in 5 working days.

@liss-bot liss-bot added ⚰️ Stale [ISSUE] [PR] No activity for over 1 month and removed 👤 Awaiting Maintainer Response [ISSUE] Response from repo author is pending labels Aug 1, 2022
@Lissy93
Copy link
Owner

Lissy93 commented Aug 1, 2022

Fix for that whitespace will be include in #799 :)
ETA mid-August.

@Lissy93 Lissy93 closed this as completed Aug 1, 2022
@liss-bot liss-bot removed the ⚰️ Stale [ISSUE] [PR] No activity for over 1 month label Aug 1, 2022
@yannduran
Copy link

I've just had the same problem with the rogue space in the exported config file in v2.1.1

Error, unable to validate 'conf.yml' 
⚠️ Error on line 8, column 0: end of the stream or a document separator is expected
  6 |       path: https://github.com/ ...
  7 |     - title: Documentation
  8 |       path: https://dashy.to/docs
  9 | appConfig:
------^
 10 |   theme: nord-frost
 11 |   layout: auto

When I opened the file in VS Code, I found that the pageInfo section header was incorrectly indented by one space.

 pageInfo:
  title: Dashy
  description: Welcome to your new dashboard!
  navLinks:
    - title: GitHub
      path: https://github.com/Lissy93/dashy
    - title: Documentation
      path: https://dashy.to/docs
appConfig:

@Niemand112233
Copy link

Are you serious? You have the option to download a backup file of the configuration, but no way to import it? are you kidding me?

@johncarterofmars
Copy link

I tried importing the converted json. The file imports in, and I wait for the rebuild. However, the only thing that will change is the theme. None of the individual boxes import, and the default items are still there. This is after saving to disk (not locally).
Any suggestions?

@neohtpc
Copy link

neohtpc commented Aug 30, 2024

Same issue here, no data after such import

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🤷‍♂️ Question [ISSUE] Further information is requested
Projects
None yet
Development

No branches or pull requests

7 participants