If you didn't notice, there is already a tiny webserver : uhttpd.
Depending on your needs, it could be enough.
Joris Mulliez
@Joris Mulliez
Best posts made by Joris Mulliez
-
RE: Is Apache no longer available for Omega2+?
-
RE: [Resolved] Omega 2+ // php change DOCUMENT_ROOT ? No input file specified.
Ok,
I found the problem.
You don't have to inform only uhttpd for the new "home/doc_root".
You have to modify "/etc/php.ini" at the "doc_root" entry.Restart uhttpd and that worked !
Problem solved,
-
RE: Omega2+ // Wifi shut down ? Apcli link down.
Ok I reply to myself, I found this : https://wiki.openwrt.org/doc/howto/log.essentials
So a
logread
Give me my logs !
-
RE: Omega2+ won't connect to wifi (in France)
Hi,
I tried several tips before it works.
First you can check if change the omega IP can help : https://docs.onion.io/omega2-docs/fix-ip-addr-collisions.html#fix-ip-addr-collisions
If not, you can try to fix the wifi channel : example in this thread.but for me the problem was the gateway. My provider is "ovh telecom" and the router of ovh has a particular IP : 192.168.1.254
I realize that when I try "ifconfig" on my omega and see the gateway to 192.168.1.255.I don't know how the omega try to guess at which address will be the router...
So the only change for me was :
uci set network.wlan.gateway=192.168.1.254 uci commit network /etc/init.d/network restart
The other default configuration are fine in my case.
For your problem try to analyse ifconfig result, and compare with "all" your router configurations (not only key, pass, encryption method).
I hope that it will help,
-
RE: Pulling info from my Personal Weather Station via Wunderground
Hi,
It's a good project, but your use of php is useless... You can just generate a simple index.html file with your system. No need of php.
If you really want to use php you can move your logic from python to php.
These two languages are server side languages and for your example are equivalent.
Good luck !
Latest posts made by Joris Mulliez
-
RE: Pulling info from my Personal Weather Station via Wunderground
Hi,
It's a good project, but your use of php is useless... You can just generate a simple index.html file with your system. No need of php.
If you really want to use php you can move your logic from python to php.
These two languages are server side languages and for your example are equivalent.
Good luck !
-
RE: 1-Wire Temperature Sensor - DS18B20 - on Omega2
@Costas-Costas Even if I don't plug anything ?
-
RE: 1-Wire Temperature Sensor - DS18B20 - on Omega2
Thanks @Lazar-Demin for the correction.
But it seems not to work on my omega 2+.
I just upgrade my firmware, and try to follow the tutorial you mentioned.
But I can't see my DS18B20... I see only slaves like : "00-800000000000" it seems "fake".First question : the sensor must be plugged into the board before or after omega started ?
And here is my output when I just install the "master" one-wire, without plug any sensor :
# insmod w1-gpio-custom bus0=0,19,0 [ 100.959174] Custom GPIO-based W1 driver version 0.1.1 root@Omega-0000:/# [ 102.882550] w1_master_driver w1_bus_master1: w1_search: max_slave_count 64 reached, will continue next search. [ 150.298561] w1_master_driver w1_bus_master1: Family 0 for 00.800000000000.8c is not registered [ 209.629280] w1_master_driver w1_bus_master1: Family 0 for 00.400000000000.46 is not registered. root@Omega-0000:/# cat /sys/devices/w1_bus_master1/w1_master_slaves 00-800000000000 00-400000000000 [ 257.010981] w1_master_driver w1_bus_master1: Family 0 for 00.c00000000000.ca is not registered. root@Omega-0000:/# cat /sys/devices/w1_bus_master1/w1_master_slaves 00-400000000000 00-c00000000000
So there is "ghost" sensors appearing automatically, and If I try to plug my real sensor, I can't see him...
Am I doing something wrong ?
Thanks for your help,
-
RE: udhcpc: sending renew, lease of 0.0.0.0 obtained, lease time 30 // lost connection
@Chris-Stratton Thanks for your quick reply !
I just try to power-off the other device, and reboot my omega.
And it works !But I don't have the control of the other device. So If I want the both working, can I configure my omega to work correctly ?
Thanks again !
-
RE: udhcpc: sending renew, lease of 0.0.0.0 obtained, lease time 30 // lost connection
It seems my local network is a little bit mis-configured.
I've got an other "IoT" device running under 192.168.1.44.
And sometimes my laptop want to use this IP for gateway.The omega seems to do the same.
I found# cat /tmp/resolv.conf.auto # Interface wwan nameserver 192.168.1.44
I tried to modify this file but it changes again automatically.
So how can I force this "auto-configuration" to something manual ?
Thanks a lot,
-
udhcpc: sending renew, lease of 0.0.0.0 obtained, lease time 30 // lost connection
Hi all,
I've not modify/upgrade my omega recently... The wifi connection worked before.
But now after a brief moment, I can see in logs :Mon Jan 16 19:46:08 2017 daemon.notice netifd: wwan (2345): udhcpc: sending renew Mon Jan 16 19:46:09 2017 daemon.notice netifd: wwan (2345): udhcpc: lease of 0.0.0.0 obtained, lease time 30
If I restart wifi via
wifimanager
the connection work until this message appear again.I'll try to upgrade my firmware but I'm not sure it will correct the problem...
Thanks for your help,
-
RE: Is Apache no longer available for Omega2+?
If you didn't notice, there is already a tiny webserver : uhttpd.
Depending on your needs, it could be enough. -
RE: DHT11/22 checkHumidity syntax error
Hi all,
I'm planning to use the DS18B20 too.
I open an issue here : https://github.com/OnionIoT/Onion-Docs/issues/18Let see the onion response
-
RE: Can I still order from IndieGoGo
@administrators can we have some visibility for futur order ?