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

json or xml #5

Open
fredpacc opened this issue Mar 3, 2023 · 4 comments
Open

json or xml #5

fredpacc opened this issue Mar 3, 2023 · 4 comments

Comments

@fredpacc
Copy link

fredpacc commented Mar 3, 2023

Hello,

i'm interessting by your project it very good . but i novice to programming with go.

it possible si create a json or a xml file for domotic interpetration?
`

best regards

Fred

@fredpacc fredpacc changed the title run error json or xml Mar 3, 2023
@codyja
Copy link
Owner

codyja commented Mar 3, 2023

Hi!
On that first error, I think you'll have to do go get https://github.com/codyja/focustronic/api. If you're using the readme example, the username is supposed to be an environment variable in your shell.

Also, have you seen this project? https://github.com/codyja/ftdata I made that as a simple CLI tool to call focustronic's API. I'll try to create an actual release this weekend for windows/linux/mac and attach to the project.

@codyja
Copy link
Owner

codyja commented Mar 4, 2023

Hi @fredpacc, I created some binaries for my ftdata side project for linux | windows | mac, which may be helpful for you too.

For your question about json or xml output using this api client, the answer is yes. All the methods return data as Structs which you can absolutely use json.Marshal to output json as desired.

Let me know if you need anything else. Thanks!

@fredpacc
Copy link
Author

fredpacc commented Mar 6, 2023

Hi,
ok good i test it this week ;)

best regards

@fredpacc
Copy link
Author

Hi, i test the code , it very interesting, but i would like to creat python scrip to connect to my "jeedom" domotic, it accept only python script
i don't know how made to get a token for connect to the cloud by your work

regards

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

2 participants