Search found 38 matches

by samerou
Sat Mar 23, 2019 10:48 pm
Forum: ESP8266 boards
Topic: ESP8266_write to external file_Micropython
Replies: 5
Views: 3760

Re: ESP8266_write to external file_Micropython

You can put the data into a file on the ESP8266 and then copy the file to the PC. I commonly use Adafruit's AMPY tool for this but RShell has support for file copying too AMPY https://learn.adafruit.com/micropython-basics-load-files-and-run-code/install-ampy RSHELL https://github.com/dhylands/rshel...
by samerou
Tue Mar 19, 2019 3:04 pm
Forum: ESP8266 boards
Topic: ESP8266_write to external file_Micropython
Replies: 5
Views: 3760

ESP8266_write to external file_Micropython

Hello , I'm still new with Micropython and I'm trying to find solution for every problem that can face but now I'm confused in some points Now , I created a code that allows me to show a get values from sensors(String then convert it to Int and send it to database) thingspeak but what I'm trying to ...
by samerou
Tue Mar 19, 2019 1:20 pm
Forum: ESP8266 boards
Topic: thingSpeak/ESP8266_convert Str=> Int
Replies: 2
Views: 2417

Re: thingSpeak/ESP8266_convert Str=> Int

"field1={:.1f}\n" + int(k) You are trying to add a string and an integer here, which does not work (it can’t tell whether you mean string concatenation or number addition). Judging from the format placeholder in the string, what you probably meant is "field1={:.1f}\n".format(int(k)) To find such pr...
by samerou
Tue Mar 19, 2019 6:05 am
Forum: ESP8266 boards
Topic: thingSpeak/ESP8266_convert Str=> Int
Replies: 2
Views: 2417

thingSpeak/ESP8266_convert Str=> Int

Hello , I'm trying to create a code that allows me to send a specific values from a string and convert it to integer in order to display it in thingspeak charts but the problem that I keep receiving Traceback (most recent call last)eError: can't convert 'int' object to str implicitly so mycode is be...
by samerou
Mon Feb 18, 2019 10:01 pm
Forum: ESP8266 boards
Topic: ESP8266/MicroPython-Copy data from terminal to file
Replies: 7
Views: 4527

Re: ESP8266/MicroPython-Copy data from terminal to file

I created a little logging program that puts the time in front of the device output. If you are interest I can post it. Or actually it is already here: https://github.com/kevinkk525/micropython_iot_generic/blob/master/_testing/cpython/client_logger.py Just have to adapt it to not write something to...
by samerou
Mon Feb 18, 2019 6:51 am
Forum: ESP8266 boards
Topic: ESP8266/MicroPython-Copy data from terminal to file
Replies: 7
Views: 4527

Re: ESP8266/MicroPython-Copy data from terminal to file

There is an option in Teraterm to log all interface activity in a file, under File->Log. This is just the raw character stream. I do not expect that this is possible with Webrepl. If you are using simple tools like picocom or screen form the command line, you can always "tee" the screen output to a...
by samerou
Sun Feb 17, 2019 11:49 am
Forum: ESP8266 boards
Topic: ESP8266/MicroPython-Copy data from terminal to file
Replies: 7
Views: 4527

Re: ESP8266/MicroPython-Copy data from terminal to file

[quote=Roberthh post_id=34182 time=1550386690 user_id=601] @samerou: On which deviec do you want to write: a) do you want to write data sent by the ESP8266 into a file on the PC, or b) do you want to write data sent by the PC into a file on the ESP8266 In case of a) at least with programs like Terta...
by samerou
Sat Feb 16, 2019 12:54 pm
Forum: ESP8266 boards
Topic: ESP8266/MicroPython-Copy data from terminal to file
Replies: 7
Views: 4527

ESP8266/MicroPython-Copy data from terminal to file

Hello ,
I'm trying to create a syntax which allow me to copy in an instance T=1.5s a data from micropython terminal like ("Webrepl or teraterm ) and send it to specific file like txt or another type but I couldn't find the key to start this properly

Anyone can light me on this ?

B.R
samerou