I put together a quick demo of using the Onion Omega to control a Philips Hue light that I have at my office.
Just thought I would share in case anyone was interested in how to do this.
https://gist.github.com/youngsoul/c38287599b0e2fd743f2
Enjoy
I put together a quick demo of using the Onion Omega to control a Philips Hue light that I have at my office.
Just thought I would share in case anyone was interested in how to do this.
https://gist.github.com/youngsoul/c38287599b0e2fd743f2
Enjoy
I created a video on how I setup the Omega to install and run Bottle, a python web framework.
https://www.youtube.com/watch?v=GJCcIlCJOx4
There is another post in the forums, 'Python web framework' which shows you how to use python3. This particular setup video uses python2.
Here is the summary of steps:
vi /etc/opkg.conf
— delete line ‘option check_signature 1'
opkg update
mkdir -p /home/bottle
cd /home/bottle
wget --no-check-certificate https://github.com/defnull/bottle/raw/master/bottle.py
opkg install python-light
opkg install python-email
opkg install python-codecs
opkg install python-logging
opkg install python-openssl
vi bottle_test.py
paste:
from bottle import route, run
@route('/hello/<username>')
def hello(username):
return "Hello {0}. Welcome to the Omega World!".format(username)
run(host='0.0.0.0', port=8080, debug=True)
to run:
python bottle_test.py
I too have put together a few videos on python programming for the Omega just incase you find them helpful.
https://www.youtube.com/watch?v=CQELgysBgQs
https://www.youtube.com/watch?v=GJCcIlCJOx4
https://www.youtube.com/watch?v=jDDq9D50wGo
I also wrote a simple, simple wrapper for the gpio which was inspired by Omega user 'Dan L'.
@Lorcan-Adrain Thanks very much - that is my video. I am hoping to add more in the next few weeks. Thanks again for the shout out.
In the 2-Bullet Tuesday emails, you mention: "
P.S. -- Our Omega2 Indiegogo campaign will be ending in the near future! Don't miss your chance to get the Omega2 for just $5!"
Will the Omega2 be generally available after the campaign?
It is not clear to me if you are saying you can only get it for $5 during the campaign but will be available later for a higher price, or if you are telling me that after the campaign you wont be able to get one for any price.
I am curious so I know whether to consider the Omega2 platform for further development.
Thanks for any clarification you can provide.
I have seen this as well - not just on that particular package. I can't explain why - which means I cannot guarantee my suggestion will work for you. But here is what I have done.
I am assuming you are running the 0.0.4 version of the firmware.
vi /etc/opkg.conf
remove the last line because there is an issue with checking the signatures.
opkg update
then try to get that package again.
I hope that works for you.
I tried this today. My Omega was running at my house, and I brought it into work to see if I could see the Omega wifi network. It does show up for me, so I'm not sure what is going on there.
As for factory reset - I do not know a hardware way to do this, but if you have a terminal program ( if you are on a Mac I suggest Serial ), and connect via a USB cable, then you can type in the command:
factory-reset -f
Also if you connect via a terminal you can setup wifi that way, and it is very easy.
I put together this video - I hope it helps.
@Boken-Lin I added another video showing the setup via a terminal application instead of the console app. You can find that here:
@Fred-Blais PyCharm does have a free community version, of course you will still need to (s)ftp the files to the Omega outside of PyCharm. As for over-kill, I think this depends upon your application and whether you can or want to write and debug with a modern IDE or just use print statement.
While I have not tried it yet, PyCharm does allow for remote debugging of applications which can very powerful. Imagine running your app on the Omega, but debugging on your Mac/PC. It also lets you setup a Remote Python Interpreter - which again I have not tried. These are likely professional features which does have a license fee. $89/ 1st year, $71 2nd year, $53 after that. And really - if you are a professional making your living writing software these are amazing tools for that price, IMHO.
Disclaimer: I am not affiliated with Jetbrains in anyway. I'm just a super happy customer of their products.
Personally - I like PyCharm to do this. I created a video which shows you how to develop with PyCharm and deploy to the Onion Omega.
https://www.youtube.com/watch?v=CQELgysBgQs
The deployment feature is only available in the professional edition - but I feel that their tools are so reasonably priced for the feature set they provide, as a professional, it is worth the money.
This is my preferred workflow and so far it has worked great. The only thing you have to keep in mind is that you are using a far less powerful version of python so you might have to deploy and test to make sure the packages are available to you on the Omega.
I also believe PyCharm can use a remote environment on the Omega so you can be sure it works on the deployed platform - however - this is something I have not tried yet.
@Stan-Madge Were you ever able to get this to work?
@Lazar-Demin
I am running firmware version 0.1.10 b160, kernel: 4.4.46 and I am still into this issue.
The link provided seems to be dead, and I cannot find the new page.
Is there any update on being able to install these additional kernel modules so we can boot from the SD card?
Any fresh pointers or suggestions on how to boot from the SD card is greatly appreciated.
Thank you
In the 2-Bullet Tuesday emails, you mention: "
P.S. -- Our Omega2 Indiegogo campaign will be ending in the near future! Don't miss your chance to get the Omega2 for just $5!"
Will the Omega2 be generally available after the campaign?
It is not clear to me if you are saying you can only get it for $5 during the campaign but will be available later for a higher price, or if you are telling me that after the campaign you wont be able to get one for any price.
I am curious so I know whether to consider the Omega2 platform for further development.
Thanks for any clarification you can provide.
@Robin-Lefever Do you have a startup script to start page kite when the omega starts? Can you share you startup script.
Thanks again
@Robin-Lefever Thank you very much. I just signed up and installed it. It seems to work great for both exposing the web application and a direct ssh terminal.
I really appreciate the pointer.
Hi Everyone
While it may exist, I did not find a python based Blynk library that was hardware agnostic that I could run on the Omega ( I don't have the Omega2 yet, but its ordered ) and something like Respeaker, or even a Raspberry PI.
I refactored the BlynkLib from the WIPY project so that it is independent of that hardware, works with Python2, and I assume Python3 but I have not tested yet, and is a single file. I also made some interface changes that I was looking for.
If you are in need a Python based Blynk library feel free to give it a try. If you find an issue let me know on github or even better give me a pull request.
https://github.com/youngsoul/BlynkLib
Thanks
Pat
@Boken-Lin You mentioned in the referenced post that the Onion cloud would allow for remote access to the Omega. I was wondering you had any idea of rough timelines for such a feature.
I am evaluating different solutions for my project, and being able to have this kind of remote access to devices in the field is a 'must have'.
Keep in mind, that I won't have access to the network where the devices are installed, or port forwards, etc is just not an option.
Thanks
In doing more searching through the forums, I found this:
https://community.onion.io/topic/709/how-to-access-console-apps-remotely
I am assuming that this is still the best answer.
My use case my be slightly different, in that I do not have control of the network where the device is deployed so having the ability to tunnel ssh through the onion cloud is a really important feature.
Hello Everyone
I was wondering if anyone has a solution for remote ssh into an omega much like the solution provided by remot3.it / weaved. The omega is behind a firewall so I need to tunnel.
I use the remot3.it service on a raspberry pi all the time and it is very handy.
I looked at shellinabox, and I don't think that will work as I would need to port forward and that is just not possible with my deployments.
Thanks in advance.
Pat