Edu.Uy wrote: ↑06 Feb 2018, 20:15
Good you have it working.
Just to clarify my comment, the config file is the upyeasy file... this config files are generated automatically by upyeasy the first tie you run it.
Is not Linux version dependent. Just internal uPyEasy config. The default one is in port 80.
Hello, Edu,
Aah, I understand. Sorry, I thought it was something on the RasPi config.
Where is the config file located, please? I have had a look around where the other files are, but haven't seen it. It sounds like a neater solution than what I did!
+1 for clearer documentation. I'm willing to help.
------------------
Another question, if I may. Have you been able to configure a device in your unix port of uPyeasy? I'm not sure if it's possible as the hardware is all different, but when I try I get an error (here I was trying to add a DS18 device...
Code: Select all
2018-02-06 19:28:38 [debug] uPyEasy-uPyEasy: Plugin: ds18 contruction
2018-02-06 19:28:38 [debug] uPyEasy-uPyEasy: Plugin: ds18 contruction
2018-02-06 19:28:38 [debug] uPyEasy-uPyEasy: Plugins: Init device: dummy ,instantiate plugin: DS18B20
2018-02-06 19:28:38 [debug] uPyEasy-uPyEasy: Utils: uPyEasy Name
2018-02-06 19:28:38 [debug] uPyEasy-uPyEasy: Plugin: ds18 init
2018-02-06 19:28:38 [debug] uPyEasy-uPyEasy: Plugins: Read device store: dummy
2018-02-06 19:28:38 [debug] uPyEasy-uPyEasy: Plugin: ds18 init, pin used: d0
2018-02-06 19:28:38 [debug] uPyEasy-uPyEasy: Hal: pin = d0
2018-02-06 19:28:38 [debug] uPyEasy-uPyEasy: Hal: pin linux: 0
1517945318.103 <HTTPRequest object at 7fa4ea795500> <StreamWriter <_socket 27>> OSError(13,)
Traceback (most recent call last):
File "/home/andrew/.micropython/lib/picoweb/__init__.py", line 186, in _handle
File "upyeasy/pages.py", line 1247, in devicesettingpage
File "upyeasy/plugin.py", line 118, in initdevice
File "upyeasy/plugins/ds18.py", line 79, in init
File "upyeasy/hal.py", line 741, in pin
File "/home/andrew/.micropython/lib/machine/pin.py", line 14, in __init__
OSError: [Errno 13] EACCES
I'd be interested to know if it works for you.
Regards
Andrew.