Wouldn't be better to just add to the Expansion dock the charging/battery capabilities? There is a lot of room for that in the PCB.
Manuel Godinez
@Manuel Godinez
Best posts made by Manuel Godinez
-
RE: Power Dock vs Expansion Dock
-
RE: Documentation is incomplete
@Costas-Costas Yes, I didn't look deep enough so I was just looking at the default pin 0. Seems they have not updated the page with the Omega2 pins, but just to be clear, I am using the dock and the pins layout is also not the Omega2. I was only testing using pin 0 until you mention it. Oh well, Onion has a LOT of updating to do in their hands, I only wish they would release the eBook already, but don't want to rush them or they will miss parts in that one too
-
Documentation is incomplete
Does anyone know where to get how to's and/or step by step instructions on the Omega2?
I am trying to see how to work the Device Explorer but no idea on how exactly works. I am lost and since there is NO project book finish yet, well I am stuck on how to do stuff with the Onion2. I want to:
Send commands to Omega2 via the web such as turn the onboard led, read temperatures when connecting a sensor, turn the gpio to output and make it high(1) or low(0), all the good stuff.
Since Omega2 is new, well, there is really nothing I can find that will point me in the right direction of how to do the above things. A tutorial on doing basic tasks would be great.
Thanks
Latest posts made by Manuel Godinez
-
RE: NAS with Omega Onion
I haven't found anything either yet. Was it forgotten by the Onion team maybe?? Last post that said it was ready to be posted, it was a year ago.....
-
RE: Access php from outside the local network?
@Victor-Tagayun
I have tried it and it works, but not extensively. You have to install python though. -
RE: omega2+ flash omega2p-v0.1.10-b162.bin - break
Thanks!!! Working again. Will wait until they fix the latest firmware now.
-
RE: omega2+ flash omega2p-v0.1.10-b162.bin - break
I can verify that b162 is not working. I had a good booting process with b160 and have been installing the updates manually ever since I got the Omega2 (Not the +) and this b162 is broken. get the same Fatal exception: panic in 5 seconds too. In keeps rebooting over and over....
How can I restore the b160 back ?
Never got to a bad firmware before.
-
RE: 1-Wire Temperature Sensor - DS18B20 - on Omega2
@VIKAS-MALIK Have you followed the steps mentioned here : ??
https://wiki.onion.io/Tutorials/PHP-DHT11-DHT22-Sensor-Examples
It uses PHP for this tutorial.
-
Python library
I am starting to play around with Python and I saw that the python Twisted library was added with the b158 update but there is no info about how to use it or install it in the online docs. Omega: Can you point me in the right direction please?
Thanks
-
RE: Cron job
Thank you Costas!! That was it. That should be it now. And thanks everyone else too for their help.
-
RE: Cron job
Ok. I am now trying Python to run the cron script. I have done the following steps:
1 - Upgraded to latest firmware b157
2 - opkg update
3 - opkg install python
4 - opkg install python-light pyOnionGpio
5 - did a reboot
6 - got the following code into a filename called test2.py in the root folder :import time
import onionGpiogpioNum = 18
gpioObj = onionGpio.OnionGpio(gpioNum)set to output
status = gpioObj.setOutputDirection(0)
alternate the value
loop = 1
value = 0
while loop == 1:
# reverse the value
if value == 0:
value = 1
else:
value = 0# set the new value status = gpioObj.setValue(value) print 'GPIO%d set to: %d'%(gpioNum, value) time.sleep(5)
7 - chmod the test2.py to make it executable. 0744
8 - Now I go to the crontab -e and inserted the following line:12 6 * * * /test2.py > /tmp/test.log 2>&1
9 - restarted cron
10- waiting to execute
11 - got this at test.log :/test2.py: line 1: import: not found
/test2.py: line 2: import: not found
/test2.py: line 4: gpioNum: not found
/test2.py: line 5: syntax error: unexpected "("So I am guessing for some reason, it didn't find the import file onionGpio.py but I checked already and it is in the location it is suppose to be which is /usr/lib/python2.7/
I am wondering if I missed a step?
Thanks again for all your help
-
RE: Cron job
It does return the exact cron job:
5 13 * * * /www/php/test.php > /tmp/test.log