@Rudy-Trujillo The middle two commands with tar essentially moves everything from /overlay to /mnt. The reason why this method was used instead of a simple cp -r was because this way all the timestamp and ownership of the files and directories are preserved.
The way it works is essentially getting tar to create a compressed version of all files in /overlay. The compressed data is then passed via the pipe to another tar command, which decompresses that in the /mnt directory. Note that instead of taking a filename as the argument in the second tar command, it reads directly from stdin.
@Justin-Sowers As per this post: https://community.onion.io/topic/9/how-to-install-gcc/47 it is possible to set up the Omega with swap space that effectively gives it extra usable memory space (note that usage of USB for overlay as in https://wiki.onion.io/Tutorials/Using-USB-Storage-as-Rootfs only makes more disk space available for the /overlay directory, it does not increase usable memory space).
Currently, most of the opkg packages are designed around the relatively limited basic resources of the Omega. What is needed is access to packages that can (a) make use of greater disk space (e.g.via /overlay on USB drive) and/or (b) use more memory space if it is available via swap
This question might be silly but I am sure I'm not the only one who wants to get sure before destroying something :)
I'd like to use the relay expansion to switch on/off a light bulb (for testing purposes). Therefore I would cut the electricity cable of a lamp into two and put the ends in the two sockets of a relay on the expansion.
Is the relay expansion designed to handle this amount of power (230V, 50Hz)? Is there anything I need to know to take care of before I start?
This is a very good question. And the answer is that most relay expansion boards are not designed so that they safely can be connected to the mains voltage without causing a safety hazard that could result in electric shock or a fire.
The reason in most cases is that the circuit board is made with too short distances between low voltage parts and mains voltage traces. To save money, most of the relay boards use relays that were never intended for this type of use. The relay may have been designed to be used where the low voltage circuitry is grounded, so that if a connection between live wiring and the circuitry that controls the coil, the low voltage circuitry would not end up at a hazardous voltage.
But with micro controllers for hobby use it is most of the time so that the circuitry is not connected to ground, and even if it was (through USB cable ground) the ground connection is not strong enough that it will be safe. So the relay boards that are going to be used for controlling mains voltage will look different. there will be large distances between AC power traces and the rest of the circuitry. THe relays will be different and a bit larger, with much longer creepage distances and with coil pins far away from power pins.
Still, most relay board manufacturers list the characteristics of the relay, not understanding that the circit board design must meet electical safety requirments to be safe. They invite users to connect the relay board to the mains voltage but their product is unsafe.
Another thing to remember is that there must be a fuse in series with the load, and the fuse rating must be low enough that if there is an overload the fuse will open before the circuit board traces or the relay contacts are damaged. A relay with 2A contacts, I would use max 1.5A fuse. The mains outlet may have 10A or even higher rating.
@Pavils-Jurjans We are working on a more detailed guide that shows you how to create apps that uses APIs from the Console. For now, here's a simple guide. You can create your own app on the console by going into /www/apps and make a copy of the directory onion-app-template to my-app. There is a file in the folder called app.json that defines the name of the app as well as if the icon should be showing on the Launcher. Then you should rename onion-app-template.html to my-app.html, and replace all occurrences of onion-app-template to my-app. All the logic will be defined in my-app.html. We are using a Framework called Polymer to create the apps.
We will follow up with a more detailed tutorial on how to create and deploy apps once the App Store is out of private beta.
@Rudy-Trujillo Further to the good comments from @Andrei-Railean the following tips about opkg may be helpful (but always do a opkg update first):
opkg list takes wild cards, so a similar effect can be had by doing (e.g.): opkg list *python*
opkg info <package> is helpful for details about a particular package
Using opkg without any commands or parameters will give a helpful summary of the available commands and parameters
You can use:- expled 0xFFFFFF to turn it back on full white or any colour by varying each colour but I expect you knew this but expled 0x0 does not turn it fully off just very low level.
Thanks so I must remember this.
I tried re flashing the arduino dock again, that seem to have work, I get in trouble once I try flashing the blink2 sketch, using the second method, because I'm not seeing the Omega in the port menu in the Arduino IDE
@Kit-Bishop@Rich-Rector@pau-cucart-galbis Sorry about the terrible experience :( This problem will be addressed in the next manufacturing run. We have added a new criteria for QA, which is to test the switch to make sure that it does not break easily.