New command-line tools #144
Replies: 18 comments
-
Posted at 2015-01-24 by d0773d This will come in handy :) thanks! |
Beta Was this translation helpful? Give feedback.
-
Posted at 2015-01-24 by jlawson Yes, this will be useful. Especially since Chromium/Chrome causes my X-windows to crash. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2015-01-24 by alexanderbrevig Sweet! Will test come monday. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2015-01-27 by alexanderbrevig Added support for multi-board upload. Might be handy for more people than me espruino/espruino-tools#1 Excellent tool btw! |
Beta Was this translation helpful? Give feedback.
-
Posted at 2015-01-27 by @gfwilliams Thanks! Will try and take a look tomorrow. By the way, on Linux you can do some great stuff with udev so you can run a script (like this) whenever a certain type of USB device is plugged in. It'd be great for deployment. Extra thing I guess I should add is firmware updates. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2015-01-28 by alexanderbrevig I tried to add firmware updates using EDIT: I need to investigate that udev thingy, will be handy when deploying to ~40 espruinos in a month or two |
Beta Was this translation helpful? Give feedback.
-
Posted at 2015-01-28 by @gfwilliams I could be wrong (may need some fiddling) but the udev rule should look something like this:
|
Beta Was this translation helpful? Give feedback.
-
Posted at 2015-01-28 by @gfwilliams Just had a play with the flasher (have updated the code). I can get it to erase the device, but something is broken when it tries to write data to it. There were some issues with conversion between datatypes that I had to fix in EspruinoTools (String/ArrayBuffer/Buffer), and I wonder if there are still some problems there. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2015-02-08 by MrTimcakes Can this module be used from inside node? Like in a js file with require like with node-espruino? |
Beta Was this translation helpful? Give feedback.
-
Posted at 2015-02-09 by @gfwilliams I'm not sure it can be at the moment - but if anyone wanted to make that happen I'd love to include it. It'd definitely make integration with other node.js software a whole lot easier. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2015-02-20 by boneskull Excellent. Atom plugin in 3...2...1 |
Beta Was this translation helpful? Give feedback.
-
Posted at 2017-10-25 by PrimeTime0416 I am trying to run the command tool under Linux Mint but no dice! please note the WebIDE works great, can has anyone had success running the command line under Linux and can they help me, thanks: Attachments: |
Beta Was this translation helpful? Give feedback.
-
Posted at 2017-10-26 by @gfwilliams Can you run Its possible that the I use Mint for everything here so I know it works :) |
Beta Was this translation helpful? Give feedback.
-
Posted at 2017-10-27 by PrimeTime0416 Hi Gordon, thanks for getting back to me, list below is a screen shot and the text from the commands you asked me to try: a1kerr@a1kerr-Presario-CQ61-Notebook-PC ~ $ espruino --verbose
|
Beta Was this translation helpful? Give feedback.
-
Posted at 2017-10-27 by @gfwilliams It says:
So that means that the serialport NPM module (https://www.npmjs.com/package/serialport) hasn't installed. Perhaps just try Maybe try: https://www.npmjs.com/package/serialport#ubuntudebian-linux Then once that's done, reinstall the CLI tools and hopefully they should drag in the serialport module this time and it'll all work great. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2017-10-27 by PrimeTime0416 I will give it a go, please I did try to install the serial port module and no dice! I will hunt to around to see why that is and get back to you, thanks again. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2017-10-28 by PrimeTime0416 Gordon good news, gots it working, thanks bro: #checking to make sure nodejs was uninstalled, now looking to remove espruino #clean up and left over packages and junk, then check list to make sure no nodejs and espruino installed. #reinstall nodejs using Ubuntu and Node 6 #libudev-dev some package I thought I needed but not sure is mandatory, I think the main thing is to install the build-essential to allow install to compile anything needed. #install serial port manually in unsafe mode, this may have not been need but did want to take a chance so I through the kitchen sink at it :) #And not for the main event reinstalling espruino! then run some quick test and connect. #THANKS AGAIN GORDON AND PEACE OUT! a1kerr@a1kerr-Presario-CQ61-Notebook-PC ~ $ espruino --verbose
|
Beta Was this translation helpful? Give feedback.
-
Posted at 2017-10-30 by @gfwilliams Great - glad you got it sorted! |
Beta Was this translation helpful? Give feedback.
-
Posted at 2015-01-23 by @gfwilliams
Hi,
Just thought I'd let you know that the espruinotool command-line tool is now available: https://github.com/espruino/espruino-tools
You'll need node.js and npm installed before you can use it, but hopefully after that it should be pretty multi-platform. Installation instructions are at the link, and once installed it should be pretty easy to integrate it with your favourite editor.
There are already two node.js-based tools out there ( espruino-cli and node-espruino), but this one uses exactly the same code as the Web IDE - so will handle everything that the Web IDE does.
Beta Was this translation helpful? Give feedback.
All reactions