!cvasdRYakLpAOAHyJK:matrix.org

IoTempower

63 Members
General talk on iotempower/ulnoiot (http://github.com/iotempire/iotempower)22 Servers

Load older messages


SenderMessageTime
31 Oct 2019
@ulno:matrix.orgulnoHowdy, Pietro, welcome, nice to have you here!15:34:49
@ulno:matrix.orgulno1, I will dig up a tutorial I have filled away15:35:13
@ulno:matrix.orgulno 2, what's the up, the pi gives your PC? 15:35:49
@ulno:matrix.orgulno 1, this looks quite ok: https://product.hubspot.com/blog/git-and-github-tutorial-for-beginners 18:12:52
@pietro_m:matrix.orgpietro_m
In reply to @ulno:matrix.org
2, what's the up, the pi gives your PC?

you mean the IP? I have the pi plugged into my router (it's a pi 1, so no wifi). And my laptop connected through wifi to the same router.

the router gives an ip to the pi, I can see the local web portal page, but some of the links there returns a "502 bad gateway" error

22:07:48
@pietro_m:matrix.orgpietro_mthanks for the tutorial!22:08:28
@pietro_m:matrix.orgpietro_m
In reply to @pietro_m:matrix.org

you mean the IP? I have the pi plugged into my router (it's a pi 1, so no wifi). And my laptop connected through wifi to the same router.

the router gives an ip to the pi, I can see the local web portal page, but some of the links there returns a "502 bad gateway" error

neither the "navigational links", nor the "Node-Red" links work. All the other ones do.
22:10:20
@ulno:matrix.orgulnoist it a pi3?22:15:12
@ulno:matrix.orgulnoyou connected the pi via Ethernet to your router?22:15:18
@pietro_m:matrix.orgpietro_mnope, Pi1. Yes, directly to the router.22:17:10
@ulno:matrix.orgulnoto weak22:31:31
@ulno:matrix.orgulnoneed at least pi322:31:39
@ulno:matrix.orgulnobut you can run some services also on pi122:32:00
@ulno:matrix.orgulno however, it would more sense to run things on an old Linux PC as router if you don't have access to pi3 22:32:42
@pietro_m:matrix.orgpietro_mToo weak? Poop. Gotta get me one of those then.22:36:27
@pietro_m:matrix.orgpietro_mWhat about a 2 year-old android phone?22:50:59
1 Nov 2019
@renato_perotto:matrix.orgrenato_perotto

@renato_perotto:matrix.org: wassup fool!
Hey. What us up! Let's study together then. I have a Pi 3

01:31:41
@ulno:matrix.orgulnoThe Android phone cold work02:22:58
@ulno:matrix.orgulnobut installation is a boy harder than the pi02:23:12
@ulno:matrix.orgulnohowever for the simple router it v should work02:23:40
@pietro_m:matrix.orgpietro_m
In reply to @renato_perotto:matrix.org

@renato_perotto:matrix.org: wassup fool!
Hey. What us up! Let's study together then. I have a Pi 3

Oh, I'm down!
13:11:17
2 Nov 2019
@ulno:matrix.orgulnoNext video out: https://youtu.be/TQq-FPfouEc19:17:07
6 Nov 2019
@pietro_m:matrix.orgpietro_m Howdy! Is there a way of copying the output of the terminal of iot empower? I'm having trouble pre-flashing a nodeMCU and would like to paste it here to ask for help... 00:01:49
@ulno:matrix.orgulnofrom Linux or from Windows?06:56:55
@ulno:matrix.orgulnoboth have options to copy from terminal06:57:07
@ulno:matrix.orgulnoLinux: shift Ctrl c06:57:20
@ulno:matrix.orgulnowindows, depends06:57:27
7 Nov 2019
@pietro_m:matrix.orgpietro_mI got it02:07:36
@pietro_m:matrix.orgpietro_m here's what I did:
-connected nodeMCU to Pi3 (thx renato_perotto ) through usb cable
-connected through firefox to 192.168.12.1, navigated to iot-test/
-renamed node1 to _node1 (just to get it out of the way), used ulnoiot menu to create a new folder and named it node1/
-edited system.conf, changed board to nodeMCU (also tried with generic 8266)
-ran ulnoiot menu (from within node1/), advanced->initialize serial and got the following:
02:23:44
@pietro_m:matrix.orgpietro_m
Linux ulnoiotgw 4.19.25-v7+ #1205 SMP Mon Feb 25 18:19:20 GMT 2019 armv7l

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
ulnoiot@ulnoiotgw:~ $ cd iot-test/node1/
ulnoiot@ulnoiotgw:~/iot-test/node1 $ ulnoiot menu



ulnoiot Simple Shell

Use mouse, arrow keys, enter, or shortcut key to select.





You are about to initialize a device that is locally connected to the
gateway via usb or serial from the following path:
iot-test/node1

Are you sure, and have you connected only one node to the gateway?


Running initialize serial

Trying to select serial port.
Traceback (most recent call last):
  File "/home/ulnoiot/ulnoiot/bin/dongle_probe.py", line 86, in <module>
    sys.exit(main(sys.argv))
  File "/home/ulnoiot/ulnoiot/bin/dongle_probe.py", line 81, in main
    return do_probe(options.esp_port)
  File "/home/ulnoiot/ulnoiot/bin/dongle_probe.py", line 18, in do_probe
    ser.read_all()  # discard all
  File "/home/ulnoiot/ulnoiot/.local/vp/lib/python3.5/site-packages/serial/serialutil.py", line 648, in read_all
    return self.read(self.in_waiting)
  File "/home/ulnoiot/ulnoiot/.local/vp/lib/python3.5/site-packages/serial/serialposix.py", line 467, in in_waiting
    s = fcntl.ioctl(self.fd, TIOCINQ, TIOCM_zero_str)
OSError: [Errno 25] Inappropriate ioctl for device
Using ttyAMA0.
Traceback (most recent call last):
  File "/home/ulnoiot/ulnoiot/bin/dongle_probe.py", line 86, in <module>
    sys.exit(main(sys.argv))
  File "/home/ulnoiot/ulnoiot/bin/dongle_probe.py", line 81, in main
    return do_probe(options.esp_port)
  File "/home/ulnoiot/ulnoiot/bin/dongle_probe.py", line 18, in do_probe
    ser.read_all()  # discard all
  File "/home/ulnoiot/ulnoiot/.local/vp/lib/python3.5/site-packages/serial/serialutil.py", line 648, in read_all
    return self.read(self.in_waiting)
  File "/home/ulnoiot/ulnoiot/.local/vp/lib/python3.5/site-packages/serial/serialposix.py", line 467, in in_waiting
    s = fcntl.ioctl(self.fd, TIOCINQ, TIOCM_zero_str)
OSError: [Errno 25] Inappropriate ioctl for device

Processing esp8266 (framework: arduino; platform: espressif8266; board: esp01_1m)
---------------------------------------------------------------------
Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/espressif8266/esp01_1m.html
PLATFORM: Espressif 8266 > Espressif Generic ESP8266 ESP-01 1M
HARDWARE: ESP8266 160MHz 80KB RAM (1MB Flash)
Library Dependency Finder -> http://bit.ly/configure-pio-ldf
LDF MODES: FINDER(chain) COMPATIBILITY(soft)
Collected 48 compatible libraries
Scanning dependencies...
Dependency Graph
|-- <ESP8266TrueRandom> 1.0
|-- <AsyncMqttClient> 0.8.2
|   |-- <ESPAsyncTCP> 1.2.0
|   |   |-- <ESP8266WiFi> 1.0
|-- <DHT> 1.0.0
|-- <DallasTemperature> 3.8.0
|   |-- <OneWire> 2.3.4
|-- <FastLED> 3.2.4
|   |-- <EspSoftwareSerial> 3.4.1
|-- <U8g2> 2.25.4
|   |-- <Wire> 1.0
|   |-- <SPI> 1.0
|-- <LiquidCrystal_I2C>
|   |-- <Wire> 1.0
|-- <Grove Barometer Sensor BMP085> 2.0.0
|   |-- <Wire> 1.0
|-- <Grove - Barometer Sensor BMP280> 1.0.1
|   |-- <Wire> 1.0
|-- <BH1750>
|   |-- <Wire> 1.0
|-- <SparkFun TSL2561> 1.1.0
|   |-- <Wire> 1.0
|-- <SparkFun APDS9960 RGB and Gesture Sensor> 1.4.2 #c6435c6
|   |-- <Wire> 1.0
|-- <MPU6050>
|   |-- <I2Cdev>
|   |   |-- <Wire> 1.0
|-- <ESP8266mDNS> 1.2
|   |-- <ESP8266WiFi> 1.0
|-- <waveform>
|-- <HX711_ADC_ID1900>
|-- <ArduinoOTA> 1.0
|   |-- <ESP8266WiFi> 1.0
|   |-- <ESP8266mDNS> 1.2
|   |   |-- <ESP8266WiFi> 1.0
|-- <SPI> 1.0
|-- <Wire> 1.0
|-- <VL53L0X>
|   |-- <Wire> 1.0
|-- <OneWire> 2.3.4
|-- <ESP8266WiFi> 1.0
|-- <Ticker> 1.0
Linking .pioenvs/esp8266/firmware.elf
Retrieving maximum program size .pioenvs/esp8266/firmware.elf
Building .pioenvs/esp8266/firmware.bin
Checking size .pioenvs/esp8266/firmware.elf
Memory Usage -> http://bit.ly/pio-memory-usage
DATA:    [====      ]  41.0% (used 33576 bytes from 81920 bytes)
PROGRAM: [===       ]  32.5% (used 332928 bytes from 1023984 bytes)
Configuring upload protocol...
Looking for upload port...
Use manually specified: /dev/ttyAMA0
Uploading .pioenvs/esp8266/firmware.bin
error: failed sending 0xC0
error: failed sending 8 bytes
error: failed sending 36 bytes
error: failed sending 0xC0
error: failed sending 0xC0
error: failed sending 8 bytes
error: failed sending 36 bytes
error: failed sending 0xC0
error: failed sending 0xC0
error: failed sending 8 bytes
error: failed sending 36 bytes
*** [upload] Error 2
error: failed sending 0xC0
error: failed sending 0xC0
error: failed sending 8 bytes
error: failed sending 36 bytes
error: failed sending 0xC0
error: failed sending 0xC0
error: failed sending 8 bytes
error: failed sending 36 bytes
error: failed sending 0xC0
error: failed sending 0xC0
error: failed sending 8 bytes
error: failed sending 36 bytes
error: failed sending 0xC0
error: failed sending 0xC0
error: failed sending 8 bytes
error: failed sending 36 bytes
error: failed sending 0xC0
error: failed sending 0xC0
error: failed sending 8 bytes
error: failed sending 36 bytes
error: failed sending 0xC0
error: failed sending 0xC0
error: failed sending 8 bytes
error: failed sending 36 bytes
error: failed sending 0xC0
warning: espcomm_sync failed
error: espcomm_open failed
error: espcomm_upload_mem failed
==================== [ERROR] Took 43.37 seconds ====================

============================= [SUMMARY] =============================
Environment nodemcu          	[SKIP]
Environment wemos_d1_mini    	[SKIP]
Environment wemos_d1_mini_pro	[SKIP]
Environment olimex           	[SKIP]
Environment esp-m            	[SKIP]
Environment sonoff           	[SKIP]
Environment esp8266          	[ERROR]
==================== [ERROR] Took 43.37 seconds ====================
Trouble compiling or uploading new firmware, check errors.

Initializing/adopting not successfull, check errors above.

An error occurred running initialize serial. Check output, continue,
and eventually try again later.

    ┌─────────────────────────┐    
    │   Continue (C, Enter)   │    
    └─────────────────────────┘    



02:24:07

Show newer messages


Back to Room ListRoom Version: