it's working, and I can connect with my browser!!
![Erg Blij :D](./images/smilies/icon_e_biggrin.gif)
No sensors connected at present, I'll test further.
Cheers
Andrew
(I'm using cf3bca9 from Github).
Hi Lisa,
If I go to the Controllers screen in the browser, and try to Add a controller, the screen just stays blank, with no list of controllers to select from. (I can still get to other screens if I click on their tab). Here is the log - nothing that seems very helpful!
Code: Select all
>>> import upyeasy
>>> upyeasy.main()
Traceback (most recent call last):
File "ulog.py", line 110, in do_log
File "syslog_sink.py", line 76, in log
File "usyslog.py", line 72, in warning
File "usyslog.py", line 82, in log
OSError: [Errno 113] EHOSTUNREACH
2018-05-20 19:37:25 [warning] uPyEasy: Hal: pyboard, spi is empty: trying default!
2018-05-20 19:37:37 [info] uPyEasy-STM32_2: Main: uPyEasy running in Ethernet mode
2018-05-20 19:37:37 [info] uPyEasy-STM32_2: Main: uPyEasy Main Async Loop on IP adress: 192.168.1.5:80
2018-05-20 19:37:53 [info] uPyEasy-STM32_2: 580160236.358 <HTTPRequest object at 20011f70> <StreamWriter <socket state=2 timeout=0 incoming=20004192 off=16>> "GET /"
2018-05-20 19:37:53 [info] uPyEasy-STM32_2: 580160236.358 <HTTPRequest object at 20019250> <StreamWriter <socket state=2 timeout=0 incoming=20003f34 off=33>> "GET /static/upyeasy.js"
2018-05-20 19:37:53 [info] uPyEasy-STM32_2: 580160236.358 <HTTPRequest object at 20019b70> <StreamWriter <socket state=2 timeout=0 incoming=20004192 off=34>> "GET /static/upyeasy.css"
2018-05-20 19:38:05 [info] uPyEasy-STM32_2: 580160236.358 <HTTPRequest object at 20008340> <StreamWriter <socket state=2 timeout=0 incoming=20004192 off=22>> "GET /config"
2018-05-20 19:38:06 [info] uPyEasy-STM32_2: 580160236.358 <HTTPRequest object at 20014fe0> <StreamWriter <socket state=2 timeout=0 incoming=20004192 off=34>> "GET /static/upyeasy.css"
2018-05-20 19:38:06 [info] uPyEasy-STM32_2: 580160236.358 <HTTPRequest object at 2001a610> <StreamWriter <socket state=2 timeout=0 incoming=20003f34 off=33>> "GET /static/upyeasy.js"
2018-05-20 19:38:15 [info] uPyEasy-STM32_2: 580160331.726 <HTTPRequest object at 200136f0> <StreamWriter <socket state=2 timeout=0 incoming=20003f34 off=27>> "GET /controllers"
2018-05-20 19:38:15 [info] uPyEasy-STM32_2: 580160331.726 <HTTPRequest object at 200180c0> <StreamWriter <socket state=2 timeout=0 incoming=20003f34 off=34>> "GET /static/upyeasy.css"
2018-05-20 19:38:15 [info] uPyEasy-STM32_2: 580160331.726 <HTTPRequest object at 20019930> <StreamWriter <socket state=2 timeout=0 incoming=20004192 off=33>> "GET /static/upyeasy.js"
2018-05-20 19:38:40 [info] uPyEasy-STM32_2: 580160331.726 <HTTPRequest object at 20017270> <StreamWriter <socket state=2 timeout=0 incoming=20004192 off=39>> "GET /controller_setting?id=0"
2018-05-20 19:38:40 [info] uPyEasy-STM32_2: 580160331.726 <HTTPRequest object at 20019530> <StreamWriter <socket state=2 timeout=0 incoming=20004192 off=34>> "GET /static/upyeasy.css"
2018-05-20 19:38:40 [info] uPyEasy-STM32_2: 580160331.726 <HTTPRequest object at 20019d60> <StreamWriter <socket state=2 timeout=0 incoming=20003f34 off=33>> "GET /static/upyeasy.js"
Tried again with loglevel=0 ....
Code: Select all
(some lines lost)
2018-05-20 19:44:08 [debug] uPyEasy: Hal: pyboard
2018-05-20 19:44:08 [debug] uPyEasy: GC MEM Free: 29,088
2018-05-20 19:44:08 [debug] uPyEasy: Hal: board info
2018-05-20 19:44:08 [debug] uPyEasy: GC MEM Free: 29,088
2018-05-20 19:44:08 [debug] uPyEasy: Hal: board pyboard
2018-05-20 19:44:08 [debug] uPyEasy: GC MEM Free: 29,072
Traceback (most recent call last):
File "ulog.py", line 110, in do_log
File "syslog_sink.py", line 76, in log
File "usyslog.py", line 72, in warning
File "usyslog.py", line 82, in log
OSError: [Errno 113] EHOSTUNREACH
2018-05-20 19:44:08 [warning] uPyEasy: Hal: pyboard, spi is empty: trying default!
2018-05-20 19:44:08 [warning] uPyEasy: GC MEM Free: 28,944
2018-05-20 19:44:18 [debug] uPyEasy: Hal: pyboard, ip: 192.168.1.5
2018-05-20 19:44:18 [debug] uPyEasy: GC MEM Free: 28,880
2018-05-20 19:44:18 [debug] uPyEasy: Hal: nic present
2018-05-20 19:44:18 [debug] uPyEasy: GC MEM Free: 28,928
2018-05-20 19:44:18 [debug] uPyEasy: Protocols: Load
2018-05-20 19:44:18 [debug] uPyEasy: GC MEM Free: 29,264
2018-05-20 19:44:18 [debug] uPyEasy: Protocols: Init protocol records
2018-05-20 19:44:18 [debug] uPyEasy: GC MEM Free: 28,784
2018-05-20 19:44:18 [debug] uPyEasy: Protocols: Protocol record found: Domoticz HTTP
2018-05-20 19:44:18 [debug] uPyEasy: GC MEM Free: 28,016
2018-05-20 19:44:18 [debug] uPyEasy: Protocols: Protocol record found: OpenHab MQTT
2018-05-20 19:44:18 [debug] uPyEasy: GC MEM Free: 28,016
2018-05-20 19:44:18 [debug] uPyEasy: Protocols: Protocol record found: Domoticz MQTT
2018-05-20 19:44:18 [debug] uPyEasy: GC MEM Free: 28,016
2018-05-20 19:44:18 [debug] uPyEasy: Plugins: Load
2018-05-20 19:44:18 [debug] uPyEasy: GC MEM Free: 28,944
2018-05-20 19:44:18 [debug] uPyEasy: Plugins: Init plugin records
2018-05-20 19:44:18 [debug] uPyEasy: GC MEM Free: 28,656
2018-05-20 19:44:18 [debug] uPyEasy: Plugins: Plugin record found: SSD1306
2018-05-20 19:44:18 [debug] uPyEasy: GC MEM Free: 27,280
2018-05-20 19:44:18 [debug] uPyEasy: Plugins: Plugin record found: Switch
2018-05-20 19:44:18 [debug] uPyEasy: GC MEM Free: 27,280
2018-05-20 19:44:18 [debug] uPyEasy: Plugins: Plugin record found: DS18B20
2018-05-20 19:44:18 [debug] uPyEasy: GC MEM Free: 27,280
2018-05-20 19:44:18 [debug] uPyEasy: Plugins: Plugin record found: Test
2018-05-20 19:44:18 [debug] uPyEasy: GC MEM Free: 27,280
2018-05-20 19:44:18 [debug] uPyEasy: Plugins: Plugin record found: BME280
2018-05-20 19:44:18 [debug] uPyEasy: GC MEM Free: 27,280
2018-05-20 19:44:18 [debug] uPyEasy: Scripts: Load
2018-05-20 19:44:18 [debug] uPyEasy: GC MEM Free: 28,688
2018-05-20 19:44:18 [debug] uPyEasy: Scripts: Init
2018-05-20 19:44:18 [debug] uPyEasy: GC MEM Free: 28,592
2018-05-20 19:44:18 [debug] uPyEasy: Plugins: GetQueue
2018-05-20 19:44:18 [debug] uPyEasy: GC MEM Free: 28,576
2018-05-20 19:44:18 [debug] uPyEasy: Scripts: init scripts records
2018-05-20 19:44:18 [debug] uPyEasy: GC MEM Free: 28,304
2018-05-20 19:44:18 [debug] uPyEasy: Scripts: init rules records
2018-05-20 19:44:18 [debug] uPyEasy: GC MEM Free: 28,240
2018-05-20 19:44:18 [debug] uPyEasy: Utils: Sys hostname
2018-05-20 19:44:18 [debug] uPyEasy: GC MEM Free: 27,968
2018-05-20 19:44:18 [debug] uPyEasy: Utils: uPyEasy Name
2018-05-20 19:44:18 [debug] uPyEasy: GC MEM Free: 28,384
2018-05-20 19:44:18 [debug] uPyEasy-STM32_2: Set syslog hostname 0.0.0.0
2018-05-20 19:44:18 [debug] uPyEasy-STM32_2: GC MEM Free: 28,160
2018-05-20 19:44:18 [debug] uPyEasy-STM32_2: reloaded sink syslog
2018-05-20 19:44:18 [debug] uPyEasy-STM32_2: GC MEM Free: 27,584
2018-05-20 19:44:18 [debug] uPyEasy-STM32_2: Hal: Entering SetTime
2018-05-20 19:44:18 [debug] uPyEasy-STM32_2: GC MEM Free: 28,448
2018-05-20 19:44:18 [debug] uPyEasy-STM32_2: Hal: Entering GetNtpTime
2018-05-20 19:44:18 [debug] uPyEasy-STM32_2: GC MEM Free: 28,288
2018-05-20 19:44:18 [debug] uPyEasy-STM32_2: Hal: network Table
2018-05-20 19:44:18 [debug] uPyEasy-STM32_2: GC MEM Free: 28,304
2018-05-20 19:44:18 [debug] uPyEasy-STM32_2: Hal: Using NTP Hostname: pool.ntp.org
2018-05-20 19:44:18 [debug] uPyEasy-STM32_2: GC MEM Free: 27,808
2018-05-20 19:44:18 [debug] uPyEasy-STM32_2: Hal: TimeZome offset: 60
2018-05-20 19:44:18 [debug] uPyEasy-STM32_2: GC MEM Free: 27,840
2018-05-20 19:44:18 [debug] uPyEasy-STM32_2: Hal: Received UTC NTP Time: 580157059
2018-05-20 19:44:18 [debug] uPyEasy-STM32_2: GC MEM Free: 27,488
2018-05-20 19:44:18 [debug] uPyEasy-STM32_2: Hal: Timezone corrected NTP Time: 580160659
2018-05-20 19:44:18 [debug] uPyEasy-STM32_2: GC MEM Free: 27,488
2018-05-20 19:44:18 [debug] uPyEasy-STM32_2: Hal: DST corrected NTP Time: 580160659
2018-05-20 19:44:18 [debug] uPyEasy-STM32_2: GC MEM Free: 27,488
2018-05-20 19:44:18 [debug] uPyEasy-STM32_2: Hal: Received NTP Time: 580160659
2018-05-20 19:44:18 [debug] uPyEasy-STM32_2: GC MEM Free: 28,336
2018-05-20 19:44:18 [debug] uPyEasy-STM32_2: Hal: StartTime: 580160659
2018-05-20 19:44:18 [debug] uPyEasy-STM32_2: GC MEM Free: 28,368
2018-05-20 19:44:19 [info] uPyEasy-STM32_2: Main: uPyEasy running in Ethernet mode
2018-05-20 19:44:19 [info] uPyEasy-STM32_2: GC MEM Free: 24,896
2018-05-20 19:44:19 [debug] uPyEasy-STM32_2: Hal: get_ip_address pyboard, ip: 192.168.1.5
2018-05-20 19:44:19 [debug] uPyEasy-STM32_2: GC MEM Free: 24,720
2018-05-20 19:44:19 [debug] uPyEasy-STM32_2: Main: Schedule async loops
2018-05-20 19:44:19 [debug] uPyEasy-STM32_2: GC MEM Free: 24,880
2018-05-20 19:44:19 [info] uPyEasy-STM32_2: Main: uPyEasy Main Async Loop on IP adress: 192.168.1.5:80
2018-05-20 19:44:19 [info] uPyEasy-STM32_2: GC MEM Free: 24,224
2018-05-20 19:44:19 [debug] uPyEasy-STM32_2: Protocols: Async processing protocols
2018-05-20 19:44:19 [debug] uPyEasy-STM32_2: GC MEM Free: 24,048
2018-05-20 19:44:19 [debug] uPyEasy-STM32_2: Plugins: Async processing plugins
2018-05-20 19:44:19 [debug] uPyEasy-STM32_2: GC MEM Free: 23,248
2018-05-20 19:44:19 [debug] uPyEasy-STM32_2: Scripts: Async processing scripts/rules
2018-05-20 19:44:19 [debug] uPyEasy-STM32_2: GC MEM Free: 22,016
Then when I try to add a controller....
Code: Select all
2018-05-20 19:47:34 [debug] uPyEasy-STM32_2: Scripts: Async processing scripts/rules
2018-05-20 19:47:34 [debug] uPyEasy-STM32_2: GC MEM Free: 22,048
2018-05-20 19:47:49 [info] uPyEasy-STM32_2: 580160903.930 <HTTPRequest object at 2000d670> <StreamWriter <socket state=2 timeout=0 incoming=20004192 off=16>> "GET /"
2018-05-20 19:47:49 [info] uPyEasy-STM32_2: GC MEM Free: 20,960
2018-05-20 19:47:49 [debug] uPyEasy-STM32_2: Pages: Authorized User?
2018-05-20 19:47:49 [debug] uPyEasy-STM32_2: GC MEM Free: 20,256
2018-05-20 19:47:49 [debug] uPyEasy-STM32_2: Pages GET: Entering Home Page
2018-05-20 19:47:49 [debug] uPyEasy-STM32_2: GC MEM Free: 20,256
2018-05-20 19:47:49 [debug] uPyEasy-STM32_2: Pages: Home Page Station mode
2018-05-20 19:47:49 [debug] uPyEasy-STM32_2: GC MEM Free: 20,048
2018-05-20 19:47:49 [debug] uPyEasy-STM32_2: Utils: uPyEasy Name
2018-05-20 19:47:49 [debug] uPyEasy-STM32_2: GC MEM Free: 20,032
2018-05-20 19:47:49 [debug] uPyEasy-STM32_2: Utils: Unit Number
2018-05-20 19:47:49 [debug] uPyEasy-STM32_2: GC MEM Free: 19,920
2018-05-20 19:47:49 [debug] uPyEasy-STM32_2: Hal: Getting local time in seconds
2018-05-20 19:47:49 [debug] uPyEasy-STM32_2: GC MEM Free: 19,808
2018-05-20 19:47:49 [debug] uPyEasy-STM32_2: Hal: get_ip_address pyboard, ip: 192.168.1.5
2018-05-20 19:47:49 [debug] uPyEasy-STM32_2: GC MEM Free: 19,632
2018-05-20 19:47:49 [debug] uPyEasy-STM32_2: Pages: Home Page Data collected
2018-05-20 19:47:49 [debug] uPyEasy-STM32_2: GC MEM Free: 19,776
2018-05-20 19:47:49 [info] uPyEasy-STM32_2: 580160903.930 <HTTPRequest object at 20018dc0> <StreamWriter <socket state=2 timeout=0 incoming=20004192 off=34>> "GET /static/upyeasy.css"
2018-05-20 19:47:49 [info] uPyEasy-STM32_2: GC MEM Free: 19,632
2018-05-20 19:47:49 [info] uPyEasy-STM32_2: 580160903.930 <HTTPRequest object at 20010670> <StreamWriter <socket state=2 timeout=0 incoming=20003f34 off=33>> "GET /static/upyeasy.js"
2018-05-20 19:47:49 [info] uPyEasy-STM32_2: GC MEM Free: 19,104
2018-05-20 19:48:01 [info] uPyEasy-STM32_2: 580160903.930 <HTTPRequest object at 2000f4a0> <StreamWriter <socket state=2 timeout=0 incoming=20003f34 off=27>> "GET /controllers"
2018-05-20 19:48:01 [info] uPyEasy-STM32_2: GC MEM Free: 19,072
2018-05-20 19:48:01 [debug] uPyEasy-STM32_2: Pages: Authorized User?
2018-05-20 19:48:01 [debug] uPyEasy-STM32_2: GC MEM Free: 18,464
2018-05-20 19:48:01 [debug] uPyEasy-STM32_2: Pages: Entering Controllers Page
2018-05-20 19:48:01 [debug] uPyEasy-STM32_2: GC MEM Free: 18,448
2018-05-20 19:48:01 [debug] uPyEasy-STM32_2: Utils: uPyEasy Name
2018-05-20 19:48:01 [debug] uPyEasy-STM32_2: GC MEM Free: 18,448
2018-05-20 19:48:01 [info] uPyEasy-STM32_2: 580160903.930 <HTTPRequest object at 20018cb0> <StreamWriter <socket state=2 timeout=0 incoming=20003f34 off=34>> "GET /static/upyeasy.css"
2018-05-20 19:48:01 [info] uPyEasy-STM32_2: GC MEM Free: 18,496
2018-05-20 19:48:01 [info] uPyEasy-STM32_2: 580160903.930 <HTTPRequest object at 20010c10> <StreamWriter <socket state=2 timeout=0 incoming=20004192 off=33>> "GET /static/upyeasy.js"
2018-05-20 19:48:01 [info] uPyEasy-STM32_2: GC MEM Free: 17,968
Can you see what is going wrong
Cheers
Andrew