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

Using arduino_web_server for web version of otto blockly in Ubuntu 18.04x64 #46

Closed
mxochicale opened this issue Aug 15, 2020 · 4 comments

Comments

@mxochicale
Copy link

Dear @cparrapa et al.

Related to #38, one potential solution might be the use of the web version of Otto blockly by running a python arduino_web_server. That said, I made a PR#116 adding few instructions on the use of BlocklyDuino in Ubuntu 18.04x64. Then, it is just came to my mind the idea of trying such similar approach as shown below

Screenshot from 2020-08-15 22-54-02

However, I am a bit stuck here when trying to related the upload functions of both blocklyduino/index.html and /www/index.html:
https://github.com/BlocklyDuino/BlocklyDuino/blob/gh-pages/blockly/apps/blocklyduino/index.html#L300

              <button type="button" onclick="uploadClick()">Upload</button>

https://github.com/OttoDIY/blockly/blob/master/www/index.html#L131

		<button id="btn_flash" class='btn btn-arduino' data-toggle="modal" data-target="#message">
			<span class="fa fa-arrow-right fa-1_5x fa-fw"> </span>
		</button>

What do you think? Any ideas?

@cparrapa
Copy link
Member

cparrapa commented Aug 16, 2020

Hi @mxochicale

Good to see you here, so if i understand well your idea is to run the web version in an offline way? or online but how to solve the webusb?
Yes we are also trying to fix the web version but the arduino builder now CLI needs some work to solve the uploading.

We can always try this approach too here if it doesnt affect the rest of the code
Thanks could this work for Win and Mac too?

@mxochicale
Copy link
Author

Thanks Camilo, see some of my replies to your questions.

Good to see you here, so if i understand well your idea is to run the web version in an offline way? or online but how to solve the webusb?

BlocklyDuino is running in an online way using python arduino_web_server in Ubuntu 18.04x64 (see PR#116 for details).

Yes we are also trying to fix the web version but the arduino builder now CLI needs some work to solve the uploading.

Good luck! Let me know how this is going on! I am particularly interested with the use of Otto Blockly for machines under GNU/Linux OS.

Thanks could this work for Win and Mac too?

In the README of BlocklyDuino states the following "Arduino board on Windows, Mac OS X and Linux systems." I imagine that works for Windows and Mac.

We can always try this approach too here if it doesnt affect the rest of the code

The current approach might be a temporal one. I will be updating this issue as I am not sure, at this moment, that a PR is ready for a cross-platform of webusb for Otto Blockly.

@cparrapa
Copy link
Member

Hi @mxochicale
This is great i think it is worth making it official now
How can i include your PR#116 also here?

@mxochicale
Copy link
Author

I am closing this one as this is appropriately followed up in #38

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